mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-09 09:51:02 +01:00
macBuf must exist if key has macKey
This commit is contained in:
parent
2952f9d158
commit
df2e332134
@ -623,6 +623,10 @@ angular
|
|||||||
throw 'Encryption key unavailable.';
|
throw 'Encryption key unavailable.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (key.macKey && !macBuf) {
|
||||||
|
throw 'macBuf required for this type of key.';
|
||||||
|
}
|
||||||
|
|
||||||
if (encType !== key.encType) {
|
if (encType !== key.encType) {
|
||||||
throw 'encType unavailable.';
|
throw 'encType unavailable.';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user