Function nrfxlib_sys::ocrypto_aes_gcm_update_enc
source · pub unsafe extern "C" fn ocrypto_aes_gcm_update_enc(
ctx: *mut ocrypto_aes_gcm_ctx,
ct: *mut u8,
pt: *const u8,
pt_len: usize
)
Expand description
AES-GCM incremental encryption.
The plaintext * pt
- is encrypted to the ciphertext * ct
- using the context * ctx
- .
This function can be called repeatedly until the whole message is processed.
ctx
- Context.ct
- Ciphertext.pt
- Plaintext.pt_len
- Length of *pt
- and *ct
- .
@remark * ct
- may be same as * pt
- .
@remark Initialization of the context * ctx
- through
* ocrypto_aes_gcm_init
- is required before this function can be called.