| lt_ret_t lt_aesgcm_encrypt | ( | void * | ctx, |
| const uint8_t * | iv, | ||
| const uint32_t | iv_len, | ||
| const uint8_t * | add, | ||
| const uint32_t | add_len, | ||
| const uint8_t * | plaintext, | ||
| const uint32_t | plaintext_len, | ||
| uint8_t * | ciphertext, | ||
| const uint32_t | ciphertext_len | ||
| ) |
| ctx | AES-GCM context structure |
| iv | Initialization vector |
| iv_len | Length of the initialization vector |
| add | Additional data |
| add_len | Length of additional data |
| plaintext | Input plaintext buffer |
| plaintext_len | Length of the plaintext in bytes |
| ciphertext | Output ciphertext buffer (data + tag will be stored here) |
| ciphertext_len | Length of the ciphertext buffer |