-
-
Notifications
You must be signed in to change notification settings - Fork 656
Add restoreKeybackup to CryptoApi.
#4476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
florianduros
merged 39 commits into
develop
from
florianduros/rip-out-legacy-crypto/restorekeybackup
Nov 13, 2024
Merged
Changes from 17 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
a1f18cf
First draft of moving out restoreKeyBackup out of MatrixClient
florianduros 61c1940
Deprecate `restoreKeyBackup*` in `MatrixClient`
florianduros a0dc1e8
Move types
florianduros d385c72
Handle only the room keys response
florianduros 8ba0416
Merge branch 'develop' into florianduros/rip-out-legacy-crypto/restor…
florianduros 61ba3d2
Renaming and refactor `keysCountInBatch` & `getTotalKeyCount`
florianduros 3b8b4e1
Fix `importRoomKeysAsJson` tsdoc
florianduros a50b3d5
Fix typo
florianduros 7f35274
Move `backupDecryptor.free()``
florianduros 0192809
Comment and simplify a bit `handleDecryptionOfAFullBackup`
florianduros f9b5966
Fix decryption crash by moving`backupDecryptor.free`
florianduros 95e55a1
Use new api in `megolm-backup.spec.ts`
florianduros b02d245
Add tests to get recovery key from secret storage
florianduros 9f7fb5d
Add doc to `KeyBackupRestoreOpts` & `KeyBackupRestoreResult`
florianduros df83906
Add doc to `restoreKeyBackupWithKey`
florianduros b057b6e
Add doc to `backup.ts`
florianduros e9df34b
Merge branch 'develop' into florianduros/rip-out-legacy-crypto/restor…
florianduros c130e83
Apply comment suggestions
florianduros 7e48a52
- Decryption key is recovered from the cache in `RustCrypto.restoreKe…
florianduros fbd8d63
Add `CryptoApi.restoreKeyBackup` to `ImportRoomKeyProgressData` doc.
florianduros d5bc824
Add deprecated symbol to all the `restoreKeyBackup*` overrides.
florianduros 698dd93
Update tests
florianduros cec2c89
Move `RustBackupManager.getTotalKeyCount` to `backup#calculateKeyCoun…
florianduros 6fd8b1d
Fix `RustBackupManager.restoreKeyBackup` tsdoc
florianduros 9f86663
Move `backupDecryptor.free` in rust crypto.
florianduros beed963
Move `handleDecryptionOfAFullBackup` in `importKeyBackup`
florianduros a2582a7
Rename `calculateKeyCountInKeyBackup` to `countKeystInBackup`
florianduros eeb1dce
Fix `passphrase` typo
florianduros e0f8913
Rename `backupInfoVersion` to `backupVersion`
florianduros fe3ea7c
Complete restoreKeyBackup* methods documentation
florianduros e55aee9
Add `loadSessionBackupPrivateKeyFromSecretStorage`
florianduros c47066f
Remove useless intermediary result variable.
florianduros a70ee65
Check that decryption key matchs key backup info in `loadSessionBacku…
florianduros 0112d37
Get backup info from a specific version
florianduros 250b7e9
Fix typo in `countKeysInBackup`
florianduros 37793c5
Improve documentation and naming
florianduros c063d93
Use `RustSdkCryptoJs.BackupDecryptionKey` as `decryptionKeyMatchesKey…
florianduros 787649a
Call directly `olmMachine.getBackupKeys` in `restoreKeyBackup`
florianduros b214791
Last review changes
florianduros File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.