Enum nucypher_core::DecryptionError
source · pub enum DecryptionError {
CiphertextTooShort,
AuthenticationFailed,
DeserializationFailed(DeserializationError),
}Expand description
Errors during 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.
DeserializationFailed(DeserializationError)
Unable to create object from decrypted ciphertext
Trait Implementations§
source§impl Debug for DecryptionError
impl Debug 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§
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