Linux repositories inspector

libkeccak_spec_rawshake(3)

LIBKECCAK

libkeccak-devel

Development files for libkeccak

NAME

libkeccak_spec_rawshake - Configure RawSHAKE hashing parameters

SYNOPSIS

#include <libkeccak.h>

void libkeccak_spec_rawshake(struct libkeccak_spec *spec, long int x, long int d);
Link with -lkeccak.

DESCRIPTION

The libkeccak_spec_rawshake() function sets *spec to specify the Keccak parameters used for RawSHAKE 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_rawshake() function does not return any value.

ERRORS

The libkeccak_spec_rawshake() function cannot fail.

EXAMPLE

This example configure a struct libkeccak_spec to specify the Keccak parameters used for RawSHAKE256(, 512):
struct libkeccak_spec spec;
libkeccak_spec_rawshake(&spec, 256, 512);
⇧ Top