-
Notifications
You must be signed in to change notification settings - Fork 20
[PM-24683] Add updateKdf function #383
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
+324
โ25
Merged
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
44773f7
Adds MasterPasswordUnlock into identity's response user decryption opโฆ
mzieniukbw 0712878
Adds MasterPasswordUnlock KDF change handling in sync
mzieniukbw 8ca20a8
simplification
mzieniukbw 28a8423
clippy fix
mzieniukbw b089ea0
formatting
mzieniukbw 0d35393
no handling, just response parsing
mzieniukbw a08179d
test coverage
mzieniukbw b3647f2
wasm
mzieniukbw 36d3136
wasm unit test coverage
mzieniukbw 7c8664d
wasm unit test coverage
mzieniukbw 9c7d50d
Added UserDecryption data, response model with handling
mzieniukbw 70ad9d3
autogenerated wasm responses, UserDecryption struct, use of TryFrom
mzieniukbw 110f4db
failing unit test
mzieniukbw ff86adf
lint
mzieniukbw fa253a3
lint
mzieniukbw 4a95dc5
KdfType enum duplicate
mzieniukbw cd37e31
revert identity crate wasm, since there it's not used right now
mzieniukbw 3bf880f
docs
mzieniukbw 93a3d0c
formatting
mzieniukbw fa1b16b
Add update SDK functionality
quexten af83c57
Add test
quexten e780d69
Cleanup
quexten f0c4f2a
Merge branch 'main' into km/pm-24051-add-master-password-unlock-decryโฆ
mzieniukbw 3e6a46a
revert user decryption response parsing in wasm
mzieniukbw 7c34725
fixed unit test
mzieniukbw 042678c
revert wasm dependencies
mzieniukbw 9676069
bring back wasm and uniffi bindings to MasterPasswordUnlockData, erroโฆ
mzieniukbw bcc183a
Fix clippy issues
quexten 6398e13
Fix build
quexten e816975
Merge branch 'km/pm-24051-add-master-password-unlock-decryption-optioโฆ
quexten 21c72e0
Fix build
quexten 3dc3577
Clean-up errors
quexten 367f9f0
Fix formatting
quexten 3d9b257
Replace String with str
quexten 69ed59c
Fix wasm being imported on UNIFFI builds
quexten 866912b
Feature-flag wasm-only code and fix import
quexten 08d10fe
Merge branch 'fix-wasm-import' into km/update-kdf-sdk
quexten 0aba54b
Fix clippy issues
quexten 4e41a29
Fix clippy issue
quexten 7973f12
identity separate user decryption options response model
mzieniukbw 5a4f314
review suggestions
mzieniukbw 7e425ca
identity name prefix for UserDecryptionOptions
mzieniukbw c9aaa8c
IdentityUserDecryptionOptionsResponseModel mapping to UserDecryptionData
mzieniukbw 2591773
clippy
mzieniukbw c908173
Merge branch 'km/pm-24051-add-master-password-unlock-decryption-optioโฆ
quexten 9f2c473
Expose update kdf in uniffi
quexten ed3be99
Merge branch 'km/update-kdf-sdk' of github.com:bitwarden/sdk-internalโฆ
quexten 48bfbda
Update crates/bitwarden-core/src/key_management/crypto.rs
quexten b4d89e2
Update crates/bitwarden-core/src/key_management/crypto.rs
quexten aeaeff5
Rename to make_update
quexten 7cf85b4
Merge branch 'km/update-kdf-sdk' of github.com:bitwarden/sdk-internalโฆ
quexten 3212002
Merge branch 'main' into km/pm-24051-add-master-password-unlock-decryโฆ
mzieniukbw 1a3dd14
Update comments
quexten 55cc2b7
Rename error variant
quexten dd5dd3e
Rename error variant
quexten 20b5a06
Fix build
quexten 18e7913
Merge branch 'km/pm-24051-add-master-password-unlock-decryption-optioโฆ
quexten 5cf50d2
Undo duplicate upstream change
quexten 6cdb29b
Fix formatting
quexten 77c2d68
missing kdf fields treated as missing field error
mzieniukbw a487fff
Merge branch 'main' into km/pm-24051-add-master-password-unlock-decryโฆ
mzieniukbw ecfde52
Merge branch 'main' into km/pm-24051-add-master-password-unlock-decryโฆ
mzieniukbw 8d5c8c4
Undo duplicate import
quexten d5a7180
Update crates/bitwarden-core/src/key_management/crypto_client.rs
quexten 285132a
Remove long-path import
quexten aec1105
Mark as deprecated
quexten 16f73ce
Remove unused function
quexten 47da2c9
Merge branch 'km/update-kdf-sdk' of github.com:bitwarden/sdk-internalโฆ
quexten 0b99b78
Merge branch 'km/pm-24051-add-master-password-unlock-decryption-optioโฆ
quexten 77a142e
Fix clippy errors
quexten c703c10
Undo deprecation changes
quexten db8e8b0
Merge branch 'km/update-kdf-sdk' of github.com:bitwarden/sdk-internalโฆ
quexten 139d2b1
Merge branch 'main' into km/update-kdf-sdk
quexten a0ede96
Resolve conflicts
quexten 198c29c
Merge branch 'main' into km/update-kdf-sdk
quexten 06f160a
Remove identity_user_decryption_options_response
jlf0dev 35c0e8d
address PR feedback
jlf0dev 07b25ed
Merge branch 'main' into km/update-kdf-sdk
jlf0dev f2dff60
use to_owned instead of clone
jlf0dev b0030e4
reword unlock to authenticate
jlf0dev 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These derive functions will only fail if the KDF settings are insufficient right? If that's the case we should rename the error variant to make it more clear, because the error is unrelated to the master password.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. The variant is now just "InvalidKdfSettings", and discards the returned
MasterPasswordError