matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
186 stars 94 forks source link

Olm/Megolm V2 #1557

Open richvdh opened 1 year ago

richvdh commented 1 year ago

We have some changes that we'd like to make to the Olm and Megolm protocols; starting a list here to keep track of them.

Megolm:

Olm:

richvdh commented 1 year ago

Another idea for the list (with credit to @bradtgmurray): use url-safe base64 encoding for megolm session ids to make them easier to use in requests like GET /_matrix/client/v3/room_keys/keys/{roomId}/{sessionId}.

uhoreg commented 7 months ago

Megolm:

Olm:

Both:

dkasak commented 3 months ago

Matrix crypto layer:

While these are not strictly Olm related in a lower level sense, it would make sense to include them as part of a switch to a hypothetical m.olm.v2.curve25519-aes-sha2 algorithm since that's going to be a breaking change anyway.

use AES-GCM instead of CBC?

We should also consider going further an abandoning AES in favour of (X)ChaCha20-Poly1305.