]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit032e539d1a22da98ba36f81cb577c0154c0ae9f0
treed54b424f9468c1cde6deacae580044748f9f7628
parent89b61c0ecc89d07c453cb560551e6ce78644abd4
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