From bb6275672fbd1f4b51fce840c3baec1f1458e5f6 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 26 Apr 2017 11:47:54 +0300 Subject: [PATCH] Compatibility fix for AVX2 CPUs --- dotnet/WhiteRabbit/Program.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dotnet/WhiteRabbit/Program.cs b/dotnet/WhiteRabbit/Program.cs index bc8d603..a9e400d 100644 --- a/dotnet/WhiteRabbit/Program.cs +++ b/dotnet/WhiteRabbit/Program.cs @@ -45,13 +45,11 @@ Console.WriteLine("Only 64-bit systems are supported due to MD5Digest optimizations"); } - var expectedHashesAsVectors = ConfigurationManager.AppSettings["ExpectedHashes"] + var expectedHashesFirstComponents = ConfigurationManager.AppSettings["ExpectedHashes"] .Split(',') - .Select(hash => new Vector(HexadecimalStringToUnsignedIntArray(hash))) + .Select(hash => HexadecimalStringToUnsignedIntArray(hash)[0]) .ToArray(); - var expectedHashesFirstComponents = expectedHashesAsVectors.Select(vector => vector[0]).ToArray(); - var processor = new StringsProcessor( Encoding.ASCII.GetBytes(sourcePhrase), maxWordsInPhrase,