libkeccak_hmac_unmarshal(3)

libkeccak_hmac_unmarshal3

Unharshals an hmac-hashing state

Usage

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

Link with -lkeccak.

Overview

The libkeccak_hmac_unmarshal() function unmarshals an HMAC-hashing state from the beginning of data. and stores it in *state. state may be NULL.

Return values

The libkeccak_hmac_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_hmac_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.