---
name: "libkeccak_squeeze"
section: "3"
platform: "linux"
package: "libkeccak"
version: "1.4.3-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libkeccak_squeeze"
---

# libkeccak\_squeeze(3)

Runs the squeeze phase

## NAME

libkeccak\_squeeze - Runs the squeeze phase

## SYNOPSIS

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

Link with *-lkeccak*.

## DESCRIPTION

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)](/libkeccak_digest/3.md) and [**libkeccak\_fast\_digest**(3)](/libkeccak_fast_digest/3.md) 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.

## SEE ALSO

[**libkeccak\_digest**(3)](/libkeccak_digest/3.md), [**libkeccak\_fast\_digest**(3)](/libkeccak_fast_digest/3.md), [**libkeccak\_zerocopy\_digest**(3)](/libkeccak_zerocopy_digest/3.md), [**libkeccak\_simple\_squeeze**(3)](/libkeccak_simple_squeeze/3.md), [**libkeccak\_fast\_squeeze**(3)](/libkeccak_fast_squeeze/3.md)
