pub enum AeadStage {
Init,
Encrypt,
Decrypt,
Mismatch,
}Expand description
Stage at which a per-algorithm self-test failed. Lets the caller log “AES-GCM encrypt failed” vs “AES-GCM decrypt mismatch” instead of an opaque “self-test failed”.
Variants§
Init
CryptoSession::with_suite / from_shared_secret rejected the
fixed shared-secret input. Indicates a broken key schedule.
Encrypt
encrypt returned an error on a well-formed plaintext.
Decrypt
decrypt returned an error on a freshly-encrypted ciphertext.
Mismatch
Decrypt succeeded but produced the wrong plaintext.
Trait Implementations§
impl Copy for AeadStage
impl Eq for AeadStage
impl StructuralPartialEq for AeadStage
Auto Trait Implementations§
impl Freeze for AeadStage
impl RefUnwindSafe for AeadStage
impl Send for AeadStage
impl Sync for AeadStage
impl Unpin for AeadStage
impl UnsafeUnpin for AeadStage
impl UnwindSafe for AeadStage
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