2015-12-04 15:47:52 +01:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2015-12-04 15:47:52 +01:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 18:44:05 +02:00
|
|
|
#ifndef _CPU_AES_H
|
|
|
|
#define _CPU_AES_H
|
2016-09-05 21:47:26 +02:00
|
|
|
|
|
|
|
#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);
|
2016-09-06 11:49:26 +02:00
|
|
|
|
|
|
|
void AES128_decrypt_cbc (const u32 key[4], const u32 iv[4], const u32 in[16], u32 out[16]);
|
2016-09-06 18:44:05 +02:00
|
|
|
|
|
|
|
#endif // _CPU_AES_H
|