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

◆ ocrypto_cshake256()

void ocrypto_cshake256 ( uint8_t *  r,
size_t  r_len,
const uint8_t *  in,
size_t  in_len,
const uint8_t *  n,
size_t  n_len,
const uint8_t *  s,
size_t  s_len 
)

cSHAKE256 extendable-output function.

The cSHAKE256 hash of a given input message in is computed and put into r.

Remarks
n_len or s_len must be > 0. For empty n and s use shake256.
Parameters
[out]rGenerated hash.
r_lenLength of r.
inInput data.
in_lenLength of in.
nFunction name bit string.
n_lenLength of n.
sCustomization bit string.
s_lenLength of s.