crypto: x86/aes-xts - make non-AVX implementation use new glue code
authorEric Biggers <ebiggers@google.com>
Sun, 7 Apr 2024 21:22:31 +0000 (17:22 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Apr 2024 07:07:53 +0000 (15:07 +0800)
commit751fb2528c12ef64d1e863efb196cdc968b384f6
treea36ecfa5bbe8073e8baae31b334b977ae594bcbb
parent5c6ca9d936654a135b459c846885e08966e5e5bf
crypto: x86/aes-xts - make non-AVX implementation use new glue code

Make the non-AVX implementation of AES-XTS (xts-aes-aesni) use the new
glue code that was introduced for the AVX implementations of AES-XTS.
This reduces code size, and it improves the performance of xts-aes-aesni
due to the optimization for messages that don't span page boundaries.

This required moving the new glue functions higher up in the file and
allowing the IV encryption function to be specified by the caller.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aes-xts-avx-x86_64.S
arch/x86/crypto/aesni-intel_asm.S
arch/x86/crypto/aesni-intel_glue.c