LIBKECCAK_HMAC_COPY(3)
π NAME π
okay bestie, this page is from the LIBKECCAK manual, and the function is libkeccak_hmac_copy β it copies an HMAC-hashing state. slay.
π οΈ SYNOPSIS π οΈ
#include <libkeccak.h>
int libkeccak_hmac_copy(struct libkeccak_hmac_state *dest, const struct libkeccak_hmac_state *src);
Link with -lkeccak, obviously π
β¨ DESCRIPTION β¨
so the libkeccak_hmac_copy() function initialises *dest to be identical to *src. and when we say identical, we mean identical β this includes all members of the struct libkeccak_hmac_state structure, including the state of the sponge and the message chunk buffer. it's giving full clone energy, no cap π«Ά
π«Ά RETURN VALUES π«Ά
- on success,
libkeccak_hmac_copy()returns0. periodt β¨ - on error, it returns
-1, anderrnois set to describe the error. π
π ERRORS π
the libkeccak_hmac_copy() function may fail for any errors specified for the function malloc(3). that's the error list, bestie β keep it in mind π
π SEE ALSO π
π cute little sign-off: this is from the LIBKECCAK manual β source/version tag LIBKECCAK, and the footer doesn't show a date, so no made-up date from me π mwah π
π¦ 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