libtropic
C library for TROPIC01 chip
lt_aesgcm.h File Reference

AESGCM function declarations. More...

Data Structures

struct  lt_crypto_aes_gcm_ctx_t
 

Functions

int lt_aesgcm_init_and_key (void *ctx, const uint8_t *key, uint32_t key_len)
 
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)
 
int lt_aesgcm_decrypt (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, const uint8_t *tag, uint32_t tag_len)
 
int lt_aesgcm_end (void *ctx)
 

Detailed Description

Author
Tropic Square s.r.o.
License
For the license see file LICENSE.txt file in the root directory of this source tree.

Data Structure Documentation

◆ lt_crypto_aes_gcm_ctx_t

struct lt_crypto_aes_gcm_ctx_t

AES-GCM context structure