diff options
Diffstat (limited to 'csharp/Blake2Sharp/Blake2BConfig.cs')
-rw-r--r-- | csharp/Blake2Sharp/Blake2BConfig.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/Blake2Sharp/Blake2BConfig.cs b/csharp/Blake2Sharp/Blake2BConfig.cs index 6d70184..0bb2ada 100644 --- a/csharp/Blake2Sharp/Blake2BConfig.cs +++ b/csharp/Blake2Sharp/Blake2BConfig.cs @@ -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; } |