mirror of
https://github.com/BLAKE2/BLAKE2
synced 2024-09-18 08:51:39 +02:00
With "==" you will be allowed to set anything except valid values.
This commit is contained in:
parent
eec32b7170
commit
b9302b40bc
@ -25,7 +25,7 @@ namespace Blake2Sharp
|
||||
get { return OutputSizeInBytes * 8; }
|
||||
set
|
||||
{
|
||||
if (value % 8 == 0)
|
||||
if (value % 8 != 0)
|
||||
throw new ArgumentException("Output size must be a multiple of 8 bits");
|
||||
OutputSizeInBytes = value / 8;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user