Expand description
Side-channel timing test framework.
Provides utilities for measuring operation durations and detecting timing-based information leakage. Used to verify constant-time guarantees of cryptographic operations.
Structs§
- Timing
Sample - A single timing measurement.
- Timing
Stats - Statistics over a set of timing samples.
Functions§
- is_
constant_ time - Check if two groups have consistent timing (ratio < threshold).
- measure
- Collect timing samples for an operation.
- measure_
n - Collect N timing samples for an operation.
- stats
- Compute statistics over timing samples.
- timing_
ratio - Compare timing distributions between two groups. Returns the ratio of max/min mean. A ratio near 1.0 suggests constant-time; a large ratio suggests timing leakage.