Commit graph

30 commits

Author SHA1 Message Date
Damir Jelić
25e60d398b crypto: Move the session mutex into the Session struct. 2020-04-14 14:05:18 +02:00
Damir Jelić
cb8f1c1a5b crypto: Zeroize the GroupSessionKey struct. 2020-04-10 17:02:51 +02:00
Damir Jelić
7577ddfc00 crypto: Remove one-time keys after a inbound session was created successfully. 2020-04-10 16:18:29 +02:00
Damir Jelić
a4d41378d4 crypto: Move the inbound group session lock into the session struct. 2020-04-10 16:08:47 +02:00
Damir Jelić
b8d6a4c49a crypto: Move the account mutex into the account struct. 2020-04-10 15:28:43 +02:00
Damir Jelić
7c20c79f32 crypto: Add test for the session creation. 2020-04-10 14:44:50 +02:00
Damir Jelić
af7309033c crypto: Rename the session creation method. 2020-04-10 14:44:25 +02:00
Damir Jelić
d04c7e0190 crypto: Add a GroupSessionKey type. 2020-04-10 14:00:03 +02:00
Damir Jelić
9d52037b40 crypto: Add docs to our olm-rs wrappers. 2020-04-10 13:47:38 +02:00
Damir Jelić
c215dfa55d crypto: Don't manually implement Send, those are now in olm-rs. 2020-04-10 11:59:51 +02:00
Damir Jelić
a5f43db859 crypto: Add some more methods to the group session wrapper. 2020-04-09 16:23:24 +02:00
Damir Jelić
b4de95185d device: Change to the higher level ruma types for device ids. 2020-04-09 16:22:25 +02:00
Damir Jelić
816295cd48 crytpo: Add a wrapper for outbound megolm sessions. 2020-04-08 15:05:57 +02:00
Devin R
eff322c0c5 crypto compiles, tests pass 2020-04-03 11:00:37 -04:00
Damir Jelić
12dc5212e3 rust-sdk: Remove a bunch of unused imports and unused variables. 2020-04-03 12:34:05 +02:00
Damir Jelić
ff9bcdddb9 crypto: Use a SignedKey type when creating outbound Olm sessions. 2020-04-03 10:16:20 +02:00
Damir Jelić
559a5847bb crypto: Implement group session loading for the sqlite store. 2020-03-31 16:22:45 +02:00
Damir Jelić
85f344c32e crypto: Add the ability to store group sessions to the sqlite store. 2020-03-27 17:01:21 +01:00
Damir Jelić
fca8062da0 crytpo: Implement session storing/loading for the sql store. 2020-03-27 09:24:15 +01:00
Damir Jelić
abe13d7a2d crypto: Make the session stores thread safe. 2020-03-26 11:22:40 +01:00
Damir Jelić
ae4d90057a crypto: Wrap inbound group sessions. 2020-03-25 11:32:40 +01:00
Damir Jelić
4215f98e91 crypto: Add initial code for olm message decryption. 2020-03-21 16:41:48 +01:00
Damir Jelić
3b1f863419 crypto: Check the shared state of the account when checking for equality. 2020-03-18 10:42:11 +01:00
Damir Jelić
00138f7ae5 crypto: Expose the pickling methods for the account. 2020-03-18 09:38:41 +01:00
Damir Jelić
2b389a8440 crypto: Mark the Account as Send. 2020-03-11 11:44:45 +01:00
Damir Jelić
f15b7cccea crypto: Require a borrow of the user id when creating a new Olm machine. 2020-03-11 10:05:37 +01:00
Damir Jelić
b171f64f1d crypto: Use the serde feature of olm-rs. 2020-02-26 09:18:53 +01:00
Damir Jelić
45890a27f3 crypto: Add support for device keys signing. 2020-02-25 17:36:11 +01:00
Damir Jelić
15d8de56e1 crypto: Add an initial version of the olm state machine. 2020-02-25 14:24:18 +01:00
Damir Jelić
d3903811c6 rust-sdk: Add initial crytpto code. 2020-02-24 17:19:00 +01:00