-
Notifications
You must be signed in to change notification settings - Fork 323
Closed
Labels
Description
Following the work on invisible crypto it is now possible to exclude devices not signed by their owner from participating in encrypted room:
- When encrypting via CollectStrategy/IdentityBased
- When decrypting via TrustRequirement
We also have an API to encrypt a message directly to a device (using olm):
matrix-rust-sdk/crates/matrix-sdk-crypto/src/identities/device.rs
Lines 407 to 412 in bdfe641
/// Encrypt the given content for this `Device`. | |
/// | |
/// # Arguments | |
/// | |
/// * `content` - The content of the event that should be encrypted. | |
pub(crate) async fn encrypt( |
This can lead to a strange situation when the exclude insecure devices
option is enabled and:
- Sharing a room key won't work for a given device
- Encrypting directly to this device would work
Maybe we would want to use some EncryptionSetting
/DecryptionSetting
for olm traffic?
Notice that we also don't look at the device trust status BlackListed
/Ignored
when encrypting in olm