libtropic
C library for TROPIC01 chip
|
int lt_aesgcm_encrypt | ( | void * | ctx, |
const uint8_t * | iv, | ||
uint32_t | iv_len, | ||
const uint8_t * | aad, | ||
uint32_t | aad_len, | ||
uint8_t * | msg, | ||
uint32_t | msg_len, | ||
uint8_t * | tag, | ||
uint32_t | tag_len | ||
) |
This function decrypts data. It expect initialized context with valid keys.
ctx | AESGCM context structure |
iv | The initialisation vector |
iv_len | Length of initialization vector in bytes |
aad | The header buffer |
aad_len | Length of header buffer in bytes |
msg | Message buffer |
msg_len | Length of message in bytes |
tag | The tag buffer |
tag_len | Length of tag buffer in bytes |