1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-21 06:08:09 +00:00
hashcat/include/cpu-aes.h

28 lines
565 B
C
Raw Normal View History

2015-12-04 14:47:52 +00:00
/**
* Author......: Jens Steube <jens.steube@gmail.com>
* License.....: MIT
*/
#ifndef AES_H
#define AES_H
/* AES context. */
typedef struct aes_context
{
2016-01-15 16:16:43 +00:00
u32 bits;
2015-12-04 14:47:52 +00:00
2016-01-15 16:16:43 +00:00
u32 rek[60];
u32 rdk[60];
2015-12-04 14:47:52 +00:00
} aes_context_t;
typedef aes_context_t aes_ctx;
#define AES_KEY aes_ctx
2016-01-15 16:16:43 +00:00
void AES_set_encrypt_key (const u8 *key, int keysize, AES_KEY *aes_key);
void AES_set_decrypt_key (const u8 *key, int keysize, AES_KEY *aes_key);
void AES_encrypt (AES_KEY *aes_key, const u8 *input, u8 *output);
void AES_decrypt (AES_KEY *aes_key, const u8 *input, u8 *output);
2015-12-04 14:47:52 +00:00
#endif