Cosmetic fixes

performance-simd-rust
Inga 🏳‍🌈 8 years ago
parent 9a158edc8b
commit 25779d3e0c
  1. 2
      README.md
  2. 5
      WhiteRabbit/Program.cs

@ -29,7 +29,7 @@ Usage info
WhiteRabbit.exe < wordlist WhiteRabbit.exe < wordlist
``` ```
**Note that this code only works correctly on big-endian x64 systems, due to heavy optimizations of MD5 computation!** **Note that this code only works correctly on little-endian x64 systems, due to heavy optimizations of MD5 computation!**
Performance Performance
=========== ===========

@ -39,6 +39,11 @@
return; return;
} }
if (IntPtr.Size != 8)
{
Console.WriteLine("Only 64-bit systems are supported due to MD5Digest optimizations");
}
var expectedHashesAsVectors = ConfigurationManager.AppSettings["ExpectedHashes"] var expectedHashesAsVectors = ConfigurationManager.AppSettings["ExpectedHashes"]
.Split(',') .Split(',')
.Select(hash => new Vector<uint>(HexadecimalStringToUnsignedIntArray(hash))) .Select(hash => new Vector<uint>(HexadecimalStringToUnsignedIntArray(hash)))

Loading…
Cancel
Save