Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2921965ybn; Thu, 26 Sep 2019 20:54:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJjPkpsKN0xeuE9qf2NUk3pdBb7asTmZuaXkYZYn5DiOp9O6B7/XXrWloTCXv5aiF2YH+x X-Received: by 2002:aa7:c812:: with SMTP id a18mr2374757edt.240.1569556482123; Thu, 26 Sep 2019 20:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569556482; cv=none; d=google.com; s=arc-20160816; b=d2h6e1gYG8Bi5LmytjI+QHTR46qarpuOgcu/zOIsdsSuQqhutKCALidbWXuig1cMj2 UXGTBFWqwWXjgUmH3m359snd5YiT+2a7q1plRlI3lmi2YQVga/Yslc0J7NC4iTzuFmfL Q2zdQb+h9oQ7fhm+WA5SY+vNJVD2cOOgI83Ry6frdhxCGj6kIct0WsIzNFs6MNer+Lfe TCPKxoe+DgRPH7upxKj7BV2g/gtgLjhHi/pUnguLr36BSnJ1tNUQZjYxihQJGPNtnGxE ZpnQb3WbI+hXssGOu0N82VFQI6BE9HaV3WWiZnxnYGmJjRZZgA5kJ0m4xkC+92EsUdWs MFfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=eHuYRzr9l2ApE57K1Pg3ioKtJ07n5FJSUlFJTUopsQQ=; b=qsZaRnd/AfXHvKnAnEyYuhoVm05G6eTIlkpRvfNKpmFGDAQCDuRJ4P8AV9N66sWcbD uJZ+ZuYobI+hq6UiyxD+ia4sX5lW4GZr1S3ytgEUReka6sXH3tZ6YOvTwx1DtGFD5pOJ gcYd+WjG0ivQsyOSlDCRpBkhiMjep1guGiQog4MgzDT3tm+wfMZkGLE6fRs2h0ddwvCM OlAsjKcIlWl+Sd6b+Ob/bSw8qo2yCorUXw4P9c71gw5viWdDlZ7tNR42rdXx9LXNUSrZ GN6xH5FCjUNHIEAKLglgg5zELjwwWioriHUkHOCcbC/rooEXIdmyFP1B1zsKcH5QumyJ e4Sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13si2151702ejb.98.2019.09.26.20.54.02; Thu, 26 Sep 2019 20:54:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbfI0Dx4 (ORCPT + 99 others); Thu, 26 Sep 2019 23:53:56 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:39138 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbfI0Dx4 (ORCPT ); Thu, 26 Sep 2019 23:53:56 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1iDhKB-0001tc-SV; Fri, 27 Sep 2019 13:53:45 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 27 Sep 2019 13:53:19 +1000 Date: Fri, 27 Sep 2019 13:53:19 +1000 From: Herbert Xu To: Linus Torvalds Cc: Pascal Van Leeuwen , Ard Biesheuvel , Linux Crypto Mailing List , Linux ARM , David Miller , Greg KH , "Jason A . Donenfeld" , Samuel Neves , Dan Carpenter , Arnd Bergmann , Eric Biggers , Andy Lutomirski , Will Deacon , Marc Zyngier , Catalin Marinas Subject: Re: [RFC PATCH 18/18] net: wireguard - switch to crypto API for packet encryption Message-ID: <20190927035319.GA23566@gondor.apana.org.au> References: <20190925161255.1871-1-ard.biesheuvel@linaro.org> <20190925161255.1871-19-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Sep 26, 2019 at 07:54:03PM -0700, Linus Torvalds wrote: > > Side note: almost nobody does this. > > Almost every single async interface I've ever seen ends up being "only > designed for async". > > And I think the reason is that everybody first does the simply > synchronous interfaces, and people start using those, and a lot of > people are perfectly happy with them. They are simple, and they work > fine for the huge majority of users. The crypto API is not the way it is because of async. In fact, the crypto API started out as sync only and async was essentially bolted on top with minimial changes. The main reason why the crypto API contains indirections is because of the algorithmic flexibility which WireGuard does not need. Now whether algorithmic flexibility is a good thing or not is a different discussion. But the fact of the matter is that the majority of heavy crypto users in our kernel do require this flexibility (e.g., IPsec, dmcrypt, fscrypt). I don't have a beef with the fact that WireGuard is tied to a single algorithm. However, that simply does not work for the other users that we will have to continue to support. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt