Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp734303ybc; Tue, 19 Nov 2019 08:25:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxSFp/U/foW14zgMmNklw41TCJNRFxBHaPz5SqdJULBD0lPha+jKS6NoPfoYht6cGmcAwjc X-Received: by 2002:a17:906:d71:: with SMTP id s17mr35807306ejh.312.1574180699938; Tue, 19 Nov 2019 08:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574180699; cv=none; d=google.com; s=arc-20160816; b=zYrmMR7ozkKWRPuyeyneOTBWCUBBJ/A4RG/f6zSicx6wO5hY3rWJ5Vd1BFRjPEIcoz a88sWBsh+22QKAvvx5w2ouwBHUIijEun92H2OM9WXf43WpE7KBdkISxGKSVP2hhFvGM3 LFf9pCxNuRwN6POYviM4L2AduiYEQUCqoMOnvXpWtIGMvxGNk/I0XP/TZm7uC9oWu7Zv KlhD3PSdQKhJ+5U/Y2v1wRfbjyr70xmr83FJ2pcevTboT069pGRr/MMRAqUkQnlbOv8A LBBvHZ5YO6CYtZ6s1l0jYNOhLsEPVgVt4+gEWY7P0b7Hhm+QCJdEuZtfi+00BNkVHLcc IdjQ== 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:dkim-signature; bh=T6GFUWarAee/9xEJbt/OXgrJE+pHvReYcwuqpEFM5Yg=; b=xq5mcxbHku7QRgwWwYProNOymM1bZqH009FefHvKgdRNmmM6n1+kc6vo7QmX4xT9Rv 36GZIUhK2u26/7nEFYuk2RanRW2ZDAU1tYj85FTlCbdJbaYm6auQv8x1wMj5/jY/d+cR XRTYRLZJR+ZaAxj/EJKw34Sp7sa/pBNQvnvwdjnPzo87eiGEyawhA+RPWbQtJfc0XAs2 G/DsugG8N/1D/L0qRW+OXgpJVxtXxoQoaW8uCqU9Jmul7r/XlYoJh4ajztiPova+hYwJ hBgmeGrhKUE1J/EGLnGMvdJaIjE/7krx+2ulEi2rgkzZ1cM5d3Js/wvWaavPf7XVIOjV MRfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=I1choS67; 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 z10si14324631ejr.262.2019.11.19.08.24.27; Tue, 19 Nov 2019 08:24:59 -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=@kernel.org header.s=default header.b=I1choS67; 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 S1728526AbfKSQXO (ORCPT + 99 others); Tue, 19 Nov 2019 11:23:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:34052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727646AbfKSQXN (ORCPT ); Tue, 19 Nov 2019 11:23:13 -0500 Received: from sol.localdomain (c-24-5-143-220.hsd1.ca.comcast.net [24.5.143.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F2AD222A2; Tue, 19 Nov 2019 16:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574180593; bh=Et+NziiyOApfNBcF0Smr+w05xUXuYpnKtSMneS6tkQQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I1choS67o2JRwMBu/1xPc4sbkLp2GTw7XsLxsQTYkmd/KN0risE+9qZ99QYx3ry4c Amg0Ef2rjxcnCct2sJIdpfLXJH1nXWcIn8yKO+k2TlmKgy+YHD3mCNgOLjH2D9a1Ph dnXAkZE38ycXcL69anaLvNku8BfqG42PlFmSoJ5Y= Date: Tue, 19 Nov 2019 08:23:11 -0800 From: Eric Biggers To: "Jason A. Donenfeld" Cc: 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 Subject: Re: [PATCH v5 00/34] crypto: crypto API library interfaces for WireGuard Message-ID: <20191119162311.GA819@sol.localdomain> References: <20191108122240.28479-1-ardb@kernel.org> <20191115060727.eng4657ym6obl4di@gondor.apana.org.au> <20191115090921.jn45akou3cw4flps@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 support is available there so most people will use that instead. So if e.g. the ChaCha implementation is still AVX2 accelerated, but it's primarily optimized for networking packets rather than disk encryption, that would probably be fine. - Eric