1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

prelogin kdf info

This commit is contained in:
Kyle Spearrin
2018-08-14 15:13:40 -04:00
parent e11b749f6f
commit acd562e18c
5 changed files with 10 additions and 18 deletions

View File

@@ -30,7 +30,9 @@ export class UnlockCommand {
this.setNewSessionKey();
const email = await this.userService.getEmail();
const key = await this.cryptoService.makeKey(password, email);
const kdf = await this.userService.getKdf();
const kdfIterations = await this.userService.getKdfIterations();
const key = await this.cryptoService.makeKey(password, email, kdf, kdfIterations);
const keyHash = await this.cryptoService.hashPassword(password, key);
const storedKeyHash = await this.cryptoService.getKeyHash();
if (storedKeyHash != null && keyHash != null && storedKeyHash === keyHash) {