pub unsafe extern "C" fn ocrypto_chacha20_poly1305_update_enc(
ctx: *mut ocrypto_chacha20_poly1305_ctx,
c: *mut u8,
m: *const u8,
m_len: usize
)
Expand description
ChaCha20-Poly1305 incremental encoder input.
The generator state * ctx
- is updated to include a message chunk * m
- .
This function can be called repeatedly on arbitrarily small chunks of the message until the whole message has been processed.
ctx
- Generator state.c
- Generated ciphertext. Same length as input message.m
- Message chunk.m_len
- Length of *m
- .
@remark Initialization of the generator state * ctx
- through
* ocrypto_chacha20_poly1305_init
- is required before this function can be called.
@remark * ocrypto_chacha20_poly1305_update_enc
- must be called after any call to
* ocrypto_chacha20_poly1305_update_aad
- .
@remark * c
- may be same as * m
- .