Enum age::DecryptError
source · pub enum DecryptError {
DecryptionFailed,
ExcessiveWork {
required: u8,
target: u8,
},
InvalidHeader,
InvalidMac,
Io(Error),
KeyDecryptionFailed,
MissingPlugin {
binary_name: String,
},
NoMatchingKeys,
Plugin(Vec<PluginError>),
UnknownFormat,
}
Expand description
The various errors that can be returned during the decryption process.
Variants§
DecryptionFailed
The age file failed to decrypt.
ExcessiveWork
Fields
The age file used an excessive work factor for passphrase encryption.
InvalidHeader
The age header was invalid.
InvalidMac
The MAC in the age header was invalid.
Io(Error)
An I/O error occurred during decryption.
KeyDecryptionFailed
Failed to decrypt an encrypted key.
MissingPlugin
Available on crate feature
plugin
only.A required plugin could not be found.
NoMatchingKeys
None of the provided keys could be used to decrypt the age file.
Plugin(Vec<PluginError>)
Available on crate feature
plugin
only.Errors from a plugin.
UnknownFormat
An unknown age format, probably from a newer version.
Trait Implementations§
source§impl Clone for DecryptError
impl Clone for DecryptError
source§impl Debug for DecryptError
impl Debug for DecryptError
source§impl Display for DecryptError
impl Display for DecryptError
source§impl Error for DecryptError
impl Error for DecryptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for DecryptError
impl From<Error> for DecryptError
source§impl From<Error> for DecryptError
impl From<Error> for DecryptError
source§impl From<Error> for DecryptError
Available on crate feature ssh
only.
impl From<Error> for DecryptError
Available on crate feature
ssh
only.Auto Trait Implementations§
impl !RefUnwindSafe for DecryptError
impl Send for DecryptError
impl Sync for DecryptError
impl Unpin for DecryptError
impl !UnwindSafe for DecryptError
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