nrfxlib API 2.8.99
|
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.
ctx | Generator state. | |
[out] | m | Decoded message. Same length as received ciphertext. |
c | Ciphertext chunk. | |
c_len | Length of c . |
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
.