crypto: x86/nhpoly1305 - add AVX2 accelerated NHPoly1305
authorEric Biggers <ebiggers@google.com>
Wed, 5 Dec 2018 06:20:01 +0000 (22:20 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:57 +0000 (18:24 +0800)
commit0f961f9f670e7c07690bfde2f533b93c653569cc
treed54b424f9468c1cde6deacae580044748f9f7628
parent012c82388c032cd4a9821e11bae336cf4a014822
crypto: x86/nhpoly1305 - add AVX2 accelerated NHPoly1305

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

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/Makefile
arch/x86/crypto/nh-avx2-x86_64.S [new file with mode: 0644]
arch/x86/crypto/nhpoly1305-avx2-glue.c [new file with mode: 0644]
crypto/Kconfig