diff options
author | Joachim Fritschi <jfritschi@freenet.de> | 2010-06-03 21:02:51 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-06-03 21:02:51 +1000 |
commit | a4dc0acba8785aef0539a237250af09a4d5fe65b (patch) | |
tree | c872d42e62b360b5fa35c0b6f196ad638ae27c1e /crypto/twofish_generic.c | |
parent | 7d839a6c275981338fba67ce1c0fc026f7c37d6b (diff) | |
download | linux-crypto-a4dc0acba8785aef0539a237250af09a4d5fe65b.tar.gz linux-crypto-a4dc0acba8785aef0539a237250af09a4d5fe65b.zip |
crypto: twofish: Rename twofish to twofish_generic and add an alias
This fixes the broken autoloading of the corresponding twofish assembler
ciphers on x86 and x86_64 if they are available. The module name of the
generic implementation was in conflict with the alias in the assembler
modules. The generic twofish c implementation is renamed to
twofish_generic according to the other algorithms with assembler
implementations and an module alias is added for 'twofish'. You can now
load 'twofish' giving you the best implementation by priority,
'twofish-generic' to get the c implementation or 'twofish-asm' to get
the assembler version of cipher.
Signed-off-by: Joachim Fritschi <jfritschi@freenet.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/twofish_generic.c (renamed from crypto/twofish.c) | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/twofish.c b/crypto/twofish_generic.c index dfcda231..1f07b843 100644 --- a/crypto/twofish.c +++ b/crypto/twofish_generic.c @@ -212,3 +212,4 @@ module_exit(twofish_mod_fini); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION ("Twofish Cipher Algorithm"); +MODULE_ALIAS("twofish"); |