diff options
author | Sebastian Siewior <sebastian@breakpoint.cc> | 2007-10-17 19:18:57 +0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-11 00:16:04 +0300 |
commit | 89e12654312dddbbdbf17b5adc95b22cb672f947 (patch) | |
tree | b6c90424ece4dae2178c3b3843e37ebf41c8286b /arch/x86/crypto/aes_32.c | |
parent | f1901f1fc710ec0fc482a7c98ee4552874139f39 (diff) | |
download | linux-89e12654312dddbbdbf17b5adc95b22cb672f947.tar.xz |
[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 'arch/x86/crypto/aes_32.c')
-rw-r--r-- | arch/x86/crypto/aes_32.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/crypto/aes_32.c b/arch/x86/crypto/aes_32.c index 49aad9397f10..9b0ab50394b0 100644 --- a/arch/x86/crypto/aes_32.c +++ b/arch/x86/crypto/aes_32.c @@ -38,6 +38,7 @@ */ #include <asm/byteorder.h> +#include <crypto/aes.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> @@ -48,9 +49,6 @@ asmlinkage void aes_enc_blk(struct crypto_tfm *tfm, u8 *dst, const u8 *src); asmlinkage void aes_dec_blk(struct crypto_tfm *tfm, u8 *dst, const u8 *src); -#define AES_MIN_KEY_SIZE 16 -#define AES_MAX_KEY_SIZE 32 -#define AES_BLOCK_SIZE 16 #define AES_KS_LENGTH 4 * AES_BLOCK_SIZE #define RC_LENGTH 29 |