nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ ocrypto_ascon_aead128_init()

void ocrypto_ascon_aead128_init ( ocrypto_ascon_aead_ctx * ctx,
const uint8_t key[16],
const uint8_t nonce[16] )

#include <crypto/nrf_oberon/include/ocrypto_ascon_aead.h>

Ascon-AEAD128 initialization.

The context ctx is initialized using the given key key and nonce nonce.

Parameters
[out]ctxContext.
keyAscon-AEAD128 key. May be NULL.
nonceNonce. May be NULL.
Remarks
If key is NULL only nonce is set. If nonce is NULL only key is set. key must be set before nonce. Both key and nonce must be set before update is called.