-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexeddb: expose new method
IndexeddbCryptoStore::open_with_key
(#…
…3423) Allow applications to skip the PBKDF2 operation if they already have a cryptographically secure key, instead using a simple HKDF to derive a key. In order to maintain compatibility for existing element-web sessions, if we discover that we have an existing store that was encrypted with a key derived from PBKDF2, then we reconstruct what element-web used to do: specifically, we base64-encode the key to obtain the "passphrase" that was previously passed in. If that matches, we know we've got the right key, and can update the meta store accordingly. Part of a resolution to element-hq/element-web#26821. Signed-off-by: Richard van der Hoff <[email protected]> Co-authored-by: Damir Jelić <[email protected]>
- Loading branch information
Showing
4 changed files
with
233 additions
and
41 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# unreleased | ||
# UNRELEASED | ||
|
||
- Add new method `IndexeddbCryptoStore::open_with_key`. ([#3423](https://github.com/matrix-org/matrix-rust-sdk/pull/3423)) | ||
|
||
- `save_change` performance improvement, all encryption and serialization | ||
is done now outside of the db transaction. | ||
is done now outside of the db transaction. |
This file contains 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 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