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::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

◆ sha1() [1/2]

fc::sha1::sha1 ( )

Definition at line 13 of file sha1.cpp.

◆ sha1() [2/2]

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

Definition at line 14 of file sha1.cpp.

Member Function Documentation

◆ data()

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

Definition at line 23 of file sha1.cpp.

◆ data_size()

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

Definition at line 20 of file sha1.hpp.

◆ hash() [1/3]

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

Definition at line 35 of file sha1.cpp.

◆ hash() [2/3]

sha1 fc::sha1::hash ( const std::string &  s)
static

Definition at line 40 of file sha1.cpp.

◆ hash() [3/3]

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

Definition at line 26 of file sha1.hpp.

◆ operator std::string()

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

Definition at line 21 of file sha1.cpp.

◆ str()

string fc::sha1::str ( ) const

Definition at line 18 of file sha1.cpp.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 79 of file sha1.cpp.

◆ operator<

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

Definition at line 76 of file sha1.cpp.

◆ operator<< [1/2]

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

Definition at line 56 of file sha1.cpp.

◆ operator<< [2/2]

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

Definition at line 50 of file sha1.hpp.

◆ operator==

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

Definition at line 82 of file sha1.cpp.

◆ operator>

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

Definition at line 73 of file sha1.cpp.

◆ operator>=

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

Definition at line 70 of file sha1.cpp.

◆ operator>>

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

Definition at line 56 of file sha1.hpp.

◆ operator^

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

Definition at line 61 of file sha1.cpp.

Member Data Documentation

◆ _hash

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: