BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
CSHA3 Class Reference

A hasher class for SHA3-256. More...

#include <sha3.h>

Collaboration diagram for CSHA3:
[legend]

Public Member Functions

 CSHA3 ()
 
CSHA3Write (const unsigned char *data, size_t len)
 
void Finalize (unsigned char hash[OUTPUT_SIZE])
 
CSHA3Reset ()
 

Static Public Attributes

static const size_t OUTPUT_SIZE = 32
 

Private Attributes

SHA3_256 sha3Hasher
 

Detailed Description

A hasher class for SHA3-256.

Definition at line 14 of file sha3.h.

Constructor & Destructor Documentation

◆ CSHA3()

CSHA3::CSHA3 ( )

Definition at line 25 of file sha3.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Finalize()

void CSHA3::Finalize ( unsigned char  hash[OUTPUT_SIZE])

Definition at line 36 of file sha3.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

CSHA3 & CSHA3::Reset ( )

Definition at line 41 of file sha3.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Write()

CSHA3 & CSHA3::Write ( const unsigned char *  data,
size_t  len 
)

Definition at line 30 of file sha3.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ OUTPUT_SIZE

const size_t CSHA3::OUTPUT_SIZE = 32
static

Definition at line 23 of file sha3.h.

◆ sha3Hasher

SHA3_256 CSHA3::sha3Hasher
private

Definition at line 20 of file sha3.h.


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