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

◆ ocrypto_chacha20_poly1305_update_dec()

void ocrypto_chacha20_poly1305_update_dec ( ocrypto_chacha20_poly1305_ctx *  ctx,
uint8_t *  m,
const uint8_t *  c,
size_t  c_len 
)

#include <crypto/nrf_oberon/include/ocrypto_chacha20_poly1305.h>

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.

Parameters
ctxGenerator state.
[out]mDecoded message. Same length as received ciphertext.
cCiphertext chunk.
c_lenLength of c.
Remarks
Initialization of the generator state ctx through ocrypto_chacha20_poly1305_init is required before this function can be called.
ocrypto_chacha20_poly1305_update_dec must be called after any call to ocrypto_chacha20_poly1305_update_aad.
m may be same as c.