mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +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