diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-11-13 04:43:14 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-12-06 04:16:26 -0500 |
commit | 044ab5257806310a0150146df3b74b8adaa4ebcf (patch) | |
tree | 0396b6068d9547c28841c1808c48adf97e474e60 /arch/x86/crypto | |
parent | f0fcf2002bf122afe8fe1b74b2cee3710c7e6cd9 (diff) |
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>
Diffstat (limited to 'arch/x86/crypto')
-rw-r--r-- | arch/x86/crypto/cast5-avx-x86_64-asm_64.S | 16 | ||||
-rw-r--r-- | arch/x86/crypto/cast6-avx-x86_64-asm_64.S | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/arch/x86/crypto/cast5-avx-x86_64-asm_64.S b/arch/x86/crypto/cast5-avx-x86_64-asm_64.S index 12478e472368..15b00ac7cbd3 100644 --- a/arch/x86/crypto/cast5-avx-x86_64-asm_64.S +++ b/arch/x86/crypto/cast5-avx-x86_64-asm_64.S | |||
@@ -25,10 +25,10 @@ | |||
25 | 25 | ||
26 | .file "cast5-avx-x86_64-asm_64.S" | 26 | .file "cast5-avx-x86_64-asm_64.S" |
27 | 27 | ||
28 | .extern cast5_s1 | 28 | .extern cast_s1 |
29 | .extern cast5_s2 | 29 | .extern cast_s2 |
30 | .extern cast5_s3 | 30 | .extern cast_s3 |
31 | .extern cast5_s4 | 31 | .extern cast_s4 |
32 | 32 | ||
33 | /* structure of crypto context */ | 33 | /* structure of crypto context */ |
34 | #define km 0 | 34 | #define km 0 |
@@ -36,10 +36,10 @@ | |||
36 | #define rr ((16*4)+16) | 36 | #define rr ((16*4)+16) |
37 | 37 | ||
38 | /* s-boxes */ | 38 | /* s-boxes */ |
39 | #define s1 cast5_s1 | 39 | #define s1 cast_s1 |
40 | #define s2 cast5_s2 | 40 | #define s2 cast_s2 |
41 | #define s3 cast5_s3 | 41 | #define s3 cast_s3 |
42 | #define s4 cast5_s4 | 42 | #define s4 cast_s4 |
43 | 43 | ||
44 | /********************************************************************** | 44 | /********************************************************************** |
45 | 16-way AVX cast5 | 45 | 16-way AVX cast5 |
diff --git a/arch/x86/crypto/cast6-avx-x86_64-asm_64.S b/arch/x86/crypto/cast6-avx-x86_64-asm_64.S index 83a53818f0a5..2569d0da841f 100644 --- a/arch/x86/crypto/cast6-avx-x86_64-asm_64.S +++ b/arch/x86/crypto/cast6-avx-x86_64-asm_64.S | |||
@@ -27,20 +27,20 @@ | |||
27 | 27 | ||
28 | .file "cast6-avx-x86_64-asm_64.S" | 28 | .file "cast6-avx-x86_64-asm_64.S" |
29 | 29 | ||
30 | .extern cast6_s1 | 30 | .extern cast_s1 |
31 | .extern cast6_s2 | 31 | .extern cast_s2 |
32 | .extern cast6_s3 | 32 | .extern cast_s3 |
33 | .extern cast6_s4 | 33 | .extern cast_s4 |
34 | 34 | ||
35 | /* structure of crypto context */ | 35 | /* structure of crypto context */ |
36 | #define km 0 | 36 | #define km 0 |
37 | #define kr (12*4*4) | 37 | #define kr (12*4*4) |
38 | 38 | ||
39 | /* s-boxes */ | 39 | /* s-boxes */ |
40 | #define s1 cast6_s1 | 40 | #define s1 cast_s1 |
41 | #define s2 cast6_s2 | 41 | #define s2 cast_s2 |
42 | #define s3 cast6_s3 | 42 | #define s3 cast_s3 |
43 | #define s4 cast6_s4 | 43 | #define s4 cast_s4 |
44 | 44 | ||
45 | /********************************************************************** | 45 | /********************************************************************** |
46 | 8-way AVX cast6 | 46 | 8-way AVX cast6 |