twofish-asm: Merge common glue code
Subsystems (2)
PATCH 1/1 twofish-asm: Merge common glue code
There is almost no difference between 32 & 64 bit glue code.
Signed-off-by Sebastian Siewior <[email protected]>
---
Herbert, I wasn't able to compile / function test on 64bit but this patch looks somehow trivial :)
arch/x86/crypto/Makefile | 4 +-
arch/x86/crypto/twofish_64.c | 97 ----------------------
arch/x86/crypto/{twofish_32.c => twofish_glue.c} | 6 +-
3 files changed, 5 insertions(+), 102 deletions(-)
delete mode 100644 arch/x86/crypto/twofish_64.c
rename arch/x86/crypto/{twofish_32.c => twofish_glue.c} (96%)arch/x86/crypto/Makefile +2 -2
@@ -11,9 +11,9 @@ obj-$(CONFIG_CRYPTO_TWOFISH_X86_64) += twofish-x86_64.o obj-$(CONFIG_CRYPTO_SALSA20_X86_64) += salsa20-x86_64.o aes-i586-y := aes-i586-asm_32.o aes_glue.o -twofish-i586-y := twofish-i586-asm_32.o twofish_32.o +twofish-i586-y := twofish-i586-asm_32.o twofish_glue.o salsa20-i586-y := salsa20-i586-asm_32.o salsa20_glue.o aes-x86_64-y := aes-x86_64-asm_64.o aes_glue.o -twofish-x86_64-y := twofish-x86_64-asm_64.o twofish_64.o +twofish-x86_64-y := twofish-x86_64-asm_64.o twofish_glue.o salsa20-x86_64-y := salsa20-x86_64-asm_64.o salsa20_glue.o
arch/x86/crypto/twofish_64.c deleted +0 -97
97 lines not on this page · raw message
arch/x86/crypto/twofish_glue.c renamed from arch/x86/crypto/twofish_32.c +3 -3
@@ -1,5 +1,5 @@/* -* Glue Code for optimized 586 assembler version of TWOFISH +* Glue Code for assembler optimized version of TWOFISH * * Originally Twofish for GPG * By Matthew Skala <[email protected]>, July 26, 1998
@@ -44,7 +44,6 @@#include <linux/module.h> #include <linux/types.h> - asmlinkage void twofish_enc_blk(struct crypto_tfm *tfm, u8 *dst, const u8 *src); asmlinkage void twofish_dec_blk(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
@@ -60,7 +59,7 @@ static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)static struct crypto_alg alg = { .cra_name ="twofish" , - .cra_driver_name ="twofish-i586" , + .cra_driver_name ="twofish-asm" , .cra_priority =200 , .cra_flags =CRYPTO_ALG_TYPE_CIPHER , .cra_blocksize =TF_BLOCK_SIZE ,
@@ -95,3 +94,4 @@ module_exit(fini);MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Twofish Cipher Algorithm, i586 asm optimized" );MODULE_ALIAS ("twofish" ); +MODULE_ALIAS ("twofish-asm" );
Signature · 1 line
1.5.3.7
Quoted 3 lines · Sebastian Siewior
There is almost no difference between 32 & 64 bit glue code.
Signed-off-by Sebastian Siewior <[email protected]>
Applied to cryptodev-2.6. Thanks Sebastian.
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txtPATCH 1/1 twofish-asm: fix module description
Signed-off-by Sebastian Siewior <[email protected]>
---
Quoted 1 line · * Herbert Xu | 2008-01-13 11:35:14 [+1100]:
Applied to cryptodev-2.6. Thanks Sebastian.
could you please squash this one into :)
arch/x86/crypto/twofish_glue.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/crypto/twofish_glue.c +1 -1
@@ -92,6 +92,6 @@ module_init(init);module_exit (fini);MODULE_LICENSE ("GPL" ); -MODULE_DESCRIPTION ("Twofish Cipher Algorithm, i586 asm optimized" ); +MODULE_DESCRIPTION ("Twofish Cipher Algorithm, asm optimized" );MODULE_ALIAS ("twofish" );MODULE_ALIAS ("twofish-asm" );
Signature · 1 line
1.5.3.7
Herbert Xu
maintainerRe: [PATCH] [crypto] twofish-asm: fix module description
Quoted 6 lines · Sebastian Siewior
Signed-off-by Sebastian Siewior <[email protected]>---
Quoted 1 line · * Herbert Xu | 2008-01-13 11:35:14 [+1100]:
Applied to cryptodev-2.6. Thanks Sebastian.
could you please squash this one into :)
I've added this fix. Thanks!
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt