Commit graph

7 commits

Author SHA1 Message Date
Toni Spets
6abf3c4adc Use the encoded form of megolm session key in backup session data
We're using the encoded presentation elsewhere as a string and this
inconsistency is a footgun.
2024-02-22 12:26:35 +02:00
Sumner Evans
fd986fc43a
crypto: add some license headers
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-16 09:36:35 -07:00
Sumner Evans
3aec0a3a6f
event/verification: improve documentation and other cleanup
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-09 10:30:36 -07:00
Toni Spets
1f2e75ee94 Import group session signing key from backup 2024-01-26 14:25:23 +02:00
Sumner Evans
6681e40deb
crypto/backup: add EncryptedSessionData struct and encrypt/decrypt methods
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-18 09:17:18 -07:00
Sumner Evans
e0d1c1de33
crypto/backup: add EphemeralKey struct with JSON (de)serialization
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-17 08:15:59 -07:00
Sumner Evans
d9c3b42564
crypto/backup: add structs for m.megolm_backup.v1.curve25519-aes-sha2 backup algorithm
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-17 08:15:58 -07:00