Enum umbral_pre::DecryptionError
source · [−]pub enum DecryptionError {
CiphertextTooShort,
AuthenticationFailed,
}Expand description
Errors that can happend during symmetric decryption.
Variants
CiphertextTooShort
Ciphertext (which should be prepended by the nonce) is shorter than the nonce length.
AuthenticationFailed
The ciphertext and the attached authentication data are inconsistent. This can happen if:
- an incorrect key is used,
- the ciphertext is modified or cut short,
- an incorrect authentication data is provided on decryption.
Trait Implementations
sourceimpl Debug for DecryptionError
impl Debug for DecryptionError
sourceimpl Display for DecryptionError
impl Display for DecryptionError
sourceimpl PartialEq<DecryptionError> for DecryptionError
impl PartialEq<DecryptionError> for DecryptionError
sourcefn eq(&self, other: &DecryptionError) -> bool
fn eq(&self, other: &DecryptionError) -> bool
impl Eq for DecryptionError
impl StructuralEq for DecryptionError
impl StructuralPartialEq for DecryptionError
Auto Trait Implementations
impl RefUnwindSafe for DecryptionError
impl Send for DecryptionError
impl Sync for DecryptionError
impl Unpin for DecryptionError
impl UnwindSafe for DecryptionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more