65816-crypto/aes.h
2017-06-26 20:41:44 -05:00

13 lines
355 B
C

enum aes_keysize {aes_keysize_128=0, aes_keysize_192=64, aes_keysize_256=128};
struct aes_state {
unsigned char data[16];
unsigned char reserved[16];
unsigned char keysize;
unsigned char key[16*15];
};
/* state must be in bank 0, preferably page-aligned. */
void aes_expandkey128(struct aes_state *state);
void aes_encrypt(struct aes_state *state);