diff options
author | Sebastian Siewior <sebastian@breakpoint.cc> | 2007-10-05 04:52:01 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:55:49 -0400 |
commit | f8246af005d56b73f4f04304fc5b6fd9878af4ef (patch) | |
tree | d935971920749a7e99b7224e413b110a3ba07b10 /crypto | |
parent | c5a511f1cd6f90a98ad11dd97e2313c7c787deb2 (diff) |
[CRYPTO] aes: Rename aes to aes-generic
Loading the crypto algorithm by the alias instead of by module directly
has the advantage that all possible implementations of this algorithm
are loaded automatically and the crypto API can choose the best one
depending on its priority.
Additionally it ensures that the generic implementation as well as the
HW driver (if available) is loaded in case the HW driver needs the
generic version as fallback in corner cases.
Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/Makefile | 2 | ||||
-rw-r--r-- | crypto/aes_generic.c (renamed from crypto/aes.c) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/Makefile b/crypto/Makefile index a624cbc188f..b6ef5e4f1ab 100644 --- a/crypto/Makefile +++ b/crypto/Makefile | |||
@@ -39,7 +39,7 @@ obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish.o | |||
39 | obj-$(CONFIG_CRYPTO_TWOFISH) += twofish.o | 39 | obj-$(CONFIG_CRYPTO_TWOFISH) += twofish.o |
40 | obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o | 40 | obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o |
41 | obj-$(CONFIG_CRYPTO_SERPENT) += serpent.o | 41 | obj-$(CONFIG_CRYPTO_SERPENT) += serpent.o |
42 | obj-$(CONFIG_CRYPTO_AES) += aes.o | 42 | obj-$(CONFIG_CRYPTO_AES) += aes_generic.o |
43 | obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia.o | 43 | obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia.o |
44 | obj-$(CONFIG_CRYPTO_CAST5) += cast5.o | 44 | obj-$(CONFIG_CRYPTO_CAST5) += cast5.o |
45 | obj-$(CONFIG_CRYPTO_CAST6) += cast6.o | 45 | obj-$(CONFIG_CRYPTO_CAST6) += cast6.o |
diff --git a/crypto/aes.c b/crypto/aes_generic.c index e2440773878..9401dca85e8 100644 --- a/crypto/aes.c +++ b/crypto/aes_generic.c | |||
@@ -453,4 +453,4 @@ module_exit(aes_fini); | |||
453 | 453 | ||
454 | MODULE_DESCRIPTION("Rijndael (AES) Cipher Algorithm"); | 454 | MODULE_DESCRIPTION("Rijndael (AES) Cipher Algorithm"); |
455 | MODULE_LICENSE("Dual BSD/GPL"); | 455 | MODULE_LICENSE("Dual BSD/GPL"); |
456 | 456 | MODULE_ALIAS("aes"); | |