12.1.2.18 aes_sync_gcm_start
AES-GCM block start.
int32_t aes_sync_gcm_start(
struct aes_sync_descriptor *const descr,
const enum aes_action enc,
const uint8_t * iv,
uint32_t iv_len,
const uint8_t * aad,
uint32_t aad_len
)
Parameters
- descr
-
Type: struct aes_sync_descriptor Struct *const
The AES descriptor
- enc
-
Type: const enum aes_action
AES_SYNC_ENCRYPT or AES_SYNC_DECRYPT
- iv
-
Type: const uint8_t *
Initialization Vector
- iv_len
-
Type: uint32_t
Length of the IV
- aad
-
Type: const uint8_t *
Additional data
- aad_len
-
Type: uint32_t
Length of additional data
Returns
Type: int32_t
ERR_NONE if successful