Function nrfxlib_sys::ocrypto_aes_gcm_update_aad
source · pub unsafe extern "C" fn ocrypto_aes_gcm_update_aad(
ctx: *mut ocrypto_aes_gcm_ctx,
aa: *const u8,
aa_len: usize
)
Expand description
AES-GCM incremental aad input.
The generator state * ctx
- is updated to include a data chunk * aa
- .
This function can be called repeatedly until the whole data is processed.
ctx
- Generator state.aa
- Additional authenticated data.aa_len
- Length of *aa
- .
@remark Initialization of the context * ctx
- through
* ocrypto_aes_gcm_init
- is required before this function can be called.
@remark * ocrypto_aes_gcm_update_aad
- must be called before any call to
* ocrypto_aes_gcm_update_enc
- or * ocrypto_aes_gcm_update_dec
- .