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

◆ ocrypto_chacha20_poly1305_init()

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.

Parameters
[out]ctxGenerator state.
nNonce.
n_lenLength of n. 0 <= n_len <= ocrypto_chacha20_poly1305_NONCE_BYTES_MAX.
kEncryption key.