Browse Source

CryptoNight variant from v7

pool
stoffu 7 years ago committed by Sammy Libre
parent
commit
befc74228b
  1. 3
      hashing/src/hashing.c

3
hashing/src/hashing.c

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
#include "crypto/hash-ops.h"
void cryptonight_hash(const char* input, char* output, uint32_t len) {
cn_slow_hash(input, len, output);
const int variant = input[0] >= 7 ? input[0] - 6 : 0;
cn_slow_hash(input, len, output, variant, 0);
}
void cryptonight_fast_hash(const char* input, char* output, uint32_t len) {

Loading…
Cancel
Save