Permalink
Browse files

Cryptonight variant 2

Contains two modifications to improve ASIC resistance: shuffle and integer math.

Shuffle makes use of the whole 64-byte cache line instead of 16 bytes only, making Cryptonight 4 times more demanding for memory bandwidth.

Integer math adds 64:32 bit integer division followed by 64 bit integer square root, adding large and unavoidable computational latency to the main loop.

More details and performance numbers: https://github.com/SChernykh/xmr-stak-cpu/blob/master/README.md
  • Loading branch information...
SChernykh committed Aug 3, 2018
1 parent 0dddfea commit 5fd83c13fbf8dc304909345e60a853c15b0de1e5
Showing with 577 additions and 56 deletions.
  1. +198 −54 src/crypto/slow-hash.c
  2. +163 −0 src/crypto/variant2_int_sqrt.h
  3. +5 −1 tests/hash/CMakeLists.txt
  4. +201 −1 tests/hash/main.cpp
  5. +10 −0 tests/hash/tests-slow-2.txt
Oops, something went wrong.

0 comments on commit 5fd83c1

Please sign in to comment.