mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
check that mac always exists if key has MacKey
This commit is contained in:
parent
6f119f25f4
commit
01878ef00c
1 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,11 @@ namespace Bit.App.Utilities
|
||||||
throw new ArgumentNullException(nameof(iv));
|
throw new ArgumentNullException(nameof(iv));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(key.MacKey != null && mac == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException(nameof(mac));
|
||||||
|
}
|
||||||
|
|
||||||
if(key.EncryptionType != type)
|
if(key.EncryptionType != type)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException(nameof(type));
|
throw new InvalidOperationException(nameof(type));
|
||||||
|
|
Loading…
Reference in a new issue