LIBKECCAK_HMAC_DUPLICATE(3)
β¨ NAME β¨
LIBKECCAK_HMAC_DUPLICATE(3) β omg hiii bestie, this is the Library Functions Manual page for libkeccak_hmac_duplicate, and it does exactly one iconic thing: allocate a duplicate of an HMAC-hashing state. π
π¦ SYNOPSIS π¦
#include <libkeccak.h>
struct libkeccak_hmac_state *libkeccak_hmac_duplicate(const struct libkeccak_hmac_state *src);
Link with -lkeccak. π
πΈ DESCRIPTION πΈ
okay so libkeccak_hmac_duplicate() allocates a brand-new hash state and initialises it to be identical to *src. and bestie, βidenticalβ is not a vibe-only promise here: it includes all members of the struct libkeccak_hmac_state structure, including the state of the sponge and the message chunk buffer. full twin energy, no cap. π«Ά
π RETURN VALUES π
on successful completion, libkeccak_hmac_duplicate() returns a newly allocated libkeccak_hmac_t* (of one initialised element). on error, NULL is returned and errno is set to describe the error. that's the error signal, bestie. π
π ERRORS π
libkeccak_hmac_duplicate() may fail for any of the reasons specified for the function malloc(3). that's the whole error list, fr fr. π
π«Ά SEE ALSO π«Ά
mwah π source/version: LIBKECCAK β date: not shown in the footer, so no invented date, periodt. π
π¦ 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