nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ ocrypto_cshake128_final()

void ocrypto_cshake128_final ( ocrypto_cshake_ctx * ctx,
uint8_t * r,
size_t r_len )

cSHAKE128 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 hash value.
r_lenLength of r. May be 0.
Remarks
Initialization of the generator state ctx through ocrypto_cshake128_init is required before this function can be called.
After return, the generator state ctx must no longer be used with ocrypto_cshake128_update and ocrypto_cshake128_final but can still be used with ocrypto_cshake128_ext to generate more output.