BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
fc::ripemd160 Class Reference

#include <ripemd160.hpp>

Classes

class  encoder
 

Public Member Functions

 ripemd160 ()
 
 ripemd160 (const string &hex_str)
 
string str () const
 
 operator string () const
 
char * data () const
 

Static Public Member Functions

static constexpr size_t data_size ()
 
static ripemd160 hash (const fc::sha512 &h)
 
static ripemd160 hash (const fc::sha256 &h)
 
static ripemd160 hash (const char *d, uint32_t dlen)
 
static ripemd160 hash (const string &)
 
template<typename T >
static ripemd160 hash (const T &t)
 

Public Attributes

boost::endian::little_uint32_buf_t _hash [5]
 

Friends

template<typename T >
T & operator<< (T &ds, const ripemd160 &ep)
 
template<typename T >
T & operator>> (T &ds, ripemd160 &ep)
 
ripemd160 operator<< (const ripemd160 &h1, uint32_t i)
 
bool operator== (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator!= (const ripemd160 &h1, const ripemd160 &h2)
 
ripemd160 operator^ (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator>= (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator> (const ripemd160 &h1, const ripemd160 &h2)
 
bool operator< (const ripemd160 &h1, const ripemd160 &h2)
 

Detailed Description

Definition at line 11 of file ripemd160.hpp.

Constructor & Destructor Documentation

◆ ripemd160() [1/2]

fc::ripemd160::ripemd160 ( )

Definition at line 16 of file ripemd160.cpp.

◆ ripemd160() [2/2]

fc::ripemd160::ripemd160 ( const string &  hex_str)
explicit

Definition at line 17 of file ripemd160.cpp.

Member Function Documentation

◆ data()

char * fc::ripemd160::data ( ) const

Definition at line 26 of file ripemd160.cpp.

◆ data_size()

static constexpr size_t fc::ripemd160::data_size ( )
inlinestaticconstexpr

Definition at line 21 of file ripemd160.hpp.

◆ hash() [1/5]

ripemd160 fc::ripemd160::hash ( const char *  d,
uint32_t  dlen 
)
static

Definition at line 51 of file ripemd160.cpp.

◆ hash() [2/5]

ripemd160 fc::ripemd160::hash ( const fc::sha256 h)
static

Definition at line 47 of file ripemd160.cpp.

◆ hash() [3/5]

ripemd160 fc::ripemd160::hash ( const fc::sha512 h)
static

Definition at line 43 of file ripemd160.cpp.

◆ hash() [4/5]

ripemd160 fc::ripemd160::hash ( const string &  s)
static

Definition at line 56 of file ripemd160.cpp.

◆ hash() [5/5]

template<typename T >
static ripemd160 fc::ripemd160::hash ( const T &  t)
inlinestatic

Definition at line 29 of file ripemd160.hpp.

◆ operator string()

fc::ripemd160::operator string ( ) const
explicit

Definition at line 24 of file ripemd160.cpp.

◆ str()

string fc::ripemd160::str ( ) const

Definition at line 21 of file ripemd160.cpp.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const ripemd160 h1,
const ripemd160 h2 
)
friend

Definition at line 95 of file ripemd160.cpp.

◆ operator<

bool operator< ( const ripemd160 h1,
const ripemd160 h2 
)
friend

Definition at line 92 of file ripemd160.cpp.

◆ operator<< [1/2]

ripemd160 operator<< ( const ripemd160 h1,
uint32_t  i 
)
friend

Definition at line 72 of file ripemd160.cpp.

◆ operator<< [2/2]

template<typename T >
T& operator<< ( T &  ds,
const ripemd160 ep 
)
friend

Definition at line 53 of file ripemd160.hpp.

◆ operator==

bool operator== ( const ripemd160 h1,
const ripemd160 h2 
)
friend

Definition at line 98 of file ripemd160.cpp.

◆ operator>

bool operator> ( const ripemd160 h1,
const ripemd160 h2 
)
friend

Definition at line 89 of file ripemd160.cpp.

◆ operator>=

bool operator>= ( const ripemd160 h1,
const ripemd160 h2 
)
friend

Definition at line 86 of file ripemd160.cpp.

◆ operator>>

template<typename T >
T& operator>> ( T &  ds,
ripemd160 ep 
)
friend

Definition at line 59 of file ripemd160.hpp.

◆ operator^

ripemd160 operator^ ( const ripemd160 h1,
const ripemd160 h2 
)
friend

Definition at line 77 of file ripemd160.cpp.

Member Data Documentation

◆ _hash

boost::endian::little_uint32_buf_t fc::ripemd160::_hash[5]

Definition at line 71 of file ripemd160.hpp.


The documentation for this class was generated from the following files: