Separate input/output flex_hash memory

This commit is contained in:
MoneroOcean 2024-05-31 20:58:21 +03:00
parent 3d8bf1036b
commit 2d1d781efa
2 changed files with 4 additions and 3 deletions

View file

@ -120,7 +120,7 @@ void SwapBytes(void *pv, unsigned int n)
}
void flex_hash(const char* input, char* output, cryptonight_ctx** ctx) {
uint32_t hash[64/4];
uint32_t hash[64/4], hash2[64/4];
sph_blake512_context ctx_blake;
sph_bmw512_context ctx_bmw;
sph_groestl512_context ctx_groestl;
@ -289,7 +289,8 @@ void flex_hash(const char* input, char* output, cryptonight_ctx** ctx) {
sph_whirlpool_close(&ctx_whirlpool, hash);
break;
}
in = (void*) hash;
memcpy(hash2, hash, 64);
in = (void*) hash2;
size = 64;
}
sph_keccak256_init(&ctx_keccak);

View file

@ -22,7 +22,7 @@
#define APP_ID "xmrig"
#define APP_NAME "XMRig"
#define APP_DESC "XMRig miner"
#define APP_VERSION "6.21.3-mo12"
#define APP_VERSION "6.21.3-mo13"
#define APP_DOMAIN "xmrig.com"
#define APP_SITE "www.xmrig.com"
#define APP_COPYRIGHT "Copyright (C) 2016-2024 xmrig.com"