mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-06 18:57:56 +01:00
pass key to encrypt service
This commit is contained in:
parent
3e11a9b092
commit
57d270b08b
@ -458,7 +458,10 @@ export class CryptoService implements CryptoServiceAbstraction {
|
||||
return null;
|
||||
}
|
||||
|
||||
const privateKey = await this.encryptService.decryptToBytes(new EncString(encPrivateKey), null);
|
||||
const privateKey = await this.encryptService.decryptToBytes(
|
||||
new EncString(encPrivateKey),
|
||||
await this.getKeyForUserEncryption()
|
||||
);
|
||||
await this.stateService.setDecryptedPrivateKey(privateKey);
|
||||
return privateKey;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user