]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm/nhpoly1305 - add NEON-accelerated NHPoly1305
authorEric Biggers <ebiggers@google.com>
Sat, 17 Nov 2018 01:26:30 +0000 (17:26 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Nov 2018 06:26:56 +0000 (14:26 +0800)
commitdc9b9c2d95859df8db62f207743eaf786bdd0c3f
tree8a96f72547b997e6e889583ef64b9512edf7e857
parent47a5bd8fc58223dee237f1ac5a1aed6e72a4af86
crypto: arm/nhpoly1305 - add NEON-accelerated NHPoly1305

Add an ARM NEON implementation of NHPoly1305, an ε-almost-∆-universal
hash function used in the Adiantum encryption mode.  For now, only the
NH portion is actually NEON-accelerated; the Poly1305 part is less
performance-critical so is just implemented in C.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/Kconfig
arch/arm/crypto/Makefile
arch/arm/crypto/nh-neon-core.S [new file with mode: 0644]
arch/arm/crypto/nhpoly1305-neon-glue.c [new file with mode: 0644]