diff options
Diffstat (limited to 'arch/arm/crypto/aes_glue.c')
-rw-r--r-- | arch/arm/crypto/aes_glue.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/arch/arm/crypto/aes_glue.c b/arch/arm/crypto/aes_glue.c index 59f7877ead6a..3003fa1f6fb4 100644 --- a/arch/arm/crypto/aes_glue.c +++ b/arch/arm/crypto/aes_glue.c | |||
@@ -6,22 +6,12 @@ | |||
6 | #include <linux/crypto.h> | 6 | #include <linux/crypto.h> |
7 | #include <crypto/aes.h> | 7 | #include <crypto/aes.h> |
8 | 8 | ||
9 | #define AES_MAXNR 14 | 9 | #include "aes_glue.h" |
10 | 10 | ||
11 | typedef struct { | 11 | EXPORT_SYMBOL(AES_encrypt); |
12 | unsigned int rd_key[4 *(AES_MAXNR + 1)]; | 12 | EXPORT_SYMBOL(AES_decrypt); |
13 | int rounds; | 13 | EXPORT_SYMBOL(private_AES_set_encrypt_key); |
14 | } AES_KEY; | 14 | EXPORT_SYMBOL(private_AES_set_decrypt_key); |
15 | |||
16 | struct AES_CTX { | ||
17 | AES_KEY enc_key; | ||
18 | AES_KEY dec_key; | ||
19 | }; | ||
20 | |||
21 | asmlinkage void AES_encrypt(const u8 *in, u8 *out, AES_KEY *ctx); | ||
22 | asmlinkage void AES_decrypt(const u8 *in, u8 *out, AES_KEY *ctx); | ||
23 | asmlinkage int private_AES_set_decrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key); | ||
24 | asmlinkage int private_AES_set_encrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key); | ||
25 | 15 | ||
26 | static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) | 16 | static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) |
27 | { | 17 | { |
@@ -81,7 +71,7 @@ static struct crypto_alg aes_alg = { | |||
81 | .cipher = { | 71 | .cipher = { |
82 | .cia_min_keysize = AES_MIN_KEY_SIZE, | 72 | .cia_min_keysize = AES_MIN_KEY_SIZE, |
83 | .cia_max_keysize = AES_MAX_KEY_SIZE, | 73 | .cia_max_keysize = AES_MAX_KEY_SIZE, |
84 | .cia_setkey = aes_set_key, | 74 | .cia_setkey = aes_set_key, |
85 | .cia_encrypt = aes_encrypt, | 75 | .cia_encrypt = aes_encrypt, |
86 | .cia_decrypt = aes_decrypt | 76 | .cia_decrypt = aes_decrypt |
87 | } | 77 | } |