summaryrefslogtreecommitdiffstats
path: root/include/crypto/cast6.h
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2012-11-13 10:43:14 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2012-12-06 10:16:26 +0100
commit044ab5257806310a0150146df3b74b8adaa4ebcf (patch)
tree0396b6068d9547c28841c1808c48adf97e474e60 /include/crypto/cast6.h
parentpadata: use __this_cpu_read per-cpu helper (diff)
downloadlinux-044ab5257806310a0150146df3b74b8adaa4ebcf.tar.xz
linux-044ab5257806310a0150146df3b74b8adaa4ebcf.zip
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 'include/crypto/cast6.h')
-rw-r--r--include/crypto/cast6.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/crypto/cast6.h b/include/crypto/cast6.h
index 157af6f342c8..32b60eb8bd24 100644
--- a/include/crypto/cast6.h
+++ b/include/crypto/cast6.h
@@ -3,6 +3,7 @@
#include <linux/types.h>
#include <linux/crypto.h>
+#include <crypto/cast_common.h>
#define CAST6_BLOCK_SIZE 16
#define CAST6_MIN_KEY_SIZE 16
@@ -20,9 +21,4 @@ int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
void __cast6_encrypt(struct cast6_ctx *ctx, u8 *dst, const u8 *src);
void __cast6_decrypt(struct cast6_ctx *ctx, u8 *dst, const u8 *src);
-extern const u32 cast6_s1[256];
-extern const u32 cast6_s2[256];
-extern const u32 cast6_s3[256];
-extern const u32 cast6_s4[256];
-
#endif