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