Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp819435imm; Mon, 1 Oct 2018 20:26:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV62YRVzeGGQMdkg09kwRLtVERReP6b6Dp0cRTnEKaXFo9u259uJJjd+QpMlGrS6rXkCy4cIa X-Received: by 2002:a63:de05:: with SMTP id f5-v6mr12716564pgg.292.1538450793220; Mon, 01 Oct 2018 20:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538450793; cv=none; d=google.com; s=arc-20160816; b=ZtkUj03FGRMZfXYgj51+aIJ5n/M7fEirjPHUQfeXzAr00DXDCTteRrjeWk4CjYNxm0 fLFTDENkmjY1ngCWaxvUi/4c8lZ/yBvjWe1wnV4gWTdglmh21o1wv4jpQzcnn0ODgdYH dC404EBQHbG6UbfbwhFlqNLbMq4kxsJPE8ZYVNB3DeWcvUiCEkLseJve82DNF3dEvnRw UUput/7yl0J7zRsrC6q75MYAc+gvoLBb7BPGxXZnOQPS51yigod0IpiQVjYCJmXRen70 h3D/fjo6OOizxenWi+E9yd0J5O3VWDM5hffA7OfJkatOAxxPd9C2o7EQ7fgc+v9/Np4/ /GMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=igoJZtP/iEvCObFgrTFZNalaWaLUpbNsbrdWOT6QgQg=; b=cZLoQaE3khfxu2d9hSazAnMXFgmj2i8E3k+j/5YfUARfyi1TezgziMkrA5K6amB/9K lfEd7yuZZaE5R/MWKd+/lesshtnuBOOfP1J5uH5LKUikM/w8CqI0x9qYI+Q2FFfWhG3O KMas26HE1bAwp6vd21YhwFRxU2z0crREM8I1kUeuTt0hJOv/dNmiz5MPc+6wEpM/j7yg GJu9IK+dsjVeNDQinZ9Kum4EmLKFOnULfHuh/WdeM5IQqFN14JgT6yGhBGIqKhD8cnIp F1dF+b/rA1hbTjqJ7sJgrWsWycjAFs0n4yjOBIpCZoWzeGtN27U4LyWtyBUgQjVmn8+v Z3SQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 e63-v6si2513904pfc.51.2018.10.01.20.26.17; Mon, 01 Oct 2018 20:26:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbeJBKHN (ORCPT + 99 others); Tue, 2 Oct 2018 06:07:13 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:49768 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbeJBKHN (ORCPT ); Tue, 2 Oct 2018 06:07:13 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1g7BK7-00055F-5k; Tue, 02 Oct 2018 11:26:11 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1g7BK5-0002IU-Br; Tue, 02 Oct 2018 11:26:09 +0800 Date: Tue, 2 Oct 2018 11:26:09 +0800 From: Herbert Xu To: "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-crypto@vger.kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, Jason@zx2c4.com, sneves@dei.uc.pt, luto@kernel.org, jeanphilippe.aumasson@gmail.com, ebiggers@google.com Subject: Re: [PATCH net-next v6 21/23] crypto: port ChaCha20 to Zinc Message-ID: <20181002032609.o5i2hmphuqtkqgc4@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180925145622.29959-22-Jason@zx2c4.com> X-Newsgroups: apana.lists.os.linux.cryptoapi,apana.lists.os.linux.kernel,apana.lists.os.linux.netdev Organization: Core User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jason A. Donenfeld wrote: > Now that ChaCha20 is in Zinc, we can have the crypto API code simply > call into it. The crypto API expects to have a stored key per instance > and independent nonces, so we follow suite and store the key and > initialize the nonce independently. > > Signed-off-by: Jason A. Donenfeld > Cc: Samuel Neves > Cc: Andy Lutomirski > Cc: Greg KH > Cc: Jean-Philippe Aumasson > Cc: Eric Biggers > --- > arch/arm/configs/exynos_defconfig | 1 - > arch/arm/configs/multi_v7_defconfig | 1 - > arch/arm/configs/omap2plus_defconfig | 1 - > arch/arm/crypto/Kconfig | 6 - > arch/arm/crypto/Makefile | 2 - > arch/arm/crypto/chacha20-neon-core.S | 521 -------------------- > arch/arm/crypto/chacha20-neon-glue.c | 127 ----- > arch/arm64/configs/defconfig | 1 - > arch/arm64/crypto/Kconfig | 6 - > arch/arm64/crypto/Makefile | 3 - > arch/arm64/crypto/chacha20-neon-core.S | 450 ----------------- > arch/arm64/crypto/chacha20-neon-glue.c | 133 ----- > arch/x86/crypto/Makefile | 3 - > arch/x86/crypto/chacha20-avx2-x86_64.S | 448 ----------------- > arch/x86/crypto/chacha20-ssse3-x86_64.S | 630 ------------------------ > arch/x86/crypto/chacha20_glue.c | 146 ------ > crypto/Kconfig | 17 +- > crypto/Makefile | 2 +- > crypto/chacha20_generic.c | 136 ----- > crypto/chacha20_zinc.c | 90 ++++ > crypto/chacha20poly1305.c | 8 +- > include/crypto/chacha20.h | 12 - > 22 files changed, 96 insertions(+), 2648 deletions(-) > delete mode 100644 arch/arm/crypto/chacha20-neon-core.S > delete mode 100644 arch/arm/crypto/chacha20-neon-glue.c > delete mode 100644 arch/arm64/crypto/chacha20-neon-core.S > delete mode 100644 arch/arm64/crypto/chacha20-neon-glue.c > delete mode 100644 arch/x86/crypto/chacha20-avx2-x86_64.S > delete mode 100644 arch/x86/crypto/chacha20-ssse3-x86_64.S > delete mode 100644 arch/x86/crypto/chacha20_glue.c > delete mode 100644 crypto/chacha20_generic.c > create mode 100644 crypto/chacha20_zinc.c Oh nice, so you did the conversion of the existing crypto code. I presume someone has done the numbers and verified that there is no performance regression? If so it would be good to include those numbers somewhere in this submission (within a patch description so that it goes into git). Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt