mirror of
https://github.com/sheumann/65816-crypto.git
synced 2025-02-16 13:30:25 +00:00
18 lines
501 B
C
18 lines
501 B
C
struct aes_context {
|
|
unsigned char data[16];
|
|
unsigned char reserved1[17];
|
|
unsigned char key[32];
|
|
unsigned char reserved2[16*13];
|
|
};
|
|
|
|
/* 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 *);
|
|
|
|
void aes_encrypt(struct aes_context *);
|
|
|
|
void aes128_decrypt(struct aes_context *);
|
|
void aes192_decrypt(struct aes_context *);
|
|
void aes256_decrypt(struct aes_context *);
|