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 /include/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 'include/crypto')
-rw-r--r-- | include/crypto/aes.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/crypto/aes.h b/include/crypto/aes.h new file mode 100644 index 000000000000..9ff842fc6b89 --- /dev/null +++ b/include/crypto/aes.h | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * Common values for AES algorithms | ||
3 | */ | ||
4 | |||
5 | #ifndef _CRYPTO_AES_H | ||
6 | #define _CRYPTO_AES_H | ||
7 | |||
8 | #define AES_MIN_KEY_SIZE 16 | ||
9 | #define AES_MAX_KEY_SIZE 32 | ||
10 | #define AES_KEYSIZE_128 16 | ||
11 | #define AES_KEYSIZE_192 24 | ||
12 | #define AES_KEYSIZE_256 32 | ||
13 | #define AES_BLOCK_SIZE 16 | ||
14 | |||
15 | #endif | ||