OSDN Git Service

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)
commit16aae3595a9d41c97d983889b341c455779c2ecf
tree8a96f72547b997e6e889583ef64b9512edf7e857
parent26609a21a9460145e37d90947ad957b358a05288
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]