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

Move the ARM optimized single-block AES en/decryption code into
lib/crypto/, wire it up to the AES library API, and remove the
superseded "aes-arm" crypto_cipher algorithm.

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

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