Expand description
Keccak-f[1600] + SHA-3 / SHAKE runtime kernels — the symmetric/hash layer ML-KEM is built on
(SHA3-256/512 for hashing, SHAKE128 for matrix expansion, SHAKE256 for the PRF). Reached from
compiled LOGOS via the sha3_256 / sha3_512 / shake128 / shake256 stdlib functions.
Verified against the NIST FIPS-202 KATs (see the tests). Input/output are LOGOS Int bytes
(0..255) carried in a Seq of Int.
Functions§
- keccak_
f1600 - The Keccak-f[1600] permutation: 24 rounds of θ, ρ·π, χ, ι over the 5×5×64 state.
- sha3_
256 - SHA3-256 — the compiled form of LOGOS
sha3_256(a). 32 output bytes. - sha3_
512 - SHA3-512 — 64 output bytes.
- sha3_
256_ bytes - sha3_
512_ bytes - shake128
- SHAKE128 XOF —
outlenoutput bytes. - shake256
- SHAKE256 XOF —
outlenoutput bytes. - shake128_
bytes - shake256_
bytes