pub unsafe extern "C" fn ocrypto_chacha20_poly1305_update_dec(
ctx: *mut ocrypto_chacha20_poly1305_ctx,
m: *mut u8,
c: *const u8,
c_len: usize
)
Expand description
ChaCha20-Poly1305 incremental decoder input.
The generator state * ctx
- is updated to include a ciphertext chunk * c
- .
This function can be called repeatedly on arbitrarily small chunks of the ciphertext until the whole ciphertext has been processed.
ctx
- Generator state.m
- Decoded message. Same length as received ciphertext.c
- Ciphertext chunk.c_len
- Length of *c
- .
@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_dec
- must be called after any call to
* ocrypto_chacha20_poly1305_update_aad
- .
@remark * m
- may be same as * c
- .