Tulir Asokan
087644889b
Stop using non-existent device_id field when handling olm messages
2021-12-03 17:47:41 +02:00
Tulir Asokan
e0ec08ac84
Remove pq dependency
2021-11-02 20:08:03 +02:00
Tulir Asokan
00ca2be6a5
Run gofmt
2021-09-22 10:52:01 -04:00
Tulir Asokan
13ae6b3315
Fix SQLCryptoStore's PutWithheldGroupSession
2021-08-31 17:48:08 +03:00
Tulir Asokan
c9d7c55f59
Switch to locking olm globally instead of per-session
2020-11-18 13:13:55 +02:00
Tulir Asokan
495d77b3a0
Merge branch 'master' into cross-sign
2020-10-27 00:38:52 +02:00
Tulir Asokan
575e242018
Lock olm sessions between encrypting and sending
2020-10-02 01:07:53 +03:00
Tulir Asokan
72fc4c1643
Stop using github.com/pkg/errors
2020-09-24 14:41:29 +03:00
Tulir Asokan
8c3d0bb2c1
Add utility function for waiting for Megolm session to arrive
2020-09-24 14:26:56 +03:00
Nikos Filippakis
dfa32fa016
Delete signatures made by keys that have been replaced since
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
50bb209da7
Checking of trust for devices and users based on cross-signing
...
signatures
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
83f2636582
Store received cross-signing keys and their signatures
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:45:26 +02:00
Nikos Filippakis
211495722d
DB changes for storing cross-signing keys and signatures
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:45:26 +02:00
Tulir Asokan
cf2f5430ef
Add methods for exporting and importing key files
2020-08-25 19:55:18 +03:00
Tulir Asokan
24127da284
Add support for storing m.room_key.withheld events
2020-08-03 22:05:01 +03:00
Nikos Filippakis
4aa2d5235d
Ability to also start verification of another device
...
* verification works both ways
* checking of MACs / commitment
* more errors on unexpected messages
* actually mark the device as trusted when verification finishes
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-23 23:18:27 +02:00
Nikos Filippakis
ed446d64a1
Forward keys when asked for room keys from the same user ID
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-17 16:17:44 +02:00
Tulir Asokan
e48414c693
Move crypto SQL store upgrades to separate package
2020-07-10 16:34:23 +03:00
Tulir Asokan
5e81ac0114
Export crypto sql store migrations
...
I need them in the WhatsApp bridge
2020-07-10 15:53:10 +03:00
Tulir Asokan
b2e2ab6f74
Merge remote-tracking branch 'nikofil/sql-account-id'
2020-07-10 15:35:59 +03:00
Nikos Filippakis
6ee3f67243
Add an account ID to crypto tables to differentiate between devices
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-09 15:17:02 +02:00
Nikos Filippakis
7effa79ee7
Insert devices in batches for SQL store
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-08 13:21:19 +02:00
Tulir Asokan
185d7a4815
Export all fields in SQLCryptoStore for easier extending
2020-06-23 23:18:19 +03:00
Nikos Filippakis
39ba543400
Add crypto SQL store from mautrix-whatsapp
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-06-23 21:54:20 +02:00