Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2953161ybn; Thu, 26 Sep 2019 21:38:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwM1iP36UkaD2SbfrPIGtBskVvAIxb8zH/8km4R4Ic4Q/cGhwONhHK3kzBPO+fpgO+lVGa8 X-Received: by 2002:a17:906:18a1:: with SMTP id c1mr6188723ejf.4.1569559081181; Thu, 26 Sep 2019 21:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569559081; cv=none; d=google.com; s=arc-20160816; b=A2aJlv7H7xqksaszCXJbjG1r2JRzRsVn2hBTqZrEY5sqPeqztcA35I0ym0rn4QoFzI IueSjkdZVtqJvtuBIwnKJAt+75Bs9gFRpOT6hZRRAp9qpjmBhh82nzQIXWcqOdzUR4dh z/Nirs+xZMXqqb0zDcD1cFTBDs7kAMQC9U/TYemYYdtYc3wEmjU1y9usj92lpaNShQ9s qA+aOHsu/TM9FDdfv1IYZVop5lA+jJ+zoKG7Yrs/PeNuTqAfPs7V2yrf79oE1bgFCuir MmgSWWLctHleb35nlXfNCjV7m1Gpv1o9Qr+vmnK/YCB7NFSyQcyp0BIBH34UlM91swq8 5IXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=v3flNrTexSkmSZl398zwqZxf5UDGGAOfin8psFnwqY0=; b=SiLtQ3ceqBeBnO2unoCfDpHXBYmj0D6kBrarOaHGLE5uLlxfzS4aRsd8+S48K2G0mO Rl8yhDYVd+Vt2YaCNI0Ykdh1Q3pdfk6a58gbnhQEflixiKr8XevLEJZee+BnqF0Ry7gT Uv61gGHagUvgkPq88x+YUiH6bTW/YFWRJs7DbXKaQqYoA6dxWBihwa73toIPWCPBEUGb evn/TbFV1ODsJfEv9k6Ox+TIFbWwvzCKzJ+q0WlM+qjqCy6IGJVoFUagCDGfzF8kCZRB TyIl7Yr2Oybx+syWwWxtf6MzDi5CW3O//5GVBnVoemUr8/sOMHFR3foqKxhYyJ0Km0ML 20wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="a2/hT5LZ"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dt14si2118986ejb.168.2019.09.26.21.37.36; Thu, 26 Sep 2019 21:38:01 -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; dkim=pass header.i=@kernel.org header.s=default header.b="a2/hT5LZ"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725769AbfI0Eha (ORCPT + 99 others); Fri, 27 Sep 2019 00:37:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:60412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbfI0Eha (ORCPT ); Fri, 27 Sep 2019 00:37:30 -0400 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8693D21906 for ; Fri, 27 Sep 2019 04:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569559049; bh=eokZR0QU/MEdg5xNwIt/H+MlFZDTmtpGw9NN9iq+r7Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=a2/hT5LZEzF1NtCWpl4GeZNpM9S/9uQQq2vNlZvQHkKujHjSfIZqzcJIfO45PWYAe PVTG1p8QdY0zW6dry/lwz7g/WE+Y75xGrKgNiZMbA6f7SloblPvryF1G8ntr2pJvHw +M43KpM6meyxkcmaZn7DygcEKB8RN/sjqd/GdvuU= Received: by mail-wr1-f43.google.com with SMTP id i1so1092486wro.4 for ; Thu, 26 Sep 2019 21:37:29 -0700 (PDT) X-Gm-Message-State: APjAAAVW1osd9dTtUFw71LQ1wc1VHAjO0fd+yuCXoTKLn/e6hU11Z9H+ PVcJH6d31yq2pEHDgzHpL+KtV9Rz8EiOaJbjfxNKhQ== X-Received: by 2002:adf:e908:: with SMTP id f8mr1212909wrm.210.1569559048029; Thu, 26 Sep 2019 21:37:28 -0700 (PDT) MIME-Version: 1.0 References: <20190925161255.1871-1-ard.biesheuvel@linaro.org> <20190925161255.1871-19-ard.biesheuvel@linaro.org> <20190927035319.GA23566@gondor.apana.org.au> In-Reply-To: <20190927035319.GA23566@gondor.apana.org.au> From: Andy Lutomirski Date: Thu, 26 Sep 2019 21:37:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 18/18] net: wireguard - switch to crypto API for packet encryption To: Herbert Xu Cc: Linus Torvalds , 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 Content-Type: text/plain; charset="UTF-8" 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 8:54 PM Herbert Xu wrote: > > 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. Then what's up with the insistence on using physical addresses for so many of the buffers? --Andy