mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
v3.8.2
This commit is contained in:
@@ -11,15 +11,15 @@ void whirlpoolx_hash(void *state, const void *input)
|
||||
sph_whirlpool_context ctx_whirlpool;
|
||||
|
||||
unsigned char hash[64];
|
||||
unsigned char hash_xored[32];
|
||||
// unsigned char hash_xored[32];
|
||||
|
||||
sph_whirlpool1_init(&ctx_whirlpool);
|
||||
sph_whirlpool1(&ctx_whirlpool, input, 80);
|
||||
sph_whirlpool1_close(&ctx_whirlpool, hash);
|
||||
|
||||
// compress the 48 first bytes of the hash to 32
|
||||
for (int i = 0; i < 32; i++)
|
||||
hash_xored[i] = hash[i] ^ hash[i + 16];
|
||||
// for (int i = 0; i < 32; i++)
|
||||
// hash_xored[i] = hash[i] ^ hash[i + 16];
|
||||
|
||||
memcpy(state, hash, 32);
|
||||
}
|
||||
|
Reference in New Issue
Block a user