Crate openvm_keccak256_circuit

Source
Expand description

Stateful keccak256 hasher. Handles full keccak sponge (padding, absorb, keccak-f) on variable length inputs read from VM memory.

Re-exports§

pub use air::KeccakVmAir;

Modules§

air
columns
trace
utils

Structs§

Keccak256
Keccak256Rv32Config
KeccakInputBlock
KeccakRecord
KeccakVmChip

Enums§

Keccak256Executor
Keccak256Periphery
Keccak256Rv32ConfigExecutor
Keccak256Rv32ConfigPeriphery

Constants§

KECCAK_CAPACITY_BYTES
Number of capacity bytes.
KECCAK_CAPACITY_U16S
Number of 16-bit capacity limbs.
KECCAK_DIGEST_BYTES
Number of output digest bytes used during the squeezing phase.
KECCAK_DIGEST_U64S
Number of 64-bit digest limbs.
KECCAK_RATE_BYTES
Number of rate bytes.
KECCAK_RATE_U16S
Number of 16-bit rate limbs.
KECCAK_WIDTH_BYTES
Total number of sponge bytes: number of rate bytes + number of capacity bytes.
KECCAK_WIDTH_U16S
Total number of 16-bit limbs in the sponge.
NUM_ABSORB_ROUNDS
Number of absorb rounds, equal to rate in u64s.