60 #define CCM_FLAGS_LEN 1 61 #define CCM_NONCE_LEN_LEN (AES_IV_LEN - CCM_FLAGS_LEN) 62 #define CCM_MIC_MAX_LEN AES_TAG_LEN 89 const void *nonce,
const void *adata,
90 uint16_t adata_len,
const void *pdata,
91 uint16_t pdata_len,
void *cdata, uint8_t mic_len,
92 struct process *process);
98 #define ccm_auth_encrypt_check_status aes_auth_crypt_check_status 127 const void *nonce,
const void *adata,
128 uint16_t adata_len,
const void *cdata,
129 uint16_t cdata_len,
void *pdata, uint8_t mic_len,
130 struct process *process);
137 #define ccm_auth_decrypt_check_status aes_auth_crypt_check_status 150 void *mic, uint8_t mic_len);
uint8_t ccm_auth_encrypt_get_result(void *mic, uint8_t mic_len)
Gets the result of the CCM authentication and encryption operation.
uint8_t ccm_auth_decrypt_get_result(const void *cdata, uint16_t cdata_len, void *mic, uint8_t mic_len)
Gets the result of the CCM authentication checking and decryption operation.
uint8_t ccm_auth_decrypt_start(uint8_t len_len, uint8_t key_area, const void *nonce, const void *adata, uint16_t adata_len, const void *cdata, uint16_t cdata_len, void *pdata, uint8_t mic_len, struct process *process)
Starts a CCM authentication checking and decryption operation.
Header file for the cc2538 AES driver.
uint8_t ccm_auth_encrypt_start(uint8_t len_len, uint8_t key_area, const void *nonce, const void *adata, uint16_t adata_len, const void *pdata, uint16_t pdata_len, void *cdata, uint8_t mic_len, struct process *process)
Starts a CCM authentication and encryption operation.