crypto: x86/aesni-xctr - Add accelerated implementation of XCTR
authorNathan Huckleberry <nhuck@google.com>
Fri, 20 May 2022 18:14:56 +0000 (18:14 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 Jun 2022 08:40:17 +0000 (16:40 +0800)
commitfd94fcf09957a75e25941f7dbfc84d30a63817ac
tree431cfca57f029912468f08476d56adff6389564a
parent7ff554ced7c7d7cf77586e07474e8633e011e2d0
crypto: x86/aesni-xctr - Add accelerated implementation of XCTR

Add hardware accelerated version of XCTR for x86-64 CPUs with AESNI
support.

More information on XCTR can be found in the HCTR2 paper:
"Length-preserving encryption with HCTR2":
https://eprint.iacr.org/2021/1441.pdf

Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aes_ctrby8_avx-x86_64.S
arch/x86/crypto/aesni-intel_glue.c
crypto/Kconfig