]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: arm/aes-neonbs - Use AES library for single blocks
authorEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:20:01 +0000 (11:20 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:39:58 +0000 (11:39 -0800)
commita4e4e44649ba5f2d59f056ba59885fb080caa22e
tree999ab0d4fa0023fa25812eadc85594d6660fdcd9
parenta22fd0e3c495dd2d706c49c26663476e24d96e7d
crypto: arm/aes-neonbs - Use AES library for single blocks

aes-neonbs-glue.c calls __aes_arm_encrypt() and __aes_arm_decrypt() to
en/decrypt single blocks for CBC encryption, XTS tweak encryption, and
XTS ciphertext stealing.  In preparation for making the AES library use
this same ARM-optimized single-block AES en/decryption code and making
it an internal implementation detail of the AES library, replace the
calls to these functions with calls to the AES library.

Note that this reduces the size of the aesbs_cbc_ctx and aesbs_xts_ctx
structs, since unnecessary decryption round keys are no longer included.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260112192035.10427-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm/crypto/Kconfig
arch/arm/crypto/aes-neonbs-glue.c