diff options
Diffstat (limited to 'arch/arm/crypto/aes_glue.h')
-rw-r--r-- | arch/arm/crypto/aes_glue.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/crypto/aes_glue.h b/arch/arm/crypto/aes_glue.h new file mode 100644 index 000000000000..cca3e51eb606 --- /dev/null +++ b/arch/arm/crypto/aes_glue.h | |||
@@ -0,0 +1,19 @@ | |||
1 | |||
2 | #define AES_MAXNR 14 | ||
3 | |||
4 | struct AES_KEY { | ||
5 | unsigned int rd_key[4 * (AES_MAXNR + 1)]; | ||
6 | int rounds; | ||
7 | }; | ||
8 | |||
9 | struct AES_CTX { | ||
10 | struct AES_KEY enc_key; | ||
11 | struct AES_KEY dec_key; | ||
12 | }; | ||
13 | |||
14 | asmlinkage void AES_encrypt(const u8 *in, u8 *out, struct AES_KEY *ctx); | ||
15 | asmlinkage void AES_decrypt(const u8 *in, u8 *out, struct AES_KEY *ctx); | ||
16 | asmlinkage int private_AES_set_decrypt_key(const unsigned char *userKey, | ||
17 | const int bits, struct AES_KEY *key); | ||
18 | asmlinkage int private_AES_set_encrypt_key(const unsigned char *userKey, | ||
19 | const int bits, struct AES_KEY *key); | ||