1
0
mirror of https://github.com/bitwarden/browser synced 2026-03-01 19:11:22 +00:00

Fix private key encryption

This commit is contained in:
Bernd Schoolmann
2025-03-06 19:25:09 +01:00
parent 4aeb20239f
commit 041e7743f8
3 changed files with 11 additions and 14 deletions

View File

@@ -98,7 +98,7 @@ export class UserKeyRotationService {
const newMasterKey = await this.keyService.makeMasterKey(newMasterPassword, email, kdfConfig);
const userkey = PureCrypto.generate_userkey(false);
const userkey = PureCrypto.generate_userkey(true);
const newUnencryptedUserKey = new SymmetricCryptoKey(userkey) as UserKey;
let kdf: Kdf = { pBKDF2: { iterations: 1 } };
if (kdfConfig.kdfType === KdfType.PBKDF2_SHA256) {