Added test hashes for self test.

This commit is contained in:
XMRig 2018-04-03 17:19:01 +07:00
parent d4123b8fa6
commit 26e1b14020
3 changed files with 13 additions and 3 deletions

View file

@ -66,7 +66,7 @@ const static uint8_t test_output_v0_lite[64] = {
}; };
// AEON v2 // AEON v7
const static uint8_t test_output_v1_lite[64] = { const static uint8_t test_output_v1_lite[64] = {
0x87, 0xC4, 0xE5, 0x70, 0x65, 0x3E, 0xB4, 0xC2, 0xB4, 0x2B, 0x7A, 0x0D, 0x54, 0x65, 0x59, 0x45, 0x87, 0xC4, 0xE5, 0x70, 0x65, 0x3E, 0xB4, 0xC2, 0xB4, 0x2B, 0x7A, 0x0D, 0x54, 0x65, 0x59, 0x45,
0x2D, 0xFA, 0xB5, 0x73, 0xB8, 0x2E, 0xC5, 0x2F, 0x15, 0x2B, 0x7F, 0xF9, 0x8E, 0x79, 0x44, 0x6F, 0x2D, 0xFA, 0xB5, 0x73, 0xB8, 0x2E, 0xC5, 0x2F, 0x15, 0x2B, 0x7F, 0xF9, 0x8E, 0x79, 0x44, 0x6F,
@ -76,4 +76,14 @@ const static uint8_t test_output_v1_lite[64] = {
#endif #endif
#ifndef XMRIG_NO_SUMO
const static uint8_t test_output_heavy[64] = {
0x4D, 0x94, 0x7D, 0xD6, 0xDB, 0x6E, 0x07, 0x48, 0x26, 0x4A, 0x51, 0x2E, 0xAC, 0xF3, 0x25, 0x4A,
0x1F, 0x1A, 0xA2, 0x5B, 0xFC, 0x0A, 0xAD, 0x82, 0xDE, 0xA8, 0x99, 0x96, 0x88, 0x52, 0xD2, 0x7D,
0x99, 0x83, 0xF2, 0x1B, 0xDF, 0x20, 0x10, 0xA8, 0xD7, 0x07, 0xBB, 0x2F, 0x14, 0xD7, 0x86, 0x64,
0xBB, 0xE1, 0x18, 0x7F, 0x55, 0x01, 0x4B, 0x39, 0xE5, 0xF3, 0xD6, 0x93, 0x28, 0xE4, 0x8F, 0xC2
};
#endif
#endif /* __CRYPTONIGHT_TEST_H__ */ #endif /* __CRYPTONIGHT_TEST_H__ */

View file

@ -144,7 +144,7 @@ bool DoubleWorker::selfTest()
} }
# endif # endif
return true; return memcmp(m_hash, test_output_heavy, 64) == 0;
} }

View file

@ -116,7 +116,7 @@ bool SingleWorker::selfTest()
} }
# endif # endif
return true; return memcmp(m_result.result, test_output_heavy, 32) == 0;
} }