LIBKECCAK_SPEC_CSHAKE(3) Library Functions Manual LIBKECCAK_SPEC_CSHAKE(3) NAME libkeccak_spec_cshake - Configure cSHAKE hashing parameters SYNOPSIS #include void libkeccak_spec_cshake(struct libkeccak_spec *spec, long int x, long int d); Link with -lkeccak. DESCRIPTION The libkeccak_spec_cshake() function sets *spec to specify the Keccak parameters used for cSHAKE hashing with the semicapacity specified, in bits, via the x parameter, and the output size specified, in bits, via the d parameter. RETURN VALUES The libkeccak_spec_cshake() function does not return any value. ERRORS The libkeccak_spec_cshake() function cannot fail. EXAMPLE This example configure a struct libkeccak_spec to specify the Keccak parameters used for cSHAKE256(, 512): struct libkeccak_spec spec; libkeccak_spec_cshake(&spec, 256, 512); SEE ALSO libkeccak_spec_sha3(3), libkeccak_spec_shake(3), libkeccak_spec_rawshake(3), libkeccak_spec_check(3), libkeccak_generalised_spec_initialise(3), libkeccak_state_initialise(3), libkeccak_hmac_initialise(3) LIBKECCAK LIBKECCAK_SPEC_CSHAKE(3)