|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
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.
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 helpers 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 pc_shake128_absorb() then pull with pc_keccak_squeeze() as many times as needed.
Definition in file sha3.h.