libhasha 2.2.2
Loading...
Searching...
No Matches
ha_keccak_context Struct Reference

Keccak hash state context. More...

#include <keccak.h>

Public Attributes

uint8_t state [200]
 The Keccak state array.
size_t rate
 The rate (number of bits processed per round).
size_t capacity
 The capacity (remaining bits).
size_t absorb_index
 The current index for absorbing data.
size_t squeeze_index
 The current index for squeezing data.

Detailed Description

Keccak hash state context.

This structure holds the internal state of the Keccak hash function. It includes the state array, rate, capacity, and indices for absorbing and squeezing data.

Definition at line 86 of file keccak.h.

Member Data Documentation

◆ absorb_index

size_t ha_keccak_context::absorb_index

The current index for absorbing data.

This index keeps track of how much data has been absorbed in the current round.

Definition at line 118 of file keccak.h.

◆ capacity

size_t ha_keccak_context::capacity

The capacity (remaining bits).

This value holds the capacity of the Keccak function, which defines the number of bits used to absorb the input data.

Definition at line 110 of file keccak.h.

◆ rate

size_t ha_keccak_context::rate

The rate (number of bits processed per round).

This value indicates the rate of the Keccak hash function for the specific variant (e.g., 136 for Keccak-256).

Definition at line 102 of file keccak.h.

◆ squeeze_index

size_t ha_keccak_context::squeeze_index

The current index for squeezing data.

This index keeps track of how much data has been squeezed and output in the current round.

Definition at line 126 of file keccak.h.

◆ state

uint8_t ha_keccak_context::state[200]

The Keccak state array.

This array holds the internal state of the Keccak hash function (200 bytes).

Definition at line 94 of file keccak.h.


The documentation for this struct was generated from the following file: