Class TempLat::KeccakHashBareClass
ClassList > TempLat > KeccakHashBareClass
A class which computes the keccak hash of one string, which is passed to the method compute. Can compute only once, then keeps the state. Throws an exception if compute is called twice. More...
#include <keccakhashbareclass.h>
Public Functions
| Type | Name |
|---|---|
| KeccakHashBareClass () Initialize the states, 0 and 0..n. |
|
| void | compute (const std::vector< unsigned char > & data) Hash an input array. |
| void | compute (const std::string & data) Hash an input array as String. |
| operator int64_t () const |
|
| string () const |
|
| operator uint64_t () const |
|
| std::string | toString () const |
| uint64_t | toUnsignedInt64 () const |
Detailed Description
Unit test: ctest -R test-keccakhashbareclass
Public Functions Documentation
function KeccakHashBareClass
Initialize the states, 0 and 0..n.
function compute [1/2]
Hash an input array.
function compute [2/2]
Hash an input array as String.
function operator int64_t
function string
function operator uint64_t
function toString
function toUnsignedInt64
Friends Documentation
friend operator<<
inline std::ostream & TempLat::KeccakHashBareClass::operator<< (
std::ostream & stream,
KeccakHashBareClass kck
)
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/hash/keccakhashbareclass.h