LIBKECCAK_SPEC_SHAKE(3)
π NAME π
okay so bestie, welcome to the LIBKECCAK_SPEC_SHAKE(3) page from the Library Functions Manual β it's the libkeccak function libkeccak_spec_shake, and its whole job is to configure SHAKE hashing parameters. Slay, honestly. π
β¨ SYNOPSIS β¨
#include <libkeccak.h>
void libkeccak_spec_shake(struct libkeccak_spec *spec, long int x, long int d);
Link with -lkeccak, bestie β that's the whole linking situation. π«Ά
πΈ DESCRIPTION πΈ
The libkeccak_spec_shake() function sets *spec to specify the Keccak parameters used for SHAKE hashing with the semicapacity specified, in bits, via the x parameter, and the output size specified, in bits, via the d parameter.
So like: x is carrying the semicapacity in bits, and d is carrying the output size in bits. It's giving "set the parameters and move on" energy. β¨
π RETURN VALUES π
The libkeccak_spec_shake() function does not return any value. It's a void function, so there's literally no return gift, no little receipt, nothing. π
π¦ ERRORS π¦
The libkeccak_spec_shake() function cannot fail. No error arc, no dramatic plot twist, just smooth sailing. Iconic. π
π₯ EXAMPLE π₯
This example configures a struct libkeccak_spec to specify the Keccak parameters used for SHAKE256(, 512):
struct libkeccak_spec spec;
libkeccak_spec_shake(&spec, 256, 512);
π SEE ALSO π
libkeccak_spec_cshake(3)libkeccak_spec_sha3(3)libkeccak_spec_rawshake(3)libkeccak_spec_check(3)libkeccak_generalised_spec_initialise(3)libkeccak_state_initialise(3)libkeccak_hmac_initialise(3)
Go read these next, iykyk. π
This page's footer source/version is LIBKECCAK with the page name LIBKECCAK_SPEC_SHAKE(3), and there is no date listed β mysterious, timestamp-less, lowkey iconic. ππ
π¦ where this page comes from
- arch rolling: libkeccak 1.4.3-1 Β· custom:ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms