pub enum SelfTestError {
Aead {
algorithm: &'static str,
stage: AeadStage,
},
Hkdf,
HybridKem {
stage: KemStage,
},
HybridSign {
stage: SignStage,
},
NegativeVerify,
}Expand description
Top-level error surface. Each variant carries enough context for an operator to know which primitive misbehaved without pulling in long-form error types.
Variants§
Aead
AEAD round-trip failed. The algorithm name is &'static str
("AES-256-GCM" or "ChaCha20-Poly1305").
Hkdf
HKDF-SHA256 produced output that did not match the bundled KAT.
HybridKem
Hybrid KEM (X25519 + ML-KEM-768) round-trip failed.
HybridSign
Hybrid signature (Ed25519 + ML-DSA-65) round-trip failed.
NegativeVerify
Verification accepted a deliberately-tampered signature. Either AEAD authenticity is broken or the verifier’s reject path is dead.
Trait Implementations§
Source§impl Clone for SelfTestError
impl Clone for SelfTestError
Source§fn clone(&self) -> SelfTestError
fn clone(&self) -> SelfTestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelfTestError
Source§impl Debug for SelfTestError
impl Debug for SelfTestError
impl Eq for SelfTestError
Source§impl PartialEq for SelfTestError
impl PartialEq for SelfTestError
Source§fn eq(&self, other: &SelfTestError) -> bool
fn eq(&self, other: &SelfTestError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelfTestError
Auto Trait Implementations§
impl Freeze for SelfTestError
impl RefUnwindSafe for SelfTestError
impl Send for SelfTestError
impl Sync for SelfTestError
impl Unpin for SelfTestError
impl UnsafeUnpin for SelfTestError
impl UnwindSafe for SelfTestError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more