pub enum KeyWrapFailureKind {
InvalidKekLength,
InvalidPlaintextLength,
InvalidWrappedLength,
LengthOverflow,
IntegrityCheckFailed,
BackendFailure,
}Expand description
Specific reason a key-wrap operation failed.
Variants§
InvalidKekLength
The key-encryption key did not have the required length.
InvalidPlaintextLength
Plaintext key material was too short for RFC 3394 AES-KW.
InvalidWrappedLength
Wrapped key material was too short or malformed for RFC 3394 AES-KW.
LengthOverflow
An input or output length exceeded the representable range.
IntegrityCheckFailed
The wrapped key integrity check failed.
BackendFailure
The backend reported an unspecified internal failure.
Trait Implementations§
Source§impl Clone for KeyWrapFailureKind
impl Clone for KeyWrapFailureKind
Source§fn clone(&self) -> KeyWrapFailureKind
fn clone(&self) -> KeyWrapFailureKind
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 KeyWrapFailureKind
Source§impl Debug for KeyWrapFailureKind
impl Debug for KeyWrapFailureKind
Source§impl Display for KeyWrapFailureKind
impl Display for KeyWrapFailureKind
impl Eq for KeyWrapFailureKind
Source§impl PartialEq for KeyWrapFailureKind
impl PartialEq for KeyWrapFailureKind
impl StructuralPartialEq for KeyWrapFailureKind
Auto Trait Implementations§
impl Freeze for KeyWrapFailureKind
impl RefUnwindSafe for KeyWrapFailureKind
impl Send for KeyWrapFailureKind
impl Sync for KeyWrapFailureKind
impl Unpin for KeyWrapFailureKind
impl UnsafeUnpin for KeyWrapFailureKind
impl UnwindSafe for KeyWrapFailureKind
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