Fix m 60 a 0 by making modified variable non-const
[hashcat.git] / include / cpu-aes.h
1 /**
2 * Author......: Jens Steube <jens.steube@gmail.com>
3 * License.....: MIT
4 */
5
6 #ifndef AES_H
7 #define AES_H
8
9 /* AES context. */
10 typedef struct aes_context
11 {
12 u32 bits;
13
14 u32 rek[60];
15 u32 rdk[60];
16
17 } aes_context_t;
18
19 typedef aes_context_t aes_ctx;
20
21 #define AES_KEY aes_ctx
22 void AES_set_encrypt_key (const u8 *key, int keysize, AES_KEY *aes_key);
23 void AES_set_decrypt_key (const u8 *key, int keysize, AES_KEY *aes_key);
24 void AES_encrypt (AES_KEY *aes_key, const u8 *input, u8 *output);
25 void AES_decrypt (AES_KEY *aes_key, const u8 *input, u8 *output);
26
27 #endif