mirror of
https://github.com/bitwarden/browser
synced 2026-02-04 18:53:20 +00:00
Resolved merge conflicts from vault item encryption.
This commit is contained in:
@@ -86,14 +86,14 @@ export class Fido2Component implements OnInit, OnDestroy {
|
||||
this.ciphers = await Promise.all(
|
||||
message.cipherIds.map(async (cipherId) => {
|
||||
const cipher = await this.cipherService.get(cipherId);
|
||||
return cipher.decrypt();
|
||||
return cipher.decrypt(await this.cipherService.getKeyForCipherKeyDecryption(cipher));
|
||||
})
|
||||
);
|
||||
} else if (message.type === "InformExcludedCredentialRequest") {
|
||||
this.ciphers = await Promise.all(
|
||||
message.existingCipherIds.map(async (cipherId) => {
|
||||
const cipher = await this.cipherService.get(cipherId);
|
||||
return cipher.decrypt();
|
||||
return cipher.decrypt(await this.cipherService.getKeyForCipherKeyDecryption(cipher));
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
@@ -131,7 +131,9 @@ export class Fido2AuthenticatorService implements Fido2AuthenticatorServiceAbstr
|
||||
keyPair = await createKeyPair();
|
||||
|
||||
const encrypted = await this.cipherService.get(cipherId);
|
||||
cipher = await encrypted.decrypt();
|
||||
cipher = await encrypted.decrypt(
|
||||
await this.cipherService.getKeyForCipherKeyDecryption(encrypted)
|
||||
);
|
||||
fido2Key = await createKeyView(params, keyPair.privateKey);
|
||||
cipher.login.fido2Keys = [fido2Key];
|
||||
const reencrypted = await this.cipherService.encrypt(cipher);
|
||||
|
||||
Reference in New Issue
Block a user