diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-10-17 17:03:13 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-08 22:43:00 -0500 |
commit | dd6eec242bb2df73743f07535d2bacd6707c6300 (patch) | |
tree | 16ee8e2c2b89d0baffe05c7ea8121d8252f01793 | |
parent | bc83b8299cb4ac2a9f64215a04854e4c934d1510 (diff) |
crypto: serpent - rename module from serpent to serpent_generic
Rename module from serpent.ko to serpent_generic.ko and add module alias. This
is to allow assembler implementation to autoload on 'modprobe serpent'. Also
add driver_name and priority for serpent cipher.
CC: Dag Arne Osvik <osvik@ii.uib.no>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/Makefile | 4 | ||||
-rw-r--r-- | crypto/serpent.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/crypto/Makefile b/crypto/Makefile index 9e6eee2c05db..0e1f2aa7218e 100644 --- a/crypto/Makefile +++ b/crypto/Makefile | |||
@@ -65,7 +65,9 @@ obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish_generic.o | |||
65 | obj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o | 65 | obj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o |
66 | obj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o | 66 | obj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o |
67 | obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o | 67 | obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o |
68 | obj-$(CONFIG_CRYPTO_SERPENT) += serpent.o | 68 | |
69 | serpent_generic-y := serpent.o | ||
70 | obj-$(CONFIG_CRYPTO_SERPENT) += serpent_generic.o | ||
69 | obj-$(CONFIG_CRYPTO_AES) += aes_generic.o | 71 | obj-$(CONFIG_CRYPTO_AES) += aes_generic.o |
70 | obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia.o | 72 | obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia.o |
71 | obj-$(CONFIG_CRYPTO_CAST5) += cast5.o | 73 | obj-$(CONFIG_CRYPTO_CAST5) += cast5.o |
diff --git a/crypto/serpent.c b/crypto/serpent.c index 867ca93ebb63..eb6163041b08 100644 --- a/crypto/serpent.c +++ b/crypto/serpent.c | |||
@@ -478,6 +478,8 @@ static void serpent_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) | |||
478 | 478 | ||
479 | static struct crypto_alg serpent_alg = { | 479 | static struct crypto_alg serpent_alg = { |
480 | .cra_name = "serpent", | 480 | .cra_name = "serpent", |
481 | .cra_driver_name = "serpent-generic", | ||
482 | .cra_priority = 100, | ||
481 | .cra_flags = CRYPTO_ALG_TYPE_CIPHER, | 483 | .cra_flags = CRYPTO_ALG_TYPE_CIPHER, |
482 | .cra_blocksize = SERPENT_BLOCK_SIZE, | 484 | .cra_blocksize = SERPENT_BLOCK_SIZE, |
483 | .cra_ctxsize = sizeof(struct serpent_ctx), | 485 | .cra_ctxsize = sizeof(struct serpent_ctx), |
@@ -588,3 +590,4 @@ MODULE_LICENSE("GPL"); | |||
588 | MODULE_DESCRIPTION("Serpent and tnepres (kerneli compatible serpent reversed) Cipher Algorithm"); | 590 | MODULE_DESCRIPTION("Serpent and tnepres (kerneli compatible serpent reversed) Cipher Algorithm"); |
589 | MODULE_AUTHOR("Dag Arne Osvik <osvik@ii.uib.no>"); | 591 | MODULE_AUTHOR("Dag Arne Osvik <osvik@ii.uib.no>"); |
590 | MODULE_ALIAS("tnepres"); | 592 | MODULE_ALIAS("tnepres"); |
593 | MODULE_ALIAS("serpent"); | ||