nrfxlib API 2.8.99
|
void ocrypto_chacha20_poly1305_update_enc | ( | ocrypto_chacha20_poly1305_ctx * | ctx, |
uint8_t * | c, | ||
const uint8_t * | m, | ||
size_t | m_len ) |
#include <crypto/nrf_oberon/include/ocrypto_chacha20_poly1305.h>
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. | |
[out] | c | Generated ciphertext. Same length as input message. |
m | Message chunk. | |
m_len | Length of m . |
ctx
through ocrypto_chacha20_poly1305_init
is required before this function can be called.ocrypto_chacha20_poly1305_update_enc
must be called after any call to ocrypto_chacha20_poly1305_update_aad
.c
may be same as m
.