diff options
author | 2005-11-05 18:06:26 +1100 | |
---|---|---|
committer | 2006-01-09 14:15:39 -0800 | |
commit | c8a19c91b5b488fed8cce04200a84c6a35c0bf0c (patch) | |
tree | e0296c60f7601c5a1d1cf5fa9afd0e38f92e6995 /arch/i386 | |
parent | [CRYPTO] Allow multiple implementations of the same algorithm (diff) | |
download | linux-c8a19c91b5b488fed8cce04200a84c6a35c0bf0c.tar.gz linux-c8a19c91b5b488fed8cce04200a84c6a35c0bf0c.tar.bz2 linux-c8a19c91b5b488fed8cce04200a84c6a35c0bf0c.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 'arch/i386')
-rw-r--r-- | arch/i386/crypto/aes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/crypto/aes.c b/arch/i386/crypto/aes.c index 1deb9ff564be..138652aafcbf 100644 --- a/arch/i386/crypto/aes.c +++ b/arch/i386/crypto/aes.c @@ -486,6 +486,8 @@ static inline void aes_decrypt(void *ctx, u8 *dst, const u8 *src) static struct crypto_alg aes_alg = { .cra_name = "aes", + .cra_driver_name = "aes-i586", + .cra_priority = 200, .cra_flags = CRYPTO_ALG_TYPE_CIPHER, .cra_blocksize = AES_BLOCK_SIZE, .cra_ctxsize = sizeof(struct aes_ctx), |