LIBKECCAK_HMAC_FREE(3)

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

πŸ’– 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 🌈


πŸ’– 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