summaryrefslogtreecommitdiff
path: root/crypto/aes.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-11-05 18:06:26 +1100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-09 14:15:39 -0800
commit612712189806320b5c967e68071ad11089a2c172 (patch)
treea8ef55e8df5d6c2dfdc06dff8e95e83fcaa0beed /crypto/aes.c
parentbfdc4ac1ca69d010637d4dd77cffd39e26a3463b (diff)
downloadlinux-crypto-612712189806320b5c967e68071ad11089a2c172.tar.gz
linux-crypto-612712189806320b5c967e68071ad11089a2c172.zip
[CRYPTO] Allow AES C/ASM implementations to coexist
As the Crypto API now allows multiple implementations to be registered for the same algorithm, we no longer have to play tricks with Kconfig to select the right AES implementation. This patch sets the driver name and priority for all the AES implementations and removes the Kconfig conditions on the C implementation for AES. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aes.c')
-rw-r--r--crypto/aes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/aes.c b/crypto/aes.c
index 35a11dee..b9b2afb4 100644
--- a/crypto/aes.c
+++ b/crypto/aes.c
@@ -418,6 +418,8 @@ static void aes_decrypt(void *ctx_arg, u8 *out, const u8 *in)
static struct crypto_alg aes_alg = {
.cra_name = "aes",
+ .cra_driver_name = "aes-generic",
+ .cra_priority = 100,
.cra_flags = CRYPTO_ALG_TYPE_CIPHER,
.cra_blocksize = AES_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct aes_ctx),