CryptoNight variant from v7

This commit is contained in:
stoffu 2018-03-12 14:11:55 +09:00 committed by Sammy Libre
parent 56f4aee35a
commit befc74228b

View File

@ -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) {