LIBKECCAK_SPEC_SHAKE(3)

πŸ“¦ version 1.4.3, in arch rolling, opensuse-leap 16.0

πŸ’– 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 πŸ‘‘

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