LIBKECCAK_HMAC_FREE(3)
π NAME π
okay bestie, welcome to the Library Functions Manual β this one is all about libkeccak_hmac_free, which destroys and deallocates an HMAC-hashing state with erasure. itβs giving cleanup main character energy for your HMAC-hashing state π
β¨
β¨ SYNOPSIS β¨
#include <libkeccak.h>
void libkeccak_hmac_free(struct libkeccak_hmac_state *state);
Link with -lkeccak.
π«Ά DESCRIPTION π«Ά
The libkeccak_hmac_free() function releases the allocations stored in *state, and it also releases the allocation of state. so yes, itβs cleaning up both the stuff inside and the state allocation itself π§Ήπ
And bestie, it does something very important: libkeccak_hmac_free() securely erases sensitive data. no cap, that part is iconic π₯
π RETURN VALUES π
The libkeccak_hmac_free() function does not return any value. itβs a void function, periodt π«Ά
π ERRORS π
The libkeccak_hmac_free() function cannot fail. slay for reliability, honestly β¨
π¨ NOTES π¨
bestie, do not double-call this. A double call to libkeccak_hmac_free() will either result in a double free, which is must likely to crash the process, or free an allocation (that was created between the calls) that was not intended to be freed, resulting in undefined behaviour. that is undefined behaviour chaos, not a vibe ππ
π SEE ALSO π
libkeccak_hmac_destroy(3)libkeccak_hmac_fast_free(3)libkeccak_hmac_create(3)libkeccak_hmac_initialise(3)libkeccak_hmac_reset(3)libkeccak_hmac_wipe(3)
π later bestie π β this was from the LIBKECCAK manual, page LIBKECCAK_HMAC_FREE(3). the footer didnβt show a date, so no fake date energy here π«Άβ¨
π¦ 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