LIBKECCAK_HMAC_DUPLICATE(3)

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

✨ 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