aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorSebastian Siewior <sebastian@breakpoint.cc>2007-10-17 11:18:57 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:04 -0500
commit89e12654312dddbbdbf17b5adc95b22cb672f947 (patch)
treeb6c90424ece4dae2178c3b3843e37ebf41c8286b /crypto
parentf1901f1fc710ec0fc482a7c98ee4552874139f39 (diff)
[CRYPTO] aes: Move common defines into a header file
This three defines are used in all AES related hardware. Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/aes_generic.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/crypto/aes_generic.c b/crypto/aes_generic.c
index 9401dca85e87..6683260475f9 100644
--- a/crypto/aes_generic.c
+++ b/crypto/aes_generic.c
@@ -52,6 +52,7 @@
52 s/RIJNDAEL(d_key)/D_KEY/g 52 s/RIJNDAEL(d_key)/D_KEY/g
53*/ 53*/
54 54
55#include <crypto/aes.h>
55#include <linux/module.h> 56#include <linux/module.h>
56#include <linux/init.h> 57#include <linux/init.h>
57#include <linux/types.h> 58#include <linux/types.h>
@@ -59,11 +60,6 @@
59#include <linux/crypto.h> 60#include <linux/crypto.h>
60#include <asm/byteorder.h> 61#include <asm/byteorder.h>
61 62
62#define AES_MIN_KEY_SIZE 16
63#define AES_MAX_KEY_SIZE 32
64
65#define AES_BLOCK_SIZE 16
66
67/* 63/*
68 * #define byte(x, nr) ((unsigned char)((x) >> (nr*8))) 64 * #define byte(x, nr) ((unsigned char)((x) >> (nr*8)))
69 */ 65 */