| lt_ret_t lt_aesgcm_decrypt | ( | void * | ctx, |
| const uint8_t * | iv, | ||
| const uint32_t | iv_len, | ||
| const uint8_t * | add, | ||
| const uint32_t | add_len, | ||
| const uint8_t * | ciphertext, | ||
| const uint32_t | ciphertext_len, | ||
| uint8_t * | plaintext, | ||
| const uint32_t | plaintext_len | ||
| ) |
| ctx | AES-GCM context structure |
| iv | The initialisation vector |
| iv_len | Length of the initialization vector |
| add | Additional data |
| add_len | Length of additional data |
| ciphertext | Input ciphertext buffer (data + tag) |
| ciphertext_len | Length of the ciphertext buffer |
| plaintext | Buffer to store plaintext |
| plaintext_len | Length of the plaintext buffer |