summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm/crypto/aes_glue.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm/crypto/aes_glue.h')
-rw-r--r--kernel/arch/arm/crypto/aes_glue.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/arch/arm/crypto/aes_glue.h b/kernel/arch/arm/crypto/aes_glue.h
new file mode 100644
index 000000000..cca3e51eb
--- /dev/null
+++ b/kernel/arch/arm/crypto/aes_glue.h
@@ -0,0 +1,19 @@
+
+#define AES_MAXNR 14
+
+struct AES_KEY {
+ unsigned int rd_key[4 * (AES_MAXNR + 1)];
+ int rounds;
+};
+
+struct AES_CTX {
+ struct AES_KEY enc_key;
+ struct AES_KEY dec_key;
+};
+
+asmlinkage void AES_encrypt(const u8 *in, u8 *out, struct AES_KEY *ctx);
+asmlinkage void AES_decrypt(const u8 *in, u8 *out, struct AES_KEY *ctx);
+asmlinkage int private_AES_set_decrypt_key(const unsigned char *userKey,
+ const int bits, struct AES_KEY *key);
+asmlinkage int private_AES_set_encrypt_key(const unsigned char *userKey,
+ const int bits, struct AES_KEY *key);