3#include <openssl/sha.h>
16 if( bytes_written <
sizeof(
_hash) )
23sha1::operator
string()
const {
return str(); }
44 return hash(
s.c_str(),
s.size() );
48 SHA1_Update( &my->ctx,
d, dlen);
61 fc::detail::shift_l( h1.
data(), result.data(), result.data_size(), i );
91 v = std::vector<char>( (
const char*)&bi, ((
const char*)&bi) +
sizeof(bi) );
95 std::vector<char> ve = v.
as< std::vector<char> >();
101 memset( &bi,
char(0),
sizeof(bi) );
void write(const char *d, uint32_t dlen)
friend sha1 operator^(const sha1 &h1, const sha1 &h2)
friend T & operator<<(T &ds, const sha1 &ep)
friend bool operator>(const sha1 &h1, const sha1 &h2)
friend bool operator<(const sha1 &h1, const sha1 &h2)
friend bool operator==(const sha1 &h1, const sha1 &h2)
friend bool operator>=(const sha1 &h1, const sha1 &h2)
static sha1 hash(const char *d, uint32_t dlen)
friend bool operator!=(const sha1 &h1, const sha1 &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)