]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit451a49f5a81d34553077ba6aaa9e44fbb30f8716
tree68166f695db2a3d8bc4971d867c65d80d6953ac7
parente9a0ea094421fbf62d52f829d78c2812d222f750
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]