65816-crypto/aes.h

18 lines
501 B
C
Raw Normal View History

2017-06-28 00:42:53 +00:00
struct aes_context {
unsigned char data[16];
unsigned char reserved1[17];
unsigned char key[32];
unsigned char reserved2[16*13];
};
2017-06-28 00:42:53 +00: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-28 00:42:53 +00:00
void aes_encrypt(struct aes_context *);
2017-06-28 00:42:53 +00:00
void aes128_decrypt(struct aes_context *);
void aes192_decrypt(struct aes_context *);
void aes256_decrypt(struct aes_context *);