1
0
Fork 0
forked from lthn/blockchain

commented unused code

This commit is contained in:
crypro.zoidberg 2019-01-08 19:03:42 +03:00
parent 2152d1588a
commit 109e815f66

View file

@ -121,32 +121,32 @@ protected:
std::vector<crypto::hash> m_scratchpad_vec; std::vector<crypto::hash> m_scratchpad_vec;
}; };
//
template<int scratchpad_size> // template<int scratchpad_size>
class test_wild_keccak2 : public test_keccak_base // class test_wild_keccak2 : public test_keccak_base
{ // {
public: // public:
bool init() // bool init()
{ // {
m_scratchpad_vec.resize(scratchpad_size / sizeof(crypto::hash)); // m_scratchpad_vec.resize(scratchpad_size / sizeof(crypto::hash));
for (auto& h : m_scratchpad_vec) // for (auto& h : m_scratchpad_vec)
h = crypto::rand<crypto::hash>(); // h = crypto::rand<crypto::hash>();
//
return test_keccak_base::init(); // return test_keccak_base::init();
} // }
//
bool test() // bool test()
{ // {
pretest(); // pretest();
//
crypto::hash h2; // crypto::hash h2;
crypto::wild_keccak_dbl_opt(reinterpret_cast<const uint8_t*>(&m_buff[0]), m_buff.size(), reinterpret_cast<uint8_t*>(&h2), sizeof(h2), (const UINT64*)&m_scratchpad_vec[0], m_scratchpad_vec.size() * 4); // crypto::wild_keccak_dbl_opt(reinterpret_cast<const uint8_t*>(&m_buff[0]), m_buff.size(), reinterpret_cast<uint8_t*>(&h2), sizeof(h2), (const UINT64*)&m_scratchpad_vec[0], m_scratchpad_vec.size() * 4);
LOG_PRINT_L4("HASH:" << h2); // LOG_PRINT_L4("HASH:" << h2);
return true; // return true;
} // }
protected: // protected:
std::vector<crypto::hash> m_scratchpad_vec; // std::vector<crypto::hash> m_scratchpad_vec;
}; // };
#ifdef _DEBUG #ifdef _DEBUG
#define max_measere_scratchpad 100000 #define max_measere_scratchpad 100000