4#include <openssl/sha.h>
15 if( bytes_written <
sizeof(
_hash) )
22 sha512::operator
string()
const {
return str(); }
43 return hash(
s.c_str(),
s.size() );
47 SHA512_Update( &my->ctx,
d, dlen);
55 SHA512_Init( &my->ctx);
60 fc::detail::shift_l( h1.
data(), result.data(), result.data_size(), i );
93 v = std::vector<char>( (
const char*)&bi, ((
const char*)&bi) +
sizeof(bi) );
97 std::vector<char> ve = v.
as< std::vector<char> >();
103 memset( &bi,
char(0),
sizeof(bi) );
107 unsigned int hmac<sha512>::internal_block_size()
const {
return 128; }
void write(const char *d, uint32_t dlen)
friend sha512 operator^(const sha512 &h1, const sha512 &h2)
friend bool operator<(const sha512 &h1, const sha512 &h2)
friend bool operator>=(const sha512 &h1, const sha512 &h2)
friend bool operator!=(const sha512 &h1, const sha512 &h2)
friend bool operator==(const sha512 &h1, const sha512 &h2)
friend T & operator<<(T &ds, const sha512 &ep)
friend bool operator>(const sha512 &h1, const sha512 &h2)
static sha512 hash(const char *d, uint32_t dlen)
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)