47 const void *ictr, uint8_t ctr_len,
const void *mdata_in,
48 void *mdata_out, uint16_t mdata_len,
struct process *process)
51 uint32_t iv[AES_IV_LEN /
sizeof(uint32_t)];
60 nonce_len = AES_IV_LEN - ctr_len;
62 rom_util_memcpy(&((uint8_t *)iv)[0], nonce, nonce_len);
64 rom_util_memcpy(&((uint8_t *)iv)[nonce_len], ictr, ctr_len);
67 mdata_in, mdata_out, mdata_len, process);
Header file for the cc2538 AES-CTR driver.
uint8_t aes_auth_crypt_get_result(void *iv, void *tag)
Gets the result of the AES authentication/crypto operation.
#define AES_AES_CTRL_DIRECTION_ENCRYPT
Encrypt.
#define AES_AES_CTRL_CTR_WIDTH_S
CTR counter width shift.
uint8_t aes_auth_crypt_start(uint32_t ctrl, uint8_t key_area, const void *iv, const void *adata, uint16_t adata_len, const void *data_in, void *data_out, uint16_t data_len, struct process *process)
Starts an AES authentication/crypto operation.
uint8_t ctr_crypt_start(uint8_t encrypt, uint8_t key_area, const void *nonce, const void *ictr, uint8_t ctr_len, const void *mdata_in, void *mdata_out, uint16_t mdata_len, struct process *process)
Starts a CTR crypto operation.
uint8_t aes_auth_crypt_check_status(void)
Checks the status of the AES authentication/crypto operation.
Header file for the cc2538 ROM utility function library driver.
#define AES_AES_CTRL_CTR
AES-CTR mode.
int8_t ctr_crypt_check_status(void)
Checks the status of the CTR crypto operation.