]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: arm64/aes: Migrate optimized code into library
authorEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:20:09 +0000 (11:20 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:39:58 +0000 (11:39 -0800)
commit2b1ef7aeeb184ee78523f3d24e221296574c6f2d
treebe1ca1de79fb2af1f8870dcb97629277ab4d2f29
parentfa2297750c2cc61788d1843f358dbfecaa42944f
lib/crypto: arm64/aes: Migrate optimized code into library

Move the ARM64 optimized AES key expansion and single-block AES
en/decryption code into lib/crypto/, wire it up to the AES library API,
and remove the superseded crypto_cipher algorithms.

The result is that both the AES library and crypto_cipher APIs are now
optimized for ARM64, whereas previously only crypto_cipher was (and the
optimizations weren't enabled by default, which this fixes as well).

Note: to see the diff from arch/arm64/crypto/aes-ce-glue.c to
lib/crypto/arm64/aes.h, view this commit with 'git show -M10'.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260112192035.10427-12-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
13 files changed:
arch/arm64/crypto/Kconfig
arch/arm64/crypto/Makefile
arch/arm64/crypto/aes-ce-ccm-glue.c
arch/arm64/crypto/aes-ce-glue.c [deleted file]
arch/arm64/crypto/aes-ce-setkey.h [deleted file]
arch/arm64/crypto/aes-cipher-glue.c [deleted file]
arch/arm64/crypto/aes-glue.c
include/crypto/aes.h
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/arm64/aes-ce-core.S [moved from arch/arm64/crypto/aes-ce-core.S with 100% similarity]
lib/crypto/arm64/aes-cipher-core.S [moved from arch/arm64/crypto/aes-cipher-core.S with 100% similarity]
lib/crypto/arm64/aes.h [new file with mode: 0644]