summaryrefslogtreecommitdiffstats
path: root/crypto/serpent.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-10-17 23:03:13 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-11-09 04:43:00 +0100
commitdd6eec242bb2df73743f07535d2bacd6707c6300 (patch)
tree16ee8e2c2b89d0baffe05c7ea8121d8252f01793 /crypto/serpent.c
parentcrypto: serpent - export common functions for x86_64/i386-sse2 assembler impl... (diff)
downloadlinux-dd6eec242bb2df73743f07535d2bacd6707c6300.tar.xz
linux-dd6eec242bb2df73743f07535d2bacd6707c6300.zip
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>
Diffstat (limited to '')
-rw-r--r--crypto/serpent.c3
1 files changed, 3 insertions, 0 deletions
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)
static struct crypto_alg serpent_alg = {
.cra_name = "serpent",
+ .cra_driver_name = "serpent-generic",
+ .cra_priority = 100,
.cra_flags = CRYPTO_ALG_TYPE_CIPHER,
.cra_blocksize = SERPENT_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct serpent_ctx),
@@ -588,3 +590,4 @@ MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Serpent and tnepres (kerneli compatible serpent reversed) Cipher Algorithm");
MODULE_AUTHOR("Dag Arne Osvik <osvik@ii.uib.no>");
MODULE_ALIAS("tnepres");
+MODULE_ALIAS("serpent");