diff options
author | Sebastian Siewior <sebastian@breakpoint.cc> | 2007-10-17 11:18:57 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:04 -0500 |
commit | 89e12654312dddbbdbf17b5adc95b22cb672f947 (patch) | |
tree | b6c90424ece4dae2178c3b3843e37ebf41c8286b /arch/s390/crypto | |
parent | f1901f1fc710ec0fc482a7c98ee4552874139f39 (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 'arch/s390/crypto')
-rw-r--r-- | arch/s390/crypto/aes_s390.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/s390/crypto/aes_s390.c b/arch/s390/crypto/aes_s390.c index 512669691ad0..812511bbb540 100644 --- a/arch/s390/crypto/aes_s390.c +++ b/arch/s390/crypto/aes_s390.c | |||
@@ -16,17 +16,12 @@ | |||
16 | * | 16 | * |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <crypto/aes.h> | ||
19 | #include <crypto/algapi.h> | 20 | #include <crypto/algapi.h> |
20 | #include <linux/module.h> | 21 | #include <linux/module.h> |
21 | #include <linux/init.h> | 22 | #include <linux/init.h> |
22 | #include "crypt_s390.h" | 23 | #include "crypt_s390.h" |
23 | 24 | ||
24 | #define AES_MIN_KEY_SIZE 16 | ||
25 | #define AES_MAX_KEY_SIZE 32 | ||
26 | |||
27 | /* data block size for all key lengths */ | ||
28 | #define AES_BLOCK_SIZE 16 | ||
29 | |||
30 | #define AES_KEYLEN_128 1 | 25 | #define AES_KEYLEN_128 1 |
31 | #define AES_KEYLEN_192 2 | 26 | #define AES_KEYLEN_192 2 |
32 | #define AES_KEYLEN_256 4 | 27 | #define AES_KEYLEN_256 4 |