pub enum KeywrapError {
TooBig,
TooSmall,
Unpadded,
NotAligned,
InvalidExpectedLen,
AuthenticationFailed,
}Variants§
TooBig
Input is too big.
TooSmall
Input is too small.
Unpadded
Ciphertext has invalid padding.
NotAligned
Input length is not a multiple of 8 bytes (required for AES-KW).
InvalidExpectedLen
The ciphertext is not valid for the expected length.
AuthenticationFailed
The ciphertext couldn’t be authenticated.
Trait Implementations§
Source§impl Debug for KeywrapError
impl Debug for KeywrapError
Source§impl Display for KeywrapError
impl Display for KeywrapError
Source§impl Error for KeywrapError
impl Error for KeywrapError
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for KeywrapError
impl PartialEq for KeywrapError
impl Eq for KeywrapError
impl StructuralPartialEq for KeywrapError
Auto Trait Implementations§
impl Freeze for KeywrapError
impl RefUnwindSafe for KeywrapError
impl Send for KeywrapError
impl Sync for KeywrapError
impl Unpin for KeywrapError
impl UnwindSafe for KeywrapError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more