From 5499d5a97ab77ee93eedcdb4cc073cf0657fc5c0 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Thu, 16 Jul 2020 20:06:33 -0700 Subject: [PATCH] Panthera algo fix --- src/crypto/randomx/randomx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/randomx/randomx.cpp b/src/crypto/randomx/randomx.cpp index 144020a8..32c71195 100644 --- a/src/crypto/randomx/randomx.cpp +++ b/src/crypto/randomx/randomx.cpp @@ -370,7 +370,7 @@ int rx_yespower_k12(void *out, size_t outlen, const void *in, size_t inlen) rx_blake2b(out, outlen, in, inlen, 0, 0); yespower_params_t params = { YESPOWER_1_0, 2048, 8, NULL }; 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 *)out, outlen, (unsigned char *)out, 32, 0, 0); } extern "C" {