Scroll to navigation

LIBKECCAK_STATE_UNMARSHAL(3) Library Functions Manual LIBKECCAK_STATE_UNMARSHAL(3)

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

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).

SEE ALSO

libkeccak_state_marshal(3)

LIBKECCAK