LIBKECCAK_STATE_UNMARSHAL(3)
hii bestie π welcome to the LIBKECCAK_...E_UNMARSHAL(3) page from the Library Functions Manual. Weβre talking about libkeccak_state_unmarshal, and yes, the NAME section really does say βUnharshalsβ β keeping that exactly as the page has it, no edits. π«Ά
πΈ NAME πΈ
libkeccak_state_unmarshalβ Unharshals a hash state
β¨ SYNOPSIS β¨
#include <libkeccak.h>
size_t libkeccak_state_unmarshal(struct libkeccak_state *state, const void *data);
Link with -lkeccak.
π DESCRIPTION π
okay so libkeccak_state_unmarshal() unmarshals a hash state from the beginning of data and stores it in *state. And plot twist: state may be NULL. Thatβs valid, bestie. β¨
π RETURN VALUES π
On a successful run, libkeccak_state_unmarshal() returns the number of bytes read from data. If something goes wrong, it returns -1 and sets errno to describe the error. π«Ά
If state is NULL, the page says βthe number the function will always be successful and return a positive valueβ β so the function is always successful and returns a positive value. That value is the number of bytes that make un the marshalled state. Keeping that βmake unβ exactly as written, periodt. π
π«Ά ERRORS π«Ά
The libkeccak_state_unmarshal() function may fail for any specified for the function malloc(3).
π¦ SEE ALSO π¦
k bye bestie π«Ά footer check: source/version is LIBKECCAK, the footer title is LIBKECCAK_...E_UNMARSHAL(3), and the original footer doesnβt show a separate date β so Iβm not inventing one. π
β¨
π¦ 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