Browse Source
Add wrapped named variants to UserDecryptionOptions
pull/6598/head
Daniel García
2 weeks ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
2 changed files with
6 additions and
0 deletions
-
src/api/core/ciphers.rs
-
src/api/identity.rs
|
|
|
@ -173,7 +173,10 @@ async fn sync(data: SyncData, headers: Headers, client_version: Option<ClientVer |
|
|
|
"memory": headers.user.client_kdf_memory, |
|
|
|
"parallelism": headers.user.client_kdf_parallelism |
|
|
|
}, |
|
|
|
// This field is named inconsistently and will be removed and replaced by the "wrapped" variant in the apps.
|
|
|
|
// https://github.com/bitwarden/android/blob/release/2025.12-rc41/network/src/main/kotlin/com/bitwarden/network/model/MasterPasswordUnlockDataJson.kt#L22-L26
|
|
|
|
"masterKeyEncryptedUserKey": headers.user.akey, |
|
|
|
"masterKeyWrappedUserKey": headers.user.akey, |
|
|
|
"salt": headers.user.email |
|
|
|
}) |
|
|
|
} else { |
|
|
|
|
|
|
|
@ -472,7 +472,10 @@ async fn authenticated_response( |
|
|
|
"Memory": user.client_kdf_memory, |
|
|
|
"Parallelism": user.client_kdf_parallelism |
|
|
|
}, |
|
|
|
// This field is named inconsistently and will be removed and replaced by the "wrapped" variant in the apps.
|
|
|
|
// https://github.com/bitwarden/android/blob/release/2025.12-rc41/network/src/main/kotlin/com/bitwarden/network/model/MasterPasswordUnlockDataJson.kt#L22-L26
|
|
|
|
"MasterKeyEncryptedUserKey": user.akey, |
|
|
|
"MasterKeyWrappedUserKey": user.akey, |
|
|
|
"Salt": user.email |
|
|
|
}) |
|
|
|
} else { |
|
|
|
|