OSDN Git Service

crypto: arm64/nhpoly1305 - add NEON-accelerated NHPoly1305
authorEric Biggers <ebiggers@google.com>
Tue, 4 Dec 2018 03:52:49 +0000 (19:52 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:35 +0000 (18:24 +0800)
commita00fa0c88774bea9a102fc616598d9ee52765451
tree68166f695db2a3d8bc4971d867c65d80d6953ac7
parent88d905e20b11f7ad841e3afddaf1d59b6693c4a1
crypto: arm64/nhpoly1305 - add NEON-accelerated NHPoly1305

Add an ARM64 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.

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