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
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