crypto: cast5/cast6 - move lookup tables to shared module
CAST5 and CAST6 both use same lookup tables, which can be moved shared module 'cast_common'. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:

committed by
Herbert Xu

parent
f0fcf2002b
commit
044ab52578
@@ -25,10 +25,10 @@
|
||||
|
||||
.file "cast5-avx-x86_64-asm_64.S"
|
||||
|
||||
.extern cast5_s1
|
||||
.extern cast5_s2
|
||||
.extern cast5_s3
|
||||
.extern cast5_s4
|
||||
.extern cast_s1
|
||||
.extern cast_s2
|
||||
.extern cast_s3
|
||||
.extern cast_s4
|
||||
|
||||
/* structure of crypto context */
|
||||
#define km 0
|
||||
@@ -36,10 +36,10 @@
|
||||
#define rr ((16*4)+16)
|
||||
|
||||
/* s-boxes */
|
||||
#define s1 cast5_s1
|
||||
#define s2 cast5_s2
|
||||
#define s3 cast5_s3
|
||||
#define s4 cast5_s4
|
||||
#define s1 cast_s1
|
||||
#define s2 cast_s2
|
||||
#define s3 cast_s3
|
||||
#define s4 cast_s4
|
||||
|
||||
/**********************************************************************
|
||||
16-way AVX cast5
|
||||
|
@@ -27,20 +27,20 @@
|
||||
|
||||
.file "cast6-avx-x86_64-asm_64.S"
|
||||
|
||||
.extern cast6_s1
|
||||
.extern cast6_s2
|
||||
.extern cast6_s3
|
||||
.extern cast6_s4
|
||||
.extern cast_s1
|
||||
.extern cast_s2
|
||||
.extern cast_s3
|
||||
.extern cast_s4
|
||||
|
||||
/* structure of crypto context */
|
||||
#define km 0
|
||||
#define kr (12*4*4)
|
||||
|
||||
/* s-boxes */
|
||||
#define s1 cast6_s1
|
||||
#define s2 cast6_s2
|
||||
#define s3 cast6_s3
|
||||
#define s4 cast6_s4
|
||||
#define s1 cast_s1
|
||||
#define s2 cast_s2
|
||||
#define s3 cast_s3
|
||||
#define s4 cast_s4
|
||||
|
||||
/**********************************************************************
|
||||
8-way AVX cast6
|
||||
|
Reference in New Issue
Block a user