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

◆ ocrypto_ascon_xof128_final()

void ocrypto_ascon_xof128_final ( ocrypto_ascon_hash_ctx * ctx,
uint8_t * h,
size_t h_len )

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

Ascon-XOF128 output.

The generator state ctx is updated to finalize the hash for the previously processed message chunks. The output is put into h.

Parameters
ctxGenerator state.
[out]hGenerated output.
h_lenLength of h. May be 0.
Remarks
Initialization of the generator state ctx through ocrypto_ascon_xof128_init is required before this function can be called.
After return, the generator state ctx must no longer be used with ocrypto_ascon_hash256_update and ocrypto_ascon_xof128_final but can still be used with ocrypto_ascon_xof128_ext to generate more output.