mirror of
https://github.com/sheumann/65816-crypto.git
synced 2024-09-11 23:54:40 +00:00
13 lines
355 B
C
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);
|