1
0
Fork 0
forked from lthn/blockchain

Merge branch 'master' of bbr.github.com:zano-project/zano

This commit is contained in:
cr.zoidberg 2019-03-15 20:21:47 +01:00
commit 44ffffa812

View file

@ -93,14 +93,7 @@ namespace crypto
};
//------------------------------------------------------------------
inline
bool get_wild_keccak2(const std::string& bd, crypto::hash& res, const std::vector<crypto::hash>& scratchpad, uint64_t sz)
{
const uint64_t* int_array_ptr = (const uint64_t*)&scratchpad[0];
size_t int64_sz = sz * 4;
}
//------------------------------------------------------------------
inline
bool get_wild_keccak2(const std::string& bd, crypto::hash& res, const uint64_t*& int_array_ptr_scratch, uint64_t int64_sz)
@ -130,7 +123,16 @@ namespace crypto
});
return true;
}
//------------------------------------------------------------------
inline
bool get_wild_keccak2(const std::string& bd, crypto::hash& res, const std::vector<crypto::hash>& scratchpad, uint64_t sz)
{
const uint64_t* int_array_ptr = (const uint64_t*)&scratchpad[0];
size_t int64_sz = sz * 4;
return get_wild_keccak2(bd, res, int_array_ptr, int64_sz);
}
//------------------------------------------------------------------
template<class t_items_accessor>
bool get_wild_keccak_light(const std::string& bd, crypto::hash& res, t_items_accessor cb_get_item)
{