![]() |
nrfxlib API 3.3.99
|
| 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 (or IV). | |
| n_len | Length of n. n_len = 8, 12, or 24. | |
| k | Encryption key. |