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

Eric Biggers posted 2 patches 1 year ago
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
[PATCH 0/2] crypto: x86 - AES-CTR and AES-XCTR rewrite
Posted by Eric Biggers 1 year ago
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
Re: [PATCH 0/2] crypto: x86 - AES-CTR and AES-XCTR rewrite
Posted by Eric Biggers 1 year ago
On Tue, Feb 04, 2025 at 07:50:24PM -0800, Eric Biggers wrote:
> [PATCH 0/2] crypto: x86 - AES-CTR and AES-XCTR rewrite

To clarify, this is meant to be v2.  I forgot to put it in the subject lines.

- Eric