pub unsafe extern "C" fn ocrypto_aes_ctr_update(
ctx: *mut ocrypto_aes_ctr_ctx,
ct: *mut u8,
pt: *const u8,
pt_len: usize,
)Expand description
AES-CTR incremental encryption/decryption.
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_ctr_init - is required before this function can be called.