From: Steve Capper Subject: Re: [PATCH 0/5] sha3 fixes and new implementation for arm64 Date: Tue, 16 Jan 2018 08:41:45 +0000 Message-ID: <20180116084145.5r3ofxfnr6xhzgsm@capper-debian.cambridge.arm.com> References: <20180112131522.25663-1-ard.biesheuvel@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-arm-kernel , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Steve Capper , Herbert Xu , Catalin Marinas , Will Deacon , jgarzik@redhat.com, nd@arm.com To: Ard Biesheuvel Return-path: Received: from mail-eopbgr20081.outbound.protection.outlook.com ([40.107.2.81]:28312 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750818AbeAPImM (ORCPT ); Tue, 16 Jan 2018 03:42:12 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Fri, Jan 12, 2018 at 03:13:56PM +0000, Ard Biesheuvel wrote: > On 12 January 2018 at 13:15, Ard Biesheuvel wrote: > > Add an implementation of SHA3 to arm64 using the new special instructions (#4) > > > > In preparation of that, fix a bug in the SHA3 and refactor it a bit so it > > can serve as a fallback for the other code. Also, add some new test vectors > > to get better test coverage. > > > > Ard Biesheuvel (5): > > crypto/generic: sha3 - fixes for alignment and big endian operation > > crypto/generic: sha3 - simplify code > > crypto/generic: sha3 - export init/update/final routines > > crypto/arm64: sha3 - new implementation based on special instructions > > Forgot to mention: this is an RFT for patch #4, as it has not been > validated against a real implementation, only against my own QEMU > code. Hi Ard, I have tested this patch set applied to 4.15-rc7 running in a model. I used the following tcrypt modes: 48, 49, 50, 51, 111, 112, 113, 114, 187, 188, 322, 323, 324, 325, 418, 419, 420 and 421. Also, I added some logic to double check that sha3_ce_transform(.) was being called rather than sha3_scalar_transform(.). (Because both the scalar and ce code paths are contained in the sha3-x-arm64 drivers). So, please feel free to add for the series: Tested-by: Steve Capper Cheers, -- Steve > > > crypto/testmgr: sha3 - add new testcases > > > > arch/arm64/crypto/Kconfig | 6 + > > arch/arm64/crypto/Makefile | 3 + > > arch/arm64/crypto/sha3-ce-core.S | 224 ++++++++ > > arch/arm64/crypto/sha3-ce-glue.c | 156 ++++++ > > crypto/sha3_generic.c | 198 +++---- > > crypto/testmgr.h | 550 ++++++++++++++++++++ > > include/crypto/sha3.h | 6 +- > > 7 files changed, 1012 insertions(+), 131 deletions(-) > > create mode 100644 arch/arm64/crypto/sha3-ce-core.S > > create mode 100644 arch/arm64/crypto/sha3-ce-glue.c > > > > -- > > 2.11.0 > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel