AES-GCM block encryption/decryption.
int32_t aes_sync_gcm_crypt_and_tag( struct aes_sync_descriptor *const descr, const enum aes_action enc, const uint8_t * input, uint8_t * output, uint32_t length, const uint8_t * iv, uint32_t iv_len, const uint8_t * aad, uint32_t aad_len, uint8_t * tag, uint32_t tag_len )
Type: struct aes_sync_descriptor Struct *const
The AES descriptor
Type: const enum aes_action
AES_SYNC_ENCRYPT or AES_SYNC_DECRYPT
Type: const uint8_t *
Buffer holding the input data
Type: uint8_t *
Buffer holding the output data
Type: uint32_t
Byte length of the input data
Type: const uint8_t *
Initialization Vector
Type: uint32_t
Length of IV
Type: const uint8_t *
Additional data
Type: uint32_t
Length of additional data
Type: uint8_t *
Buffer holding the input data
Type: uint32_t
Length of tag
Type: int32_t
ERR_NONE if successful