[PATCH 0/2] crypto: x86 - AES-CTR and AES-XCTR rewrite

Eric Biggers
2025-02-05T03:51:05Z

This series adds new implementations of AES-CTR and AES-XCTR that are
optimized for modern x86_64 CPUs, and it removes the existing
implementations that are superseded or obsolete.

Changed in v2:
- Split the removal of the non-AVX implementation of AES-CTR into a
separate patch, and removed the assembly code too.
- Made some minor tweaks to the new assembly file, including fixing a
build error when aesni-intel is built as a module.

Eric Biggers (2):
crypto: x86/aes-ctr - rewrite AES-NI optimized CTR and add VAES
support
crypto: x86/aes-ctr - remove non-AVX implementation of AES-CTR

arch/x86/crypto/Makefile | 2 +-
arch/x86/crypto/aes-ctr-avx-x86_64.S | 552 ++++++++++++++++++++++
arch/x86/crypto/aes_ctrby8_avx-x86_64.S | 597 ------------------------
arch/x86/crypto/aesni-intel_asm.S | 125 -----
arch/x86/crypto/aesni-intel_glue.c | 450 ++++++++----------
5 files changed, 756 insertions(+), 970 deletions(-)
create mode 100644 arch/x86/crypto/aes-ctr-avx-x86_64.S
delete mode 100644 arch/x86/crypto/aes_ctrby8_avx-x86_64.S

base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
--
2.48.1