pub enum AeadFailureKind {
InvalidKeyMaterial,
LengthOverflow,
ShortCiphertext,
InvalidOutputLength,
AuthenticationFailed,
BackendFailure,
}Expand description
Specific reason an AEAD encrypt or decrypt operation failed.
Variants§
InvalidKeyMaterial
The supplied key material was not valid for the cipher.
LengthOverflow
An input length exceeded the representable range.
ShortCiphertext
The ciphertext was shorter than the authentication tag.
InvalidOutputLength
The backend returned an output of unexpected length.
AuthenticationFailed
Tag verification failed (ciphertext or AAD tampered/wrong key).
BackendFailure
The backend reported an unspecified internal failure.
Trait Implementations§
Source§impl Clone for AeadFailureKind
impl Clone for AeadFailureKind
Source§fn clone(&self) -> AeadFailureKind
fn clone(&self) -> AeadFailureKind
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 AeadFailureKind
Source§impl Debug for AeadFailureKind
impl Debug for AeadFailureKind
Source§impl Display for AeadFailureKind
impl Display for AeadFailureKind
impl Eq for AeadFailureKind
Source§impl PartialEq for AeadFailureKind
impl PartialEq for AeadFailureKind
impl StructuralPartialEq for AeadFailureKind
Auto Trait Implementations§
impl Freeze for AeadFailureKind
impl RefUnwindSafe for AeadFailureKind
impl Send for AeadFailureKind
impl Sync for AeadFailureKind
impl Unpin for AeadFailureKind
impl UnsafeUnpin for AeadFailureKind
impl UnwindSafe for AeadFailureKind
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