pub enum DecError {
UnknownFormat,
UnsupportedAgeVersion,
UnsupportedAgeRecipient,
BadAgeFormat,
BadFileKey,
BadHeaderMac,
BadChunk,
BufferTooSmall {
expected: usize,
provided: usize,
},
BufferBadLength,
WorkFactorTooBig {
required: u8,
allowed: u8,
},
}Available on crate feature
age only.Expand description
Age decode/decrypt errors.
Variants§
UnknownFormat
Format is not age-encryption.org
UnsupportedAgeVersion
Version is not v1
UnsupportedAgeRecipient
Recipient is not scrypt
BadAgeFormat
Failed to parse parts of the header
BadFileKey
Failed to decrypt file key: incorrect password or corrupt header
BadHeaderMac
Header MAC is invalid: incorrect password or corrupt header
BadChunk
Failed to decrypt and verify payload chunk
BufferTooSmall
Output buffer too small
BufferBadLength
Input buffer incorrect (unexpected, too small) length
WorkFactorTooBig
Work factor during decryption exceeds maximum threshold value
Trait Implementations§
impl Copy for DecError
impl Eq for DecError
impl StructuralPartialEq for DecError
Auto Trait Implementations§
impl Freeze for DecError
impl RefUnwindSafe for DecError
impl Send for DecError
impl Sync for DecError
impl Unpin for DecError
impl UnwindSafe for DecError
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