pub unsafe extern "C" fn ocrypto_chacha20_poly1305_update_aad(
ctx: *mut ocrypto_chacha20_poly1305_ctx,
a: *const u8,
a_len: usize
)
Expand description
ChaCha20-Poly1305 incremental aad input.
The generator state * ctx
- is updated to include an additional authenticated data chunk * a
- .
This function can be called repeatedly until the whole data is processed.
ctx
- Generator state.a
- Additional authenticated data.a_len
- Length of *a
- .
@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_aad
- must be called before any call to
* ocrypto_chacha20_poly1305_update_enc
- or * ocrypto_chacha20_poly1305_update_dec
- .