Saltar al contenido
uencoder

Sponge Construction Referencia

Referencia para el sponge y duplex constructions usado en SHA-3, keyed hashing, y AEAD.

Sponge Mechanism

A sponge function absorbs input in r-bit blocks (the rate) into a b-bit state, then squeezes output in r-bit blocks. The state size b equals rate plus capacity (r + c = b). Absorption XORs each block into the state and applies the permutation. Squeezing repeatedly applies the permutation and outputs rate bits. The capacity c provides security: collision resistance is min(c/2, c) bits.

rate r
Block size for absorb/squeeze
input/output chunk
capacity c
Security parameter
c = 2 * security
state b
r + c, permutation width
1600 for Keccak

Duplex and Keyed Modes

The duplex construction generalizes the sponge to allow interleaved input and output, enabling authenticated encryption and streaming. Keyed sponge modes use the key as the initial absorption, providing PRF and MAC functionality. The full-state keyed sponge (Fsponge) absorbs using the full state for higher throughput. These constructions underlie many lightweight AEAD and KMAC designs.

duplex
Interleaved I/O
AEAD, streaming
keyed sponge
Key as initial absorb
KMAC, PRF
full-state
Absorb full width
higher throughput

Herramientas relacionadas

参考链接