mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-15 19:02:44 -05:00
Fixed bug
This commit is contained in:
@@ -163,6 +163,7 @@ size_t xmrig::Algorithm::l2() const
|
|||||||
case RX_WOW:
|
case RX_WOW:
|
||||||
case RX_KEVA:
|
case RX_KEVA:
|
||||||
case RX_DEFYX:
|
case RX_DEFYX:
|
||||||
|
case RX_XLA:
|
||||||
return 0x20000;
|
return 0x20000;
|
||||||
|
|
||||||
case RX_ARQ:
|
case RX_ARQ:
|
||||||
@@ -215,6 +216,7 @@ size_t xmrig::Algorithm::l3() const
|
|||||||
|
|
||||||
case RX_ARQ:
|
case RX_ARQ:
|
||||||
case RX_DEFYX:
|
case RX_DEFYX:
|
||||||
|
case RX_XLA:
|
||||||
return oneMiB / 4;
|
return oneMiB / 4;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -343,6 +345,7 @@ xmrig::Algorithm::Family xmrig::Algorithm::family(Id id)
|
|||||||
case RX_SFX:
|
case RX_SFX:
|
||||||
case RX_KEVA:
|
case RX_KEVA:
|
||||||
case RX_DEFYX:
|
case RX_DEFYX:
|
||||||
|
case RX_XLA:
|
||||||
return RANDOM_X;
|
return RANDOM_X;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|||||||
@@ -368,12 +368,7 @@ int rx_sipesh_k12(void *out, size_t outlen, const void *in, size_t inlen)
|
|||||||
int rx_yespower_k12(void *out, size_t outlen, const void *in, size_t inlen)
|
int rx_yespower_k12(void *out, size_t outlen, const void *in, size_t inlen)
|
||||||
{
|
{
|
||||||
rx_blake2b(out, outlen, in, inlen, 0, 0);
|
rx_blake2b(out, outlen, in, inlen, 0, 0);
|
||||||
yespower_params_t params = {
|
yespower_params_t params = { YESPOWER_1_0, 2048, 8, NULL };
|
||||||
.version = YESPOWER_1_0,
|
|
||||||
.N = 2048,
|
|
||||||
.r = 8,
|
|
||||||
.pers = NULL
|
|
||||||
};
|
|
||||||
if (yespower_tls((const uint8_t *)out, outlen, ¶ms, (yespower_binary_t *)out)) return -1;
|
if (yespower_tls((const uint8_t *)out, outlen, ¶ms, (yespower_binary_t *)out)) return -1;
|
||||||
return KangarooTwelve((const unsigned char *)in, inlen, (unsigned char *)out, 32, 0, 0);
|
return KangarooTwelve((const unsigned char *)in, inlen, (unsigned char *)out, 32, 0, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user