Enum matrix_sdk_crypto::MegolmError
source · pub enum MegolmError {
EventError(EventError),
JsonError(Error),
MissingRoomKey(Option<WithheldCode>),
MismatchedIdentityKeys {
key_ed25519: Box<Ed25519PublicKey>,
device_ed25519: Option<Box<Ed25519PublicKey>>,
key_curve25519: Box<Curve25519PublicKey>,
device_curve25519: Option<Box<Curve25519PublicKey>>,
},
Decode(DecodeError),
Decryption(DecryptionError),
Store(CryptoStoreError),
}
Expand description
Error representing a failure during a group encryption operation.
Variants§
EventError(EventError)
The event that should have been decrypted is malformed.
JsonError(Error)
The received decrypted event couldn’t be deserialized.
MissingRoomKey(Option<WithheldCode>)
Decryption failed because we’re missing the room key that was used to encrypt the event.
MismatchedIdentityKeys
Fields
key_ed25519: Box<Ed25519PublicKey>
The Ed25519 key recorded in the room key’s to-device message.
device_ed25519: Option<Box<Ed25519PublicKey>>
The Ed25519 identity key of the device sending the room key.
key_curve25519: Box<Curve25519PublicKey>
The Curve25519 key recorded in the room key’s to-device message.
device_curve25519: Option<Box<Curve25519PublicKey>>
The Curve25519 identity key of the device sending the room key.
Decryption failed because of a mismatch between the identity keys of the device we received the room key from and the identity keys recorded in the plaintext of the room key to-device message.
Decode(DecodeError)
The encrypted megolm message couldn’t be decoded.
Decryption(DecryptionError)
The event could not have been decrypted.
Store(CryptoStoreError)
The storage layer returned an error.