libkeccak_spec_sha33
Configure sha-3 hashing parameters
Usage
#include <libkeccak.h> void libkeccak_spec_sha3(struct libkeccak_spec *spec, long int x);
Link with -lkeccak.
Overview
The libkeccak_spec_sha3() function sets *spec to specify the Keccak parameters used for SHA-3 hashing with the output size specified, in bits, via the x parameter.
Return values
The libkeccak_spec_sha3() function does not return any value.
Errors
The libkeccak_spec_sha3() function cannot fail.
Examples
This example configure a struct libkeccak_spec to specify the Keccak parameters used for SHA3-256:
struct libkeccak_spec spec; libkeccak_spec_sha3(&spec, 256);