2017-06-27 19:42:53 -05:00
|
|
|
struct aes_context {
|
2017-06-26 20:41:44 -05:00
|
|
|
unsigned char data[16];
|
2017-06-27 01:36:56 -05:00
|
|
|
unsigned char reserved1[17];
|
|
|
|
unsigned char key[32];
|
|
|
|
unsigned char reserved2[16*13];
|
2017-06-26 20:41:44 -05:00
|
|
|
};
|
|
|
|
|
2017-06-27 19:42:53 -05:00
|
|
|
/* context must be in bank 0, preferably page-aligned. */
|
|
|
|
void aes128_expandkey(struct aes_context *);
|
|
|
|
void aes128_expandkey(struct aes_context *);
|
|
|
|
void aes128_expandkey(struct aes_context *);
|
2017-06-27 01:36:56 -05:00
|
|
|
|
2017-06-27 19:42:53 -05:00
|
|
|
void aes_encrypt(struct aes_context *);
|
2017-06-27 18:17:00 -05:00
|
|
|
|
2017-06-27 19:42:53 -05:00
|
|
|
void aes128_decrypt(struct aes_context *);
|
|
|
|
void aes192_decrypt(struct aes_context *);
|
|
|
|
void aes256_decrypt(struct aes_context *);
|