summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2026-01-12 22:20:07 +0300
committerEric Biggers <ebiggers@kernel.org>2026-01-12 22:39:58 +0300
commita2484474272ef98d9580d8c610b0f7c6ed2f146c (patch)
treef88fa49c8e7d65208204dfc7883a83253af8e68f /include
parent641e70563ac1cc498b31f4016c1f5dde8e0e4d71 (diff)
downloadlinux-a2484474272ef98d9580d8c610b0f7c6ed2f146c.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/aes.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/crypto/aes.h b/include/crypto/aes.h
index e8b83d4849fe..66421795cdab 100644
--- a/include/crypto/aes.h
+++ b/include/crypto/aes.h
@@ -82,9 +82,6 @@ struct crypto_aes_ctx {
u32 key_length;
};
-extern const u32 crypto_ft_tab[4][256] ____cacheline_aligned;
-extern const u32 crypto_it_tab[4][256] ____cacheline_aligned;
-
/*
* validate key length for AES algorithms
*/
@@ -102,9 +99,6 @@ static inline int aes_check_keylen(size_t keylen)
return 0;
}
-int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
- unsigned int key_len);
-
/**
* aes_expandkey - Expands the AES key as described in FIPS-197
* @ctx: The location where the computed key will be stored.