1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-21 11:54:02 +00:00

rename to newMasterKey

This commit is contained in:
rr-bw
2025-04-01 09:28:35 -07:00
parent 6e70d0f817
commit 38e1988f3e
11 changed files with 34 additions and 26 deletions

View File

@@ -259,17 +259,21 @@ export class InputPasswordComponent implements OnInit {
const kdfConfig = (await this.kdfConfigService.getKdfConfig()) || DEFAULT_KDF_CONFIG; // TODO-rr-bw: confirm this
const masterKey = await this.keyService.makeMasterKey(
const newMasterKey = await this.keyService.makeMasterKey(
this.newPassword,
this.email.trim().toLowerCase(),
kdfConfig,
);
const masterKeyHash = await this.keyService.hashMasterKey(this.newPassword, masterKey);
const serverMasterKeyHash = await this.keyService.hashMasterKey(
this.newPassword,
newMasterKey,
HashPurpose.ServerAuthorization,
);
const localMasterKeyHash = await this.keyService.hashMasterKey(
this.newPassword,
masterKey,
newMasterKey,
HashPurpose.LocalAuthorization,
);
@@ -278,7 +282,7 @@ export class InputPasswordComponent implements OnInit {
newPassword: this.newPassword,
hint: this.hint,
kdfConfig,
masterKey,
newMasterKey,
serverMasterKeyHash,
localMasterKeyHash,
};