pub enum KemStage {
Generate,
Encapsulate,
Decapsulate,
Mismatch,
}Expand description
Stage at which the hybrid KEM round-trip failed.
Variants§
Generate
HybridSecretKey::generate produced an unusable keypair (or panicked
— caught at the call site).
Encapsulate
HybridKeyPackage::encapsulate returned an error.
Decapsulate
HybridSecretKey::decapsulate returned an error.
Mismatch
Decapsulated shared-secret did not match the encapsulator’s.
Trait Implementations§
impl Copy for KemStage
impl Eq for KemStage
impl StructuralPartialEq for KemStage
Auto Trait Implementations§
impl Freeze for KemStage
impl RefUnwindSafe for KemStage
impl Send for KemStage
impl Sync for KemStage
impl Unpin for KemStage
impl UnsafeUnpin for KemStage
impl UnwindSafe for KemStage
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