Ard Biesheuvel | 5ce26f3 | 2013-09-15 17:10:43 +0200 | [diff] [blame] | 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); |