summaryrefslogtreecommitdiff
path: root/crypto/twofish.c
diff options
context:
space:
mode:
authorJoachim Fritschi <jfritschi@freenet.de>2006-06-20 20:39:29 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-21 11:16:28 +1000
commit097f757bb3d8ec633fa247f17b428351d843ba34 (patch)
tree9d5039c3d33598d752609c3c45c809aa66e885e6 /crypto/twofish.c
parentdb60049b054f4518eeaa4a7e266a537fca602c99 (diff)
downloadlinux-crypto-097f757bb3d8ec633fa247f17b428351d843ba34.tar.gz
linux-crypto-097f757bb3d8ec633fa247f17b428351d843ba34.zip
[CRYPTO] twofish: Fix the priority
This patch adds a proper driver name and priority to the generic c implemtation to allow coexistance of c and assembler modules. Signed-off-by: Joachim Fritschi <jfritschi@freenet.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/twofish.c')
-rw-r--r--crypto/twofish.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/twofish.c b/crypto/twofish.c
index e3b3a0a6..4979a2be 100644
--- a/crypto/twofish.c
+++ b/crypto/twofish.c
@@ -181,6 +181,8 @@ static void twofish_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
static struct crypto_alg alg = {
.cra_name = "twofish",
+ .cra_driver_name = "twofish-generic",
+ .cra_priority = 100,
.cra_flags = CRYPTO_ALG_TYPE_CIPHER,
.cra_blocksize = TF_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct twofish_ctx),