Hubert Chathi
86304fd037
Merge pull request #1252 from matrix-org/uhoreg/megolm_speed
...
refactor megolm encryption to improve perceived speed
2020-03-10 20:09:41 -04:00
Hubert Chathi
04387e78cc
some cleanups
2020-03-10 15:56:33 -04:00
Bruno Windels
33941eb37b
Merge pull request #1251 from matrix-org/bwindels/altaliasesforname
...
Use alt_aliases instead of local ones for room names
2020-03-10 12:42:50 +00:00
Hubert Chathi
98d955ef1f
refactor megolm encryption to improve perceived speed
...
- allow applications to pre-send decryption keys before the message is sent
- establish new olm sessions with a shorter timeout first, and then re-try in
the background with a longer timeout without blocking message sending
2020-03-09 18:38:18 -04:00
Bruno Windels
950dadc14e
fix tests
2020-03-09 18:33:20 +01:00
Bruno Windels
4b9bc67cb6
remove crypto.verification.start event
...
as it is not used anymore by the react-sdk
2020-03-06 16:48:44 +01:00
Zoe
936ef4116b
For self-verifications, also request keys from the other device ( #1245 )
...
* For self-verifications, also request keys from the other device
* removed some XXX's so the editor doesn't think it's three issues
* add methods to access key cache callbacks
2020-03-06 09:56:56 +00:00
Zoe
c54922dba3
Fixed up tests to match new way that crypto stores are created
2020-03-02 12:51:47 +00:00
Zoe
656694ee00
proper spacing for test output text
2020-03-02 09:45:55 +00:00
Zoe
67fe4e1460
lint & only cache valid keys
2020-02-28 11:04:28 +00:00
Zoe
a94503ad03
address PR feedback
2020-02-28 10:43:57 +00:00
Hubert Chathi
1151bdc6db
initial work in migrating ssss to symmetric
2020-02-27 22:56:34 -05:00
Zoe
c2daf0d74e
Store data in cryptostore
2020-02-27 16:53:26 +00:00
Zoe
02cbd33284
Added cache callbacks to CrossSigningInfo
2020-02-27 16:37:25 +00:00
Zoe
941ae18d74
Added tests for CrossSigningInfo.getCrossSigningKey
2020-02-27 16:37:25 +00:00
Hubert Chathi
5d52053caa
use symmetric encryption for SSSS
2020-02-24 17:38:53 -05:00
Hubert Chathi
bf92cb1522
try to re-fetch devices before giving up on trying to heal a broken olm ( #1224 )
2020-02-21 10:20:46 -05:00
Bruno Windels
00c003ec65
remove methods arg to requestVerification(DM)
...
as it's easy to have this argument be out of sync from all
the places this is called from the js-sdk. There is also little point,
as you can already specify the methods a consumer of the js-sdk
wants to provide through the verificationMethods option when creating
the client object.
2020-02-11 17:42:49 +01:00
Hubert Chathi
3f369e528b
Merge pull request #1167 from cedricvanrompay/1-olm-device-export-import
...
add export/import of Olm devices
2020-02-05 20:09:01 -05:00
Bruno Windels
c9c765b5b8
fix getEventType
2020-02-04 13:12:38 +01:00
Bruno Windels
208c371afb
add failing test for getEventType
2020-02-04 13:10:06 +01:00
Bruno Windels
4945463beb
fix lint
2020-02-03 20:12:21 +01:00
Bruno Windels
5398fac348
add (failing) tests for getEventType and getOtherPartyUserId
2020-02-03 19:16:48 +01:00
Cédric Van Rompay
ec597bea93
fix new way of calling OlmDevice.init
2020-02-03 10:27:10 +01:00
Cédric Van Rompay
a4e74fea94
fix linting errors
2020-01-31 11:51:17 +01:00
Travis Ralston
1b80c83676
Merge branch 'develop' into travis/update-qr-code
2020-01-29 15:11:06 +00:00
Travis Ralston
ec4dc582b6
Remove tests for old QR code stuff
2020-01-29 15:10:35 +00:00
Bruno Windels
470bdf8741
fix tests
2020-01-29 15:19:18 +01:00
J. Ryan Stinnett
4dbeee8cb3
Ignore downloading for tests
2020-01-27 15:28:36 +00:00
Cédric Van Rompay
e1f832bfa7
fix linting errors
2020-01-24 09:20:43 +01:00
Travis Ralston
b8092cd00b
Make the tests pass
2020-01-23 20:41:52 -07:00
Cédric Van Rompay
ed01b3b8cf
stop checking structure of exported data
...
it should suffice that the exported data
allows to recreate a device that can do crypto
2020-01-23 16:55:16 +01:00
Cédric Van Rompay
7880a30e57
add importing in OlmDevice.init()
2020-01-23 16:55:16 +01:00
Cédric Van Rompay
3a1cdd37a3
move export test with other Olm tests to have active sessions
2020-01-23 16:55:16 +01:00
Cédric Van Rompay
ff24ef4ee5
add OlmDevice.prototype.export
...
- only exporting account and P2P sessions
- test is halfway done:
- it only prints the export result instead of running assertions on it
- there are no sessions to export
Note: to run only the added test:
node_modules/.bin/jest spec/unit/crypto/algorithms/olm.spec.js --testEnvironment node --testNamePattern OlmDevice
2020-01-23 16:55:16 +01:00
Bruno Windels
3faeec4add
fix lint
2020-01-23 15:59:47 +01:00
Bruno Windels
b2afaabb8c
add unit tests for verifying your own device over to_device messages
2020-01-23 15:52:07 +01:00
Bruno Windels
3efaf90bc8
Merge pull request #1163 from matrix-org/bwindels/verificationaccceptedbyotherdevice
...
For dm-verification, also consider events sent by other devices of same user as "our" events
2020-01-23 13:27:15 +00:00
Bruno Windels
0c52887688
copyright year
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2020-01-23 10:51:19 +00:00
Bruno Windels
dc38f78da2
add unit tests for verification request
2020-01-22 17:39:21 +01:00
Michael Telatynski
1b6a74fd93
Remove :deviceId from /keys/upload/:deviceId as not spec-compliant
2020-01-22 15:20:13 +00:00
Bruno Windels
22e6cfaebb
Merge pull request #1140 from matrix-org/bwindels/verification-right-panel
...
Support for .ready verification event (MSC2366) & other things
2020-01-20 17:17:51 +00:00
Bruno Windels
bd9a2c13eb
implement API change in sas test for requestVerificationDM
2020-01-20 17:55:48 +01:00
Bruno Windels
e5c65d53f8
set transaction_id for remote echos in TestClient
...
as InRoomChannel looks at this to decide whether an event is
a remote echo (and to pass it to the verifier or not)
2020-01-20 17:54:26 +01:00
Bruno Windels
c12a3b6610
more fixup: make sure remote echo doesn't arrive earlier for TestClient
2020-01-20 17:35:44 +01:00
Bruno Windels
77d0a76186
fixup: another timeout
2020-01-20 14:52:34 +01:00
Bruno Windels
e89528315d
enable fake timers for consistency
...
although it doesn't make or break the test
2020-01-20 14:04:32 +01:00
Bruno Windels
c34ccc9d53
adjust test: requestVerification returns the request instead of verifier
2020-01-20 14:03:43 +01:00
Bruno Windels
e51ba795f3
to make this work while using fake timers, don't use setTimeout
...
but instead use Promise.resolved() as then always runs in the next tick.
2020-01-20 13:56:39 +01:00
J. Ryan Stinnett
ceb4581f91
Convert secret storage to new account data API
...
This converts all secret storage to use a newer account data API which uses
cached data in stored when available, but also knows how to ask the homeserver
in case it's invoked during early client startup before the initial sync.
As a consequence, it means most secret storage APIs are now async.
Part of https://github.com/vector-im/riot-web/issues/11901
2020-01-17 17:56:05 +00:00