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

◆ ocrypto_kmac256_final()

void ocrypto_kmac256_final ( ocrypto_kmac_ctx *  ctx,
uint8_t *  r,
size_t  r_len 
)

KMAC256 output.

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

Parameters
ctxGenerator state.
[out]rGenerated mac value.
r_lenLength of r.
Remarks
Initialization of the generator state ctx through ocrypto_kmac256_init is required before this function can be called.
After return, the generator state ctx must no longer be used with ocrypto_kmac256_update and ocrypto_kmac256_final unless it is reinitialized using ocrypto_kmac256_init.