mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
macBuf must exist if key has macKey
This commit is contained in:
@@ -623,6 +623,10 @@ angular
|
||||
throw 'Encryption key unavailable.';
|
||||
}
|
||||
|
||||
if (key.macKey && !macBuf) {
|
||||
throw 'macBuf required for this type of key.';
|
||||
}
|
||||
|
||||
if (encType !== key.encType) {
|
||||
throw 'encType unavailable.';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user