Documentation

CslibFrontier.Crypto.Primitives.Hash.Keccak.Circuit

Retained Boolean circuit for Keccak-p[1600, 24] #

This module constructs Keccak-p[1600, 24] directly over the De Morgan basis and compiles that fixed circuit with the retained native circuit evaluator. State bit 64 * (5 * y + x) + z is exactly FIPS 202's A[x, y, z]. The circuit reuses the executable theta, rho, pi, chi, iota, and round-constant semantics from CslibFrontier.Crypto.Primitives.Hash.Keccak; it does not introduce a second permutation or sponge specification.

keccakP1600Compiler retains its multitape machine and the evaluator's exact input, output, time, workspace, and complete generated transition-table staticBits coordinates. The general theorem NativeCompiler.staticBits_eq_descLen identifies that last coordinate with the first-order description length. No finite-function or truth-table compiler is used.

Main definitions #

Main results #

Flatten a Keccak-p[1600] lane array in FIPS 202 order: lane 5 * y + x, then its 64 least-significant-bit-first coordinates.

Reconstruct the Keccak-p[1600] lane array from its FIPS 202 flat bit order.

@[simp]

Flattening a reconstructed Keccak state returns every input bit.

@[simp]

Reconstructing a flattened Keccak state returns every lane.

The direct De Morgan circuit for the 24 FIPS 202 Keccak-p[1600] rounds.

The fixed direct circuit agrees on every 1600-bit input with the executable FIPS 202 Keccak-p[1600, 24] permutation.

Retained native multitape compiler for executable Keccak-p[1600, 24]. Its computes, time, workspace, inputBits, outputBits, and staticBits fields are the concrete certificate.