1
1
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:
CryptoManiac 2016-04-30 23:53:42 +03:00
parent eec32b7170
commit b9302b40bc

View File

@ -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;
}