Skip to main content

Crate lib_q_stark_shake256

Crate lib_q_stark_shake256 

Source
Expand description

SHAKE256 adapter for lib-Q STARK implementation.

This module provides an implementation of the CryptographicHasher trait from lib-q-stark-symmetric using SHAKE256 from lib-q-sha3.

§Security Considerations

§Constant-Time Guarantees

SHAKE256 operations are constant-time, preventing timing attacks. The underlying SHAKE256 implementation from lib-q-sha3 ensures that all hash operations execute in constant time regardless of input.

§Post-Quantum Security

SHAKE256 is NIST-approved for post-quantum security (FIPS 202). It provides 256 bits of security against both classical and quantum attacks.

§Usage

This adapter provides SHAKE256 for STARK proof generation and verification. All hash operations are suitable for use in zero-knowledge proof systems.

Structs§

Shake256Hash
SHAKE256 hash function adapter for STARK.