matrix-rust-sdk/matrix_sdk_crypto
Damir Jelić 5d0ff961b2 crypto: Check the Olm message hash if we fail to decrypt an Olm message.
Wether by accident (the next_batch token doesn't get stored properly) or
by malicious intent (the server replays a message) an Olm encrypted to-device
message may appear multiple times.

This is usually fine since nothing bad happens, we don't decrypt the message
and the message gets thrown away.

Since the introduction of Olm session unwedging an undecryptable message
leads to the creation of a new fresh Olm session. To avoid this we
remember which Olm messages we already decrypted so they don't trigger
an unwedging dance.
2020-12-01 14:50:04 +01:00
..
src crypto: Check the Olm message hash if we fail to decrypt an Olm message. 2020-12-01 14:50:04 +01:00
Cargo.toml crypto: Use a released sqlx version. 2020-12-01 13:25:51 +01:00
README.md matrix-sdk: Add a bunch of readmes to the crates. 2020-05-26 19:33:13 +02:00

README.md

Build Status codecov License #matrix-rust-sdk

matrix-sdk-crypto

matrix-rust-sdk is an implementation of a Matrix client-server library in Rust.

NOTE: This is a E2EE implementation for Matrix, you are probably interested in the main rust-sdk crate.