mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-04 08:50:18 +01:00
check that mac always exists if key has MacKey
This commit is contained in:
parent
6f119f25f4
commit
01878ef00c
@ -82,6 +82,11 @@ namespace Bit.App.Utilities
|
||||
throw new ArgumentNullException(nameof(iv));
|
||||
}
|
||||
|
||||
if(key.MacKey != null && mac == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(mac));
|
||||
}
|
||||
|
||||
if(key.EncryptionType != type)
|
||||
{
|
||||
throw new InvalidOperationException(nameof(type));
|
||||
|
Loading…
Reference in New Issue
Block a user