nrfxlib API 0.1.0
|
void ocrypto_chacha20_update | ( | ocrypto_chacha20_ctx * | ctx, |
uint8_t * | c, | ||
const uint8_t * | m, | ||
size_t | m_len | ||
) |
#include <crypto/nrf_oberon/include/ocrypto_chacha20.h>
ChaCha20 encoder.
The message m
is ChaCha20 encrypted and the resulting cipher stream is writen to c
.
This function can be called repeatedly on arbitrarily small chunks of a larger message until the whole message has been processed.
ctx | Encoder state. | |
[out] | c | Generated ciphertext. Same length as input message. |
m | Input message. | |
m_len | Length of c and m ; m_len < 2^38 bytes. |
ctx
through ocrypto_chacha20_init
is required before this function can be called.