libtropic
C library for TROPIC01 chip

◆ lt_aesgcm_init_and_key()

int lt_aesgcm_init_and_key ( void *  ctx,
const uint8_t *  key,
uint32_t  key_len 
)

This function initializes AES GCM context with keys

Parameters
ctxAESGCM context structure
keyThe key value
key_lenLength of key in bytes
Returns
LT_OK if success, otherwise returns other error code.