LIBKECCAK_SPEC_CSHAKE(3)

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

πŸ’– libkeccak_spec_cshake(3) β€” Configure cSHAKE hashing parameters πŸ’–

okay bestie, this page lives in the LIBKECCAK manual, and it is literally all about setting up cSHAKE hashing parameters. no cap, it’s giving β€œsmall function, very important job.” πŸ’…


🌸 NAME 🌸

libkeccak_spec_cshake β€” Configure cSHAKE hashing parameters

✨ SYNOPSIS ✨

#include <libkeccak.h>

void libkeccak_spec_cshake(struct libkeccak_spec *spec, long int x, long int d);

Link with -lkeccak.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so libkeccak_spec_cshake() 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.

that’s the whole assignment, bestie. it configures the params and minds its own business. iconic. ✨

πŸŽ€ RETURN VALUES πŸŽ€

libkeccak_spec_cshake() does not return any value.

not a single little value. void behavior fr fr. 🫢

⚠️ ERRORS ⚠️

libkeccak_spec_cshake() cannot fail.

that’s right β€” no error era, no fail vibe, it literally cannot. πŸ’€

πŸ“ EXAMPLE πŸ“

This example configures 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 🌈


πŸ’– and that’s the page, bestie! source/version: LIBKECCAK; footer page: LIBKECCAK_SPEC_CSHAKE(3) β€” no date on this one, so we’re not inventing one. mwah! πŸ’–

πŸ“¦ where this page comes from