nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ ocrypto_chacha20_poly1305_update_enc()

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.

Parameters
ctxGenerator state.
[out]cGenerated ciphertext. Same length as input message.
mMessage chunk.
m_lenLength of m.
Remarks
Initialization of the generator state 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.