LIBKECCAK_HMAC_UNMARSHAL(3)

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

okay so you opened the libkeccak_hmac_unmarshal(3) page from the Library Functions Manual β€” and bestie, we're getting that HMAC state back into shape πŸ’…βœ¨

🌸 NAME 🌸

  • libkeccak_hmac_unmarshal β€” Unharshals an HMAC-hashing state 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libkeccak.h>

size_t libkeccak_hmac_unmarshal(struct libkeccak_hmac_state *state, const void *data);

Link with -lkeccak.

✨ DESCRIPTION ✨

The libkeccak_hmac_unmarshal() function unmarshals an HMAC-hashing state from the beginning of data, and stores it in *state. And yes, state may be NULL β€” that's allowed, no cap πŸ’–

πŸŽ€ RETURN VALUES πŸŽ€

On success, libkeccak_hmac_unmarshal() returns the number of bytes read from data upon successful completion. On error, -1 is returned and errno is set to describe the error 😭

If state is NULL, the function will always be successful and return a positive value; that value is the number of bytes that make up the marshalled state. Iconic, honestly πŸ‘‘

πŸ’€ ERRORS πŸ’€

The libkeccak_hmac_unmarshal() function may fail for any reason specified for the function malloc(3). So if malloc(3) is having a day, this can too πŸ™ˆ

🌈 SEE ALSO 🌈


mwah πŸ’‹ β€” signed off by LIBKECCAK, page LIBKECCAK_HMAC_UNMARSHAL(3), with absolutely zero extra date drama because the footer didn't bring one 🫢✨

πŸ“¦ where this page comes from