Enum simplecrypt::DecryptionError [−][src]
pub enum DecryptionError { IncompleteSalt(usize), IncompleteNonce(usize), IncompleteMac(usize), Decryption, }
Expand description
Represents an error that can occur during decryption.
Variants
IncompleteSalt(usize)
Used if the data slice is too short so it can’t contain a valid salt.
IncompleteNonce(usize)
Used if the data slice is too short so it can’t contain a valid nonce.
IncompleteMac(usize)
Used if the data slice is too short so it can’t contain a valid MAC.
Used if the data can’t decrypted either because the key or the data slice are invalid.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DecryptionError
impl Send for DecryptionError
impl Sync for DecryptionError
impl Unpin for DecryptionError
impl UnwindSafe for DecryptionError