ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
sha3.h File Reference

Keccak-f[1600] sponge: SHA3-256, SHA3-512, SHAKE128, SHAKE256 (FIPS 202). More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

Keccak-f[1600] sponge: SHA3-256, SHA3-512, SHAKE128, SHAKE256 (FIPS 202).

The symmetric primitives ML-KEM (FIPS 203) is built on: G = SHA3-512, H = SHA3-256, the matrix XOF = SHAKE128, and the noise PRF = SHAKE256. Zero-heap, endian-independent (the sponge state is addressed as a little-endian byte string regardless of host byte order), no external dependency.

One-shot entries cover fixed-length digests and arbitrary SHAKE output. For an incremental XOF (ML-KEM samples the public matrix by squeezing three bytes at a time) absorb once with Sha3Ns::shake128_absorb then pull with Sha3Ns::squeeze as many times as needed.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file sha3.h.