Valere
c65e329101
Deprecate MatrixClient.{prepare,create}KeyBackupVersion in favour of new CryptoApi.resetKeyBackup API ( #3689 )
...
* new resetKeyBackup API
* add delete backup version test
* code review
* code review
2023-09-04 20:00:28 +00:00
Valere
c18d691ef5
RustCrypto | Implement keybackup loop ( #3652 )
...
* Implement `CryptoApi.checkKeyBackup`
* Deprecate `MatrixClient.enableKeyBackup`.
* fix integ test
* more tests
* Implement keybackup loop
* cleaning
* update matrix-sdk-crypto-wasm to 1.2.1
* fix lint
* avoid real timer stuff
* Simplify test
* post merge lint fix
* revert change on yarn.lock
* code review
* Generate test data for exported keys
* code review cleaning
* cleanup legacy backup loop
* Update spec/test-utils/test-data/generate-test-data.py
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update spec/test-utils/test-data/generate-test-data.py
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* update yarn.lock for new wasm bindings
---------
Co-authored-by: Richard van der Hoff <richard@matrix.org >
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2023-08-17 14:10:57 +00:00
Richard van der Hoff
2193cd9d1c
Implement CryptoApi.isKeyBackupTrusted ( #3632 )
...
* Implement `CryptoApi.isKeyBackupTrusted`
Fixes https://github.com/vector-im/crypto-internal/issues/110
* Bump matrix-sdk-crypto-wasm to v1.2.0
* Back out some changes
These are unneeded, and break backwards compat
2023-07-28 09:54:55 +00:00
Valere
5b635df08d
add stop() api to BackupManager for clean shutdown ( #3553 )
2023-07-06 16:43:47 +00:00
Michael Weimann
9a504af18e
Changes for v24.0.0
2023-03-28 11:22:02 +01:00
Richard van der Hoff
45f6c5b079
Add exportRoomKeys to CryptoBackend ( #2970 )
...
Element-web calls `exportRoomKeys` on logout, so we need a stub implementation
to get it EW working with the rust crypto sdk.
2022-12-20 11:11:00 +00:00
Michael Weimann
349c2c2587
Apply prettier formatting
2022-12-09 09:38:20 +01:00
Michael Telatynski
c4006d752a
Improve tsdoc types ( #2940 )
...
* Install eslint-plugin-jsdoc
* Enable lint rule jsdoc/no-types
* Make tsdoc more valid, add required hyphens and s/return/returns/g
* Stash tsdoc work
* Fix mistypes
* Stash
* Stash
* More tsdoc work
* Remove useless doc params
* Fixup docs
* Apply suggestions from code review
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update src/crypto/verification/request/ToDeviceChannel.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update src/client.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update src/client.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update src/client.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Iterate
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2022-12-07 18:01:54 +00:00
Michael Telatynski
8d018f9c2d
Enable noImplicitAny ( #2895 )
...
* Stash noImplicitAny work
* Enable noImplicitAny
* Update olm
* Fun
* Fix msgid stuff
* Fix tests
* Attempt to fix Browserify
2022-12-06 18:21:44 +00:00
Michael Telatynski
c0f7df8c3b
Update eslint-plugin-matrix-org and improve visibilities & types ( #2887 )
2022-11-18 09:20:53 +00:00
Michael Telatynski
6c543382e6
Make SonarCloud happier ( #2850 )
...
* Make SonarCloud happier
* Revert one change due to lack of strict mode upstream
* Fix typo
2022-11-07 12:16:48 +00:00
Michael Telatynski
db49cd8d13
Make the js-sdk conform to tsc --strict ( #2835 )
...
Co-authored-by: Faye Duxovni <fayed@matrix.org >
2022-11-03 12:50:05 +00:00
Michael Telatynski
9f2f08dfd3
Fix more typescript --strict violations ( #2795 )
...
* Stash tsc fixes
* Iterate
* Iterate
* Iterate
* Fix tests
* Iterate
* Iterate
* Iterate
* Iterate
* Add tests
2022-10-25 18:31:40 +01:00
Michael Telatynski
867a0ca7ee
Apply more strict typescript around the codebase ( #2778 )
...
* Apply more strict typescript around the codebase
* Fix tests
* Revert strict mode commit
* Iterate strict
* Iterate
* Iterate strict
* Iterate
* Fix tests
* Iterate
* Iterate strict
* Add tests
* Iterate
* Iterate
* Fix tests
* Fix tests
* Strict types be strict
* Fix types
* detectOpenHandles
* Strict
* Fix client not stopping
* Add sync peeking tests
* Make test happier
* More strict
* Iterate
* Stabilise
* Moar strictness
* Improve coverage
* Fix types
* Fix types
* Improve types further
* Fix types
* Improve typing of NamespacedValue
* Fix types
2022-10-21 11:44:40 +01:00
Michael Telatynski
30570bcce6
Remove node-specific crypto bits, use Node 16's WebCrypto ( #2762 )
2022-10-17 17:54:54 +01:00
RiotRobot
a587d7c360
Resolve multiple CVEs
...
CVE-2022-39249
CVE-2022-39250
CVE-2022-39251
CVE-2022-39236
2022-09-28 13:55:15 +01:00
Faye Duxovni
8711499121
Don't bug the user while re-checking key backups after decryption failures ( #2430 )
2022-06-02 13:28:08 -04:00
Faye Duxovni
8412ccfa9b
Try to load keys from key backup when a message fails to decrypt ( #2373 )
...
Co-authored-by: Travis Ralston <travisr@matrix.org >
2022-06-01 00:43:23 -04:00
Michael Telatynski
72013341db
More sonar tweaks and typing improvements ( #2366 )
...
* More sonar tweaks and typing improvements
* delint
* Write some tests
* Attempt to make TS happy
* Stash tests
* Add tests
* Add `istanbul ignore if` around logging special-case for test env
* Add test
* Comments
2022-05-13 18:08:36 +00:00
Michael Telatynski
8be30acb11
Apply suggestions from SonarQube ( #2340 )
2022-05-03 15:40:57 -06:00
Michael Telatynski
b896111269
Apply corrections identified by SonarQube ( #2336 )
...
* Apply corrections identified by SonarQube
* Apply corrections identified by SonarQube
* Make type more flexible
2022-05-02 03:23:17 +01:00
Michael Telatynski
12e525b664
Improve typing around event emitter handlers ( #2180 )
2022-02-22 12:18:07 +00:00
Hubert Chathi
47c5c4645e
Check the backup info against the stored private key when determining trust. ( #2167 )
2022-02-10 08:34:21 -05:00
Hubert Chathi
ea0eaff212
Back up keys before logging out ( #2158 )
2022-02-09 08:36:43 -05:00
Michael Telatynski
feb83ba161
Convert http-api to Typescript ( #2063 )
2021-12-14 15:34:50 +00:00
Michael Telatynski
963c7690b6
Iterate typing to work towards noImplicitAny ( #2061 )
2021-12-14 14:32:35 +00:00
Šimon Brandner
012b914a97
Add trusted_locally to TrustInfo
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2021-09-21 16:20:39 +02:00
Michael Telatynski
3bff5430f6
delint
2021-07-10 15:55:19 +01:00
Michael Telatynski
17efcad6fe
Improve and consolidate typing
2021-07-10 15:50:40 +01:00
Hubert Chathi
d639a29501
more type improvements
2021-07-08 18:47:22 -04:00
Hubert Chathi
ac02f30dc8
improve types
2021-07-08 18:10:37 -04:00
Hubert Chathi
8bee38367a
use the MSC number
2021-07-08 10:14:53 -04:00
Hubert Chathi
e275301e8b
lint
2021-07-07 19:50:16 -04:00
Hubert Chathi
c8a7820cb3
fix types
2021-07-07 19:46:01 -04:00
Hubert Chathi
17dc1bda19
Merge branch 'develop' into symmetric_backup
2021-07-07 19:19:56 -04:00
David Baker
b2ad957d29
Comply with new member-delimiter-style rule
...
Just `eslint --fix` with rule from
https://github.com/matrix-org/eslint-plugin-matrix-org/pull/9 in place
2021-07-01 23:28:18 +01:00
Hubert Chathi
558da5528b
fix validity checks for backup info
2021-06-30 21:53:11 -04:00
Michael Telatynski
40aa6ba96a
Even moar typescriptification
2021-06-24 19:19:41 +01:00
Michael Telatynski
b4dc1e1555
Moar typescriptification
2021-06-24 17:41:52 +01:00
Hubert Chathi
8c9799d64c
add tests and some fixes
2021-06-23 18:20:00 -04:00
Michael Telatynski
fc67dc6497
Convert crypto index to TS
2021-06-19 19:41:45 +01:00
Hubert Chathi
cf21d64aa8
allow backup algorithm to determine whether restored keys should be trusted
2021-06-09 13:02:47 -04:00
Hubert Chathi
c04d79d9a0
initial work on symmetric algorithm for key backups
2021-06-08 21:39:37 -04:00
J. Ryan Stinnett
4a79e13410
Auto-fix more errors
2021-06-04 10:24:09 +01:00
Travis Ralston
c2fae3bad8
Fix missed conversion fallout
2021-06-03 19:02:46 -06:00
Hubert Chathi
ca85dfc6ff
re-lint
2021-06-03 18:52:06 -04:00
Hubert Chathi
2608dd2d64
mark members as public
2021-06-03 18:15:05 -04:00
Hubert Chathi
c543358826
add unit test and minor fixes
2021-05-31 21:52:20 -04:00
Hubert Chathi
e73b969066
lint
2021-05-25 22:10:15 -04:00
Hubert Chathi
3ec89a89df
fix some types
2021-05-18 18:40:36 -04:00