diff options
author | Samuel Neves <sneves@users.noreply.github.com> | 2016-05-04 18:26:43 +0300 |
---|---|---|
committer | Samuel Neves <sneves@users.noreply.github.com> | 2016-05-04 18:26:43 +0300 |
commit | 6740feadeaf93e41e3d566cbec4600e955ca786f (patch) | |
tree | 486e5f970a093870ba5ddf1701cdceba3c6dfc7b | |
parent | eec32b7170d8dbe4eb59c9afad2ee9297393fb5b (diff) | |
parent | b9302b40bc4c762c4beae50a231429956533db1f (diff) |
Merge pull request #23 from CryptoManiac/master
Parameter validation issue.
-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; } |