BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
fc::sha1 Class Reference

#include <sha1.hpp>

Classes

class  encoder
 

Public Member Functions

 sha1 ()
 
 sha1 (const std::string &hex_str)
 
std::string str () const
 
 operator std::string () const
 
char * data () const
 

Static Public Member Functions

static constexpr size_t data_size ()
 
static sha1 hash (const char *d, uint32_t dlen)
 
static sha1 hash (const std::string &)
 
template<typename T >
static sha1 hash (const T &t)
 

Public Attributes

boost::endian::little_uint32_buf_t _hash [5]
 

Friends

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

Detailed Description

Definition at line 10 of file sha1.hpp.

Constructor & Destructor Documentation

fc::sha1::sha1 ( )

Definition at line 13 of file sha1.cpp.

fc::sha1::sha1 ( const std::string &  hex_str)
explicit

Member Function Documentation

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

Definition at line 23 of file sha1.cpp.

static constexpr size_t fc::sha1::data_size ( )
inlinestatic

Definition at line 20 of file sha1.hpp.

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

Definition at line 35 of file sha1.cpp.

static sha1 fc::sha1::hash ( const std::string &  )
static
template<typename T >
static sha1 fc::sha1::hash ( const T &  t)
inlinestatic

Definition at line 26 of file sha1.hpp.

fc::sha1::operator std::string ( ) const
string fc::sha1::str ( ) const

Definition at line 18 of file sha1.cpp.

Friends And Related Function Documentation

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

Definition at line 79 of file sha1.cpp.

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

Definition at line 76 of file sha1.cpp.

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

Definition at line 50 of file sha1.hpp.

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

Definition at line 56 of file sha1.cpp.

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

Definition at line 82 of file sha1.cpp.

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

Definition at line 73 of file sha1.cpp.

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

Definition at line 70 of file sha1.cpp.

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

Definition at line 56 of file sha1.hpp.

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

Definition at line 61 of file sha1.cpp.

Member Data Documentation

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

Definition at line 68 of file sha1.hpp.


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