mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 18:11:05 +00:00
Add reference hashes for cn/xao and cn/rto.
This commit is contained in:
parent
25bac30862
commit
2702b6ffc8
2 changed files with 45 additions and 12 deletions
|
@ -114,6 +114,36 @@ const static uint8_t test_output_msr[160] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Alloy (XAO)
|
||||||
|
const static uint8_t test_output_xao[160] = {
|
||||||
|
0x9A, 0x29, 0xD0, 0xC4, 0xAF, 0xDC, 0x63, 0x9B, 0x65, 0x53, 0xB1, 0xC8, 0x37, 0x35, 0x11, 0x4C,
|
||||||
|
0x5D, 0x77, 0x16, 0x21, 0x42, 0x97, 0x5C, 0xB8, 0x50, 0xC0, 0xA5, 0x1F, 0x64, 0x07, 0xBD, 0x33,
|
||||||
|
0xF1, 0xC9, 0x98, 0x40, 0x42, 0xDE, 0x39, 0xD1, 0xBA, 0x2D, 0xAD, 0xEC, 0xFE, 0xEA, 0xD8, 0x46,
|
||||||
|
0x56, 0x1C, 0x32, 0x90, 0x42, 0x63, 0x10, 0x80, 0xD7, 0x01, 0xE4, 0xE6, 0x20, 0xB3, 0x60, 0x45,
|
||||||
|
0x05, 0xE5, 0xC2, 0x18, 0xCD, 0x07, 0xA4, 0x40, 0x42, 0x91, 0xE2, 0xA4, 0x52, 0x54, 0x79, 0xBA,
|
||||||
|
0xCD, 0x7E, 0x61, 0x2D, 0x7F, 0x7E, 0x69, 0x5E, 0xD7, 0xC0, 0x06, 0x65, 0xD7, 0xA1, 0xB8, 0xB8,
|
||||||
|
0x1E, 0x31, 0x1C, 0xD3, 0xB7, 0xBC, 0x78, 0x3C, 0x01, 0xAF, 0x77, 0xAA, 0xF3, 0x0F, 0x4C, 0xF2,
|
||||||
|
0xD1, 0x8B, 0x58, 0xC7, 0xEB, 0x99, 0x91, 0x53, 0x43, 0x71, 0x47, 0x99, 0x9E, 0x04, 0xA4, 0xEA,
|
||||||
|
0xB8, 0xA3, 0xB0, 0x9E, 0x09, 0xF5, 0x57, 0x5C, 0xCF, 0x8A, 0xC6, 0xCA, 0x88, 0x51, 0x9A, 0x01,
|
||||||
|
0x31, 0xCC, 0x0C, 0xA6, 0x53, 0xB5, 0x5F, 0xFD, 0x7D, 0x29, 0x3A, 0x35, 0xE9, 0x0E, 0x25, 0x6C
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Arto (RTO)
|
||||||
|
const static uint8_t test_output_rto[160] = {
|
||||||
|
0x82, 0x66, 0x1E, 0x1C, 0x6E, 0x64, 0x36, 0x66, 0x84, 0x06, 0x32, 0x7A, 0x9B, 0xB1, 0x13, 0x19,
|
||||||
|
0xA5, 0x56, 0x16, 0x15, 0xDF, 0xEC, 0x1C, 0x9E, 0xE3, 0x88, 0x4A, 0x6C, 0x1C, 0xEB, 0x76, 0xA5,
|
||||||
|
0xB3, 0xFB, 0xF4, 0x3F, 0x2B, 0x6A, 0x3A, 0x39, 0xA3, 0x6E, 0x08, 0x33, 0x67, 0x90, 0x31, 0xB9,
|
||||||
|
0x3F, 0x27, 0xE4, 0x79, 0x32, 0x61, 0x6B, 0x5C, 0x8A, 0xF8, 0xAF, 0xC0, 0x60, 0xFD, 0x83, 0xB7,
|
||||||
|
0x11, 0x11, 0x89, 0xB4, 0xDC, 0xAE, 0x40, 0xC8, 0x64, 0xAA, 0x4D, 0x19, 0x23, 0x7B, 0xD3, 0x27,
|
||||||
|
0xB2, 0x0F, 0xA7, 0x50, 0x7D, 0xCA, 0xF5, 0x03, 0x06, 0xB2, 0x26, 0x62, 0xF3, 0x68, 0x2D, 0x30,
|
||||||
|
0x6F, 0x93, 0x1E, 0xFF, 0xCD, 0x85, 0x40, 0x28, 0x5F, 0xC3, 0x8C, 0x76, 0x51, 0x9E, 0xD5, 0x06,
|
||||||
|
0x32, 0xD6, 0x35, 0x83, 0xF6, 0x3B, 0x54, 0x4F, 0xA1, 0x9C, 0x13, 0xD8, 0xC4, 0x0E, 0x01, 0x2F,
|
||||||
|
0x29, 0xDB, 0x8C, 0x1C, 0xB7, 0x06, 0x86, 0x79, 0x6D, 0xFF, 0x9F, 0x89, 0x3B, 0x3A, 0xA5, 0x79,
|
||||||
|
0xE7, 0x81, 0x4E, 0x2A, 0xBD, 0x62, 0xC1, 0x1B, 0x7C, 0xB9, 0x33, 0x7B, 0xEE, 0x95, 0x80, 0xB3
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifndef XMRIG_NO_AEON
|
#ifndef XMRIG_NO_AEON
|
||||||
const static uint8_t test_output_v0_lite[160] = {
|
const static uint8_t test_output_v0_lite[160] = {
|
||||||
0x36, 0x95, 0xB4, 0xB5, 0x3B, 0xB0, 0x03, 0x58, 0xB0, 0xAD, 0x38, 0xDC, 0x16, 0x0F, 0xEB, 0x9E,
|
0x36, 0x95, 0xB4, 0xB5, 0x3B, 0xB0, 0x03, 0x58, 0xB0, 0xAD, 0x38, 0xDC, 0x16, 0x0F, 0xEB, 0x9E,
|
||||||
|
|
|
@ -50,25 +50,28 @@ MultiWorker<N>::~MultiWorker()
|
||||||
template<size_t N>
|
template<size_t N>
|
||||||
bool MultiWorker<N>::selfTest()
|
bool MultiWorker<N>::selfTest()
|
||||||
{
|
{
|
||||||
if (m_thread->algorithm() == xmrig::CRYPTONIGHT) {
|
using namespace xmrig;
|
||||||
return verify(xmrig::VARIANT_0, test_output_v0) &&
|
|
||||||
verify(xmrig::VARIANT_1, test_output_v1) &&
|
if (m_thread->algorithm() == CRYPTONIGHT) {
|
||||||
verify(xmrig::VARIANT_XTL, test_output_xtl) &&
|
return verify(VARIANT_0, test_output_v0) &&
|
||||||
verify(xmrig::VARIANT_MSR, test_output_msr);
|
verify(VARIANT_1, test_output_v1) &&
|
||||||
|
verify(VARIANT_XTL, test_output_xtl) &&
|
||||||
|
verify(VARIANT_MSR, test_output_msr) &&
|
||||||
|
verify(VARIANT_XAO, test_output_xao) &&
|
||||||
|
verify(VARIANT_RTO, test_output_rto);
|
||||||
}
|
}
|
||||||
|
|
||||||
# ifndef XMRIG_NO_AEON
|
# ifndef XMRIG_NO_AEON
|
||||||
if (m_thread->algorithm() == xmrig::CRYPTONIGHT_LITE) {
|
if (m_thread->algorithm() == CRYPTONIGHT_LITE) {
|
||||||
return verify(xmrig::VARIANT_0, test_output_v0_lite) &&
|
return verify(VARIANT_0, test_output_v0_lite) &&
|
||||||
verify(xmrig::VARIANT_1, test_output_v1_lite) &&
|
verify(VARIANT_1, test_output_v1_lite);
|
||||||
verify(xmrig::VARIANT_TUBE, test_output_ipbc_lite);
|
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifndef XMRIG_NO_SUMO
|
# ifndef XMRIG_NO_SUMO
|
||||||
if (m_thread->algorithm() == xmrig::CRYPTONIGHT_HEAVY) {
|
if (m_thread->algorithm() == CRYPTONIGHT_HEAVY) {
|
||||||
return verify(xmrig::VARIANT_0, test_output_v0_heavy) &&
|
return verify(VARIANT_0, test_output_v0_heavy) &&
|
||||||
verify(xmrig::VARIANT_XHV, test_output_xhv_heavy);
|
verify(VARIANT_XHV, test_output_xhv_heavy);
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue