pub enum TimingAnomaly {
Timeout {
actual: Duration,
limit: Duration,
},
Deviation {
deviation: f64,
threshold: f64,
},
HighVariation {
variation_percent: f64,
max_allowed: f64,
},
}Expand description
Detected timing anomaly in a cryptographic operation.
Represents different types of timing irregularities that may indicate security issues, performance problems, or environmental changes affecting cryptographic operation timing.
§Anomaly Types
- Timeout: Operation exceeded maximum allowed duration
- Deviation: Statistical deviation from expected timing baseline
- HighVariation: Excessive timing jitter/variation detected
§Security Implications
Timing anomalies can indicate:
- Side-channel vulnerabilities (timing leaks)
- Performance degradation affecting security margins
- Environmental changes (CPU frequency, memory pressure)
- Resource contention in shared environments
§Response Actions
Different anomaly types suggest different responses:
- Timeout: Immediate investigation (possible DoS or hanging operation)
- Deviation: Statistical monitoring (may indicate side-channel)
- HighVariation: System health check (environmental factors)
Variants§
Timeout
Operation exceeded the configured timeout duration.
The operation took longer than the maximum allowed time, which could indicate a performance issue, resource exhaustion, or security problem. This is the most serious anomaly type requiring immediate attention.
Fields
Deviation
Operation timing deviated significantly from statistical baseline.
The operation’s execution time differed from the expected duration by more than the configured threshold (measured in standard deviations). This could indicate timing-based side-channel vulnerabilities.
Fields
HighVariation
Operation exhibited excessive timing variation.
The operation’s timing showed higher variation than allowed, indicating inconsistent performance that could mask timing attacks or indicate system instability.
Trait Implementations§
Source§impl Clone for TimingAnomaly
impl Clone for TimingAnomaly
Source§fn clone(&self) -> TimingAnomaly
fn clone(&self) -> TimingAnomaly
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more