|
|
@ -1,7 +1,8 @@ |
|
|
|
#include "crypto/hash-ops.h" |
|
|
|
#include "crypto/hash-ops.h" |
|
|
|
|
|
|
|
|
|
|
|
void cryptonight_hash(const char* input, char* output, uint32_t len) { |
|
|
|
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) { |
|
|
|
void cryptonight_fast_hash(const char* input, char* output, uint32_t len) { |
|
|
|