BitShares-Core  5.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::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

fc::sha512::sha512 ( )

Definition at line 12 of file sha512.cpp.

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

Member Function Documentation

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

Definition at line 22 of file sha512.cpp.

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

Definition at line 19 of file sha512.hpp.

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

Definition at line 34 of file sha512.cpp.

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

Definition at line 25 of file sha512.hpp.

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

Definition at line 17 of file sha512.cpp.

Friends And Related Function Documentation

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

Definition at line 81 of file sha512.cpp.

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

Definition at line 78 of file sha512.cpp.

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

Definition at line 49 of file sha512.hpp.

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

Definition at line 55 of file sha512.cpp.

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

Definition at line 84 of file sha512.cpp.

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

Definition at line 75 of file sha512.cpp.

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

Definition at line 72 of file sha512.cpp.

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

Definition at line 55 of file sha512.hpp.

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

Definition at line 60 of file sha512.cpp.

Member Data Documentation

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: