mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-02-04 11:14:17 +00:00
CryptoNight variant from v7
This commit is contained in:
parent
56f4aee35a
commit
befc74228b
@ -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…
x
Reference in New Issue
Block a user