libkeccak_state_unmarshal(3)

libkeccak_state_unmarshal3

Unharshals a hash state

Usage

#include <libkeccak.h>
size_t libkeccak_state_unmarshal(struct libkeccak_state *state, const void *data);

Link with -lkeccak.

Overview

The libkeccak_state_unmarshal() function unmarshals a hash state from the beginning of data. and stores it in *state. state may be NULL.

Return values

The libkeccak_state_unmarshal() returns the number of bytes reads from data upon successful completion. On error, -1 is returned and errno is set to describe the error. If state is NULL, the number the function will always be successful and return a positive value, this value is the number of bytes that make un the marshalled state.

Errors

The libkeccak_state_unmarshal() function may fail for any specified for the function malloc(3).

From libkeccak 1.4.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.