61#define TC_AES_BLOCK_SIZE (Nb*Nk)
62#define TC_AES_KEY_SIZE (Nb*Nk)
64typedef struct tc_aes_key_sched_struct {
65 unsigned int words[Nb*(Nr+1)];
94 const TCAesKeySched_t s);
124 const TCAesKeySched_t s);
int tc_aes_encrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s)
AES-128 Encryption procedure Encrypts contents of in buffer into out buffer under key; schedule s.
Definition aes_encrypt.c:158
int tc_aes128_set_decrypt_key(TCAesKeySched_t s, const uint8_t *k)
Set the AES-128 decryption key Uses key k to initialize s.
Definition aes_decrypt.c:62
int tc_aes_decrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s)
AES-128 Encryption procedure Decrypts in buffer into out buffer under key schedule s.
Definition aes_decrypt.c:129
int tc_aes128_set_encrypt_key(TCAesKeySched_t s, const uint8_t *k)
Set AES-128 encryption key Uses key k to initialize s.
Definition aes_encrypt.c:70