Updates from BitShares FC #22
2 changed files with 0 additions and 8 deletions
|
|
@ -117,8 +117,6 @@ namespace raw {
|
||||||
void to_variant( const sha256& bi, variant& v, uint32_t max_depth );
|
void to_variant( const sha256& bi, variant& v, uint32_t max_depth );
|
||||||
void from_variant( const variant& v, sha256& bi, uint32_t max_depth );
|
void from_variant( const variant& v, sha256& bi, uint32_t max_depth );
|
||||||
|
|
||||||
uint64_t hash64(const char* buf, size_t len);
|
|
||||||
|
|
||||||
} // fc
|
} // fc
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -205,12 +205,6 @@ namespace fc {
|
||||||
memcpy( &bi, ve.data(), std::min<size_t>(ve.size(),sizeof(bi)) );
|
memcpy( &bi, ve.data(), std::min<size_t>(ve.size(),sizeof(bi)) );
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t hash64(const char* buf, size_t len)
|
|
||||||
{
|
|
||||||
sha256 sha_value = sha256::hash(buf,len);
|
|
||||||
return sha_value._hash[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
unsigned int hmac<sha256>::internal_block_size() const { return 64; }
|
unsigned int hmac<sha256>::internal_block_size() const { return 64; }
|
||||||
} //end namespace fc
|
} //end namespace fc
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue