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::sha512 Class Reference

#include <sha512.hpp>

Classes

class  encoder
 

Public Member Functions

 sha512 ()
 
 sha512 (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 sha512 hash (const char *d, uint32_t dlen)
 
static sha512 hash (const std::string &)
 
template<typename T >
static sha512 hash (const T &t)
 

Public Attributes

boost::endian::little_uint64_buf_t _hash [8]
 

Friends

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

Detailed Description

Definition at line 9 of file sha512.hpp.

Constructor & Destructor Documentation

◆ sha512() [1/2]

fc::sha512::sha512 ( )

Definition at line 12 of file sha512.cpp.

◆ sha512() [2/2]

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

Definition at line 13 of file sha512.cpp.

Member Function Documentation

◆ data()

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

Definition at line 22 of file sha512.cpp.

◆ data_size()

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

Definition at line 19 of file sha512.hpp.

◆ hash() [1/3]

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

Definition at line 34 of file sha512.cpp.

◆ hash() [2/3]

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

Definition at line 39 of file sha512.cpp.

◆ hash() [3/3]

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

Definition at line 25 of file sha512.hpp.

◆ operator std::string()

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

Definition at line 20 of file sha512.cpp.

◆ str()

string fc::sha512::str ( ) const

Definition at line 17 of file sha512.cpp.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 81 of file sha512.cpp.

◆ operator<

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

Definition at line 78 of file sha512.cpp.

◆ operator<< [1/2]

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

Definition at line 55 of file sha512.cpp.

◆ operator<< [2/2]

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

Definition at line 49 of file sha512.hpp.

◆ operator==

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

Definition at line 84 of file sha512.cpp.

◆ operator>

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

Definition at line 75 of file sha512.cpp.

◆ operator>=

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

Definition at line 72 of file sha512.cpp.

◆ operator>>

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

Definition at line 55 of file sha512.hpp.

◆ operator^

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

Definition at line 60 of file sha512.cpp.

Member Data Documentation

◆ _hash

boost::endian::little_uint64_buf_t fc::sha512::_hash[8]

Definition at line 67 of file sha512.hpp.


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