4#include <openssl/sha.h>
15 if( bytes_written <
sizeof(
_hash) )
22 sha224::operator
string()
const {
return str(); }
42 return hash(
s.c_str(),
s.size() );
46 SHA224_Update( &my->ctx,
d, dlen);
54 SHA224_Init( &my->ctx);
59 fc::detail::shift_l( h1.
data(), result.data(), result.data_size(), i );
86 v = std::vector<char>( (
const char*)&bi, ((
const char*)&bi) +
sizeof(bi) );
90 std::vector<char> ve = v.
as< std::vector<char> >();
96 memset( &bi,
char(0),
sizeof(bi) );
100 unsigned int hmac<sha224>::internal_block_size()
const {
return 64; }
void write(const char *d, uint32_t dlen)
friend bool operator>(const sha224 &h1, const sha224 &h2)
static sha224 hash(const char *d, uint32_t dlen)
friend bool operator==(const sha224 &h1, const sha224 &h2)
friend bool operator<(const sha224 &h1, const sha224 &h2)
friend bool operator!=(const sha224 &h1, const sha224 &h2)
friend T & operator<<(T &ds, const sha224 &ep)
friend sha224 operator^(const sha224 &h1, const sha224 &h2)
friend bool operator>=(const sha224 &h1, const sha224 &h2)
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)