libkeccak_squeeze(3)

libkeccak_squeeze3

Runs the squeeze phase

Usage

#include <libkeccak.h>
void libkeccak_squeeze(struct libkeccak_state *state, void *hashsum);

Link with -lkeccak.

Overview

The libkeccak_squeeze() function runs the Keccak squeeze phase, on the the hash process described by *state, on stores a new digest, in binary form, in hashsum.

hashsum has the same requirement as for the libkeccak_digest(3) and libkeccak_fast_digest(3) functions: it must have an allocation size of at least ((state->n + 7) / 8) bytes. However, it may not be NULL.

Return values

The libkeccak_squeeze() function does not return any value.

Errors

The libkeccak_squeeze() function cannot fail.

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