3#include <openssl/sha.h>
4#include <openssl/ripemd.h>
19 if( bytes_written <
sizeof(
_hash) )
26ripemd160::operator
string()
const {
return str(); }
46 return hash( (
const char*)&h,
sizeof(h) );
50 return hash( (
const char*)&h,
sizeof(h) );
58 return hash(
s.c_str(),
s.size() );
62 RIPEMD160_Update( &my->ctx,
d, dlen);
70 RIPEMD160_Init( &my->ctx);
75 fc::detail::shift_l( h1.
data(), result.data(), result.data_size(), i );
105 v = std::vector<char>( (
const char*)&bi, ((
const char*)&bi) +
sizeof(bi) );
109 std::vector<char> ve = v.
as< std::vector<char> >();
115 memset( &bi,
char(0),
sizeof(bi) );
void write(const char *d, uint32_t dlen)
friend bool operator>(const ripemd160 &h1, const ripemd160 &h2)
friend bool operator!=(const ripemd160 &h1, const ripemd160 &h2)
friend bool operator>=(const ripemd160 &h1, const ripemd160 &h2)
friend bool operator<(const ripemd160 &h1, const ripemd160 &h2)
friend ripemd160 operator^(const ripemd160 &h1, const ripemd160 &h2)
static ripemd160 hash(const fc::sha512 &h)
friend bool operator==(const ripemd160 &h1, const ripemd160 &h2)
friend T & operator<<(T &ds, const ripemd160 &ep)
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
const T & min(const T &a, const T &b)
fc::string to_hex(const char *d, uint32_t s)
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
memset(pInfo->slotDescription, ' ', 64)
memcpy((char *) pInfo->slotDescription, s, l)