shithub: blake2

Download patch

ref: 6740feadeaf93e41e3d566cbec4600e955ca786f
parent: eec32b7170d8dbe4eb59c9afad2ee9297393fb5b
parent: b9302b40bc4c762c4beae50a231429956533db1f
author: Samuel Neves <sneves@users.noreply.github.com>
date: Wed May 4 12:26:43 EDT 2016

Merge pull request #23 from CryptoManiac/master

Parameter validation issue.

--- a/csharp/Blake2Sharp/Blake2BConfig.cs
+++ b/csharp/Blake2Sharp/Blake2BConfig.cs
@@ -25,7 +25,7 @@
 			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;
 			}
--