pub enum OlmDecryptionError {
InvalidMAC(MacError),
InvalidMACLength(usize, usize),
InvalidPadding(UnpadError),
MissingMessageKey(u64),
TooBigMessageGap(u64, u64),
}Available on crate feature
e2e-encryption only.Expand description
Error type for Olm-based decryption failuers.
Variants
InvalidMAC(MacError)
The message authentication code of the message was invalid.
InvalidMACLength(usize, usize)
The length of the message authentication code of the message did not match our expected length.
InvalidPadding(UnpadError)
The ciphertext of the message isn’t padded correctly.
MissingMessageKey(u64)
The session is missing the correct message key to decrypt the message, either because it was already used up, or because the Session has been ratcheted forwards and the message key has been discarded.
TooBigMessageGap(u64, u64)
Too many messages have been skipped to attempt decrypting this message.
Trait Implementations
impl Debug for DecryptionError
impl Debug for DecryptionError
impl Display for DecryptionError
impl Display for DecryptionError
impl Error for DecryptionError
impl Error for DecryptionError
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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl From<DecryptionError> for OlmError
impl From<DecryptionError> for OlmError
fn from(source: DecryptionError) -> OlmError
fn from(source: DecryptionError) -> OlmError
Converts to this type from the input type.
impl From<DecryptionError> for SessionCreationError
impl From<DecryptionError> for SessionCreationError
fn from(source: DecryptionError) -> SessionCreationError
fn from(source: DecryptionError) -> SessionCreationError
Converts to this type from the input type.
impl From<MacError> for DecryptionError
impl From<MacError> for DecryptionError
fn from(source: MacError) -> DecryptionError
fn from(source: MacError) -> DecryptionError
Converts to this type from the input type.
impl From<UnpadError> for DecryptionError
impl From<UnpadError> for DecryptionError
fn from(source: UnpadError) -> DecryptionError
fn from(source: UnpadError) -> DecryptionError
Converts to this type from the input type.
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