mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-12 09:48:30 +00:00
28 lines
565 B
C
28 lines
565 B
C
/**
|
|
* Author......: Jens Steube <jens.steube@gmail.com>
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#ifndef AES_H
|
|
#define AES_H
|
|
|
|
/* AES context. */
|
|
typedef struct aes_context
|
|
{
|
|
u32 bits;
|
|
|
|
u32 rek[60];
|
|
u32 rdk[60];
|
|
|
|
} aes_context_t;
|
|
|
|
typedef aes_context_t aes_ctx;
|
|
|
|
#define AES_KEY aes_ctx
|
|
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);
|
|
|
|
#endif
|