From 066d9086b66f22505349961df1e8f91b958c53fc Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Sun, 1 Dec 2019 08:50:32 -0800 Subject: [PATCH] DefyX fix --- src/crypto/defyx/defyx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/defyx/defyx.cpp b/src/crypto/defyx/defyx.cpp index 725064aa..73ba37e7 100644 --- a/src/crypto/defyx/defyx.cpp +++ b/src/crypto/defyx/defyx.cpp @@ -126,8 +126,8 @@ extern "C" { // Finish current hash and fill the scratchpad for the next hash at the same time //rx_blake2b(tempHash, sizeof(tempHash), nextInput, nextInputSize, nullptr, 0); - sipesh(tempHash, sizeof(tempHash), input, inputSize, input, inputSize, 0, 0); - k12(input, inputSize, tempHash); + sipesh(tempHash, sizeof(tempHash), nextInput, nextInputSize, nextInput, nextInputSize, 0, 0); + k12(nextInput, nextInputSize, tempHash); machine->hashAndFill(output, RANDOMX_HASH_SIZE, tempHash); }