]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: aes - Replace aes-generic with wrapper around lib
authorEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:20:07 +0000 (11:20 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:39:58 +0000 (11:39 -0800)
commita2484474272ef98d9580d8c610b0f7c6ed2f146c
treef88fa49c8e7d65208204dfc7883a83253af8e68f
parent641e70563ac1cc498b31f4016c1f5dde8e0e4d71
crypto: aes - Replace aes-generic with wrapper around lib

Now that the AES library's performance has been improved, replace
aes_generic.c with a new file aes.c which wraps the AES library.

In preparation for making the AES library actually utilize the kernel's
existing architecture-optimized AES code including AES instructions, set
the driver name to "aes-lib" instead of "aes-generic".  This mirrors
what's been done for the hash algorithms.  Update testmgr.c accordingly.

Since this removes the crypto_aes_set_key() helper function, add
temporary replacements for it to arch/arm/crypto/aes-cipher-glue.c and
arch/arm64/crypto/aes-cipher-glue.c.  This is temporary, as that code
will be migrated into lib/crypto/ in later commits.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260112192035.10427-10-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/arm/crypto/aes-cipher-glue.c
arch/arm64/crypto/aes-cipher-glue.c
crypto/Makefile
crypto/aes.c [new file with mode: 0644]
crypto/aes_generic.c [deleted file]
crypto/crypto_user.c
crypto/testmgr.c
drivers/crypto/starfive/jh7110-aes.c
include/crypto/aes.h