nrfxlib API 0.1.0
|
void ocrypto_chacha20_poly1305_init | ( | ocrypto_chacha20_poly1305_ctx * | ctx, |
const uint8_t * | n, | ||
size_t | n_len, | ||
const uint8_t | k[(32)] | ||
) |
#include <crypto/nrf_oberon/include/ocrypto_chacha20_poly1305.h>
ChaCha20-Poly1305 initialization.
The generator state ctx
is initialized by this function.
[out] | ctx | Generator state. |
n | Nonce. | |
n_len | Length of n . 0 <= n_len <= ocrypto_chacha20_poly1305_NONCE_BYTES_MAX . | |
k | Encryption key. |