Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1054301ybc; Tue, 19 Nov 2019 13:44:11 -0800 (PST) X-Google-Smtp-Source: APXvYqw56S1osjb1Ak3sb8DwzE1zTqmmbF+aqnPLms1Dl6rgNRCBuXxyZ/qLKRbgAFs8fdWGOF+j X-Received: by 2002:a17:906:2508:: with SMTP id i8mr8160550ejb.323.1574199851269; Tue, 19 Nov 2019 13:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574199851; cv=none; d=google.com; s=arc-20160816; b=rfMC0fx2qR1+05NXvKVxz0WPveiJ1pkbNGRDAGGm3jKebsE+B55Mdz1AUGOWu0hv/u o8OcgdfHbfBbPavyNbDaaOwyY1AhX/RpnX7va4ZgvvW3NNgiTlYLOu4sGgmgMvLDGdnW UXRzsYB9A2y0RLaYsuhPwWJMeuXSKfuXVJo8jScRHj8mSeUt0bmqzpg7fTsC3TsvJJ7Q e/dEpKiEhK3Rj80mUwx0xZaVNssEqPGL3wOjXuYpfMsqDhdoggXsXxHiBXV/ZPBbTATY D4J+0L4dFXFSnYEvdpqZ2o5PKwYbpu05973ipxemtVdKq80rGTl1XqNTgmDx5Z7XclDS 2jUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=Bk5Tq16bY9GDyfLBVQuefbtFYtwGNwRhj3Y+kpKejv4=; b=z9apAahJv0tFj3kT4lK8Kzyus44SB6jKAT57c6qFF6vXqUw31KJyAYM6NmPIxaBrPY bhTr89bfaoVLQtrOafyw/tLWgKpfQ1g0OVCDUP4Pa+DU42+WW6Jig4wEP1l9nYG5Tn7T l++JltuccEvi698FdKSP9rz1i7twNDLyoUscwFVnVDi9PRBSewNj2qhxFEkctVIlz9hz 4BdGwsDLcilY/QIfEE+98R2O3gz2iA1v+0QuUsNM9j3FjDOAAkwFQf71gA789mlFzRHv 38oOEuRMMd1doX7JVfIf+aixr8NvXrf68el1LY+TJGW6e1/cnFNAasV8xtX5k+mFZTVh Sfhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.ch header.s=default header.b=PVpEx54f; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t14si15153472ejj.363.2019.11.19.13.43.38; Tue, 19 Nov 2019 13:44:11 -0800 (PST) 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=@protonmail.ch header.s=default header.b=PVpEx54f; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727173AbfKSVnc (ORCPT + 99 others); Tue, 19 Nov 2019 16:43:32 -0500 Received: from mail-40135.protonmail.ch ([185.70.40.135]:52907 "EHLO mail-40135.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbfKSVnc (ORCPT ); Tue, 19 Nov 2019 16:43:32 -0500 Date: Tue, 19 Nov 2019 21:43:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.ch; s=default; t=1574199809; bh=Bk5Tq16bY9GDyfLBVQuefbtFYtwGNwRhj3Y+kpKejv4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=PVpEx54fXcWYaFeLradgHM/WCays8KLYQgJJm3dMEgh6HdazHciuZQGJeIGaul+f1 G+BlFdM8wbG5EHDWgYjnYviijnAo5Fy1Nl2wYnTUIC5NBlmXB+LLPX+TQ83F4ZuThU haqEkKqdVnKwqQVugvTCWbG9o7DmY3HQg0IzRwbY= To: Eric Biggers From: Jordan Glover Cc: "Jason A. Donenfeld" , Ard Biesheuvel , Herbert Xu , Ard Biesheuvel , Linux Crypto Mailing List , David Miller , Samuel Neves , Arnd Bergmann , Andy Lutomirski , Martin Willi , Rene van Dorst , David Sterba Reply-To: Jordan Glover Subject: Re: [PATCH v5 00/34] crypto: crypto API library interfaces for WireGuard Message-ID: In-Reply-To: <20191119162311.GA819@sol.localdomain> References: <20191108122240.28479-1-ardb@kernel.org> <20191115060727.eng4657ym6obl4di@gondor.apana.org.au> <20191115090921.jn45akou3cw4flps@gondor.apana.org.au> <20191119162311.GA819@sol.localdomain> Feedback-ID: QEdvdaLhFJaqnofhWA-dldGwsuoeDdDw7vz0UPs8r8sanA3bIt8zJdf4aDqYKSy4gJuZ0WvFYJtvq21y6ge_uQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.7 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tuesday, November 19, 2019 4:23 PM, Eric Biggers w= rote: > On Tue, Nov 19, 2019 at 04:44:11PM +0100, Jason A. Donenfeld wrote: > > > > So for future changes, could we please include performance numbers > > > based on realistic workloads? > > > > Yea I share your concerns here. From preliminary results, I think the > > Poly1305 code will be globally better, and I don't think we'll need an > > abundance of discussion about it. > > The ChaCha case is more interesting. I'll submit this with lots of > > packet-sized microbenchmarks, as well as on-the-wire WireGuard > > testing. Eric - I'm guessing you don't care too much about Adamantium > > performance on x86 where people are probably better off with AES-XTS, > > right? Are there other specific real world cases we care about? IPsec > > is another one, but those concerns, packet-size wise, are more or less > > the same as for WireGuard. But anyway, we can cross this bridge when > > we come to it. > > I'd like for Adiantum to continue to be accelerated on x86, but it doesn'= t have > to squeeze out all performance possible on x86, given that hardware AES s= upport > is available there so most people will use that instead. So if e.g. the C= haCha > implementation is still AVX2 accelerated, but it's primarily optimized fo= r > networking packets rather than disk encryption, that would probably be fi= ne. > > - Eric I'm interested in using Adamantium on x86 and I hope that you folks won't c= ripple it :( Jordan