1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00

1457 Commits

Author SHA1 Message Date
Bruno Windels
9fe0e1e85f lint 2020-05-15 13:44:10 +02:00
Bruno Windels
8d81240c58 remove key backup format migration 2020-05-15 12:37:41 +02:00
Hubert Chathi
bdadcd4532 support new key agreement method for SAS 2020-05-14 16:14:45 -04:00
Bruno Windels
91556d5bcd fix lint 2020-05-13 10:38:03 +02:00
Bruno Windels
039abe1f75 remove tests for upgrade path 2020-05-12 14:53:50 +02:00
David Baker
320811f9ed Don't send key requests until after sync processing is finished
Key requests wait for a short time (500ms) before being sent as
an attempt to wait for the key to arrive before sending a request
for it, but client startup takes way longer than this so this
would still result in key requests being sent for keys that we'd
fetched but were still waiting to be read out of the sync response
and put into the database.
2020-04-24 11:19:52 +01:00
Michael Kohler
f4c08477d0 Reject attemptAuth promise if no auth flow found 2020-04-19 14:04:10 +02:00
Nicolas Chamo
145cd7894b More lint fixes 2020-04-17 19:56:32 -03:00
Nicolas Chamo
6cf8a76c29 linting 2020-04-17 19:50:15 -03:00
nchamo
7ea09ebe4a Add fix and test
Signed-off-by: Nicolas Chamo <nicolas@chamo.com.ar>
2020-04-17 19:37:33 -03:00
Hubert Chathi
e087bce61a Merge pull request #1311 from matrix-org/uhoreg/fix_backup_key_format
Fix incorrect backup key format in SSSS
2020-04-13 17:38:45 -04:00
Hubert Chathi
d2f24c3e87 cut long line to appease lint 2020-04-13 17:03:17 -04:00
Hubert Chathi
5d606bba66 add test for passthrough on backups 2020-04-13 16:54:02 -04:00
Hubert Chathi
864fe459b7 improve readability of tests 2020-04-13 16:27:46 -04:00
Bruno Windels
97cf4bff1f fix tests 2020-04-09 18:21:20 +02:00
Hubert Chathi
ca7b49d209 fix incorrect backup key format in SSSS 2020-04-09 00:08:17 -04:00
Zoe
c6d32ea2b0 Expose function to force-reset outgoing room key requests 2020-04-02 16:25:50 +01:00
J. Ryan Stinnett
4a965f5408 Convert secret storage key creation to object 2020-03-31 10:45:02 +01:00
David Baker
f57c25ec27 Make test pass again 2020-03-27 15:13:46 +00:00
David Baker
794429b68b Request the key backup key & restore backup
After a successful verification with ourselves, request the key
backup key too and restore a key backup if we get it.

Also cache the key backup key when we cache the SSK & USK so we have
it available to share.

Fixes https://github.com/vector-im/riot-web/issues/12704
2020-03-27 14:40:15 +00:00
David Baker
7f5ac072e6 Use requestSecret on the client to request secrets
Rather than accessing private method to get the secret storage
object (this was a bit confusing when I grepped for 'requestSecret'
and didn't find anything).
2020-03-26 16:01:35 +00:00
Zoe
02216b15e5 Merge pull request #1281 from matrix-org/foldleft/12704-key-requests
Functions to cache session backups key automatically
2020-03-24 15:32:09 +00:00
David Baker
465f9e634e Merge pull request #1272 from matrix-org/dbkr/symmetric-ssss-migrate
Migration to symmetric SSSS
2020-03-24 13:12:17 +00:00
David Baker
d303fd0c7c Fix test 2020-03-23 14:53:55 +00:00
Zoe
7053cf0182 Functions to cache session backups key automatically 2020-03-23 14:24:35 +00:00
Zoe
6701fdd486 Rename ssss cache functions to be more general 2020-03-20 10:18:06 +00:00
Zoe
78d9111646 Add a store for backup keys 2020-03-19 15:30:28 +00:00
David Baker
8120041ba7 Merge branch 'symmetric-ssss-migrate' of git://github.com/uhoreg/matrix-js-sdk into uhoreg-symmetric-ssss-migrate 2020-03-17 13:11:01 +00:00
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