Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
CSHA256 Class Reference

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

#include <sha256.h>

Public Member Functions

 CSHA256 ()
 
CSHA256Write (const unsigned char *data, size_t len)
 
void Finalize (unsigned char hash[OUTPUT_SIZE])
 
CSHA256Reset ()
 

Static Public Attributes

static const size_t OUTPUT_SIZE = 32
 

Private Attributes

uint32_t s [8]
 
unsigned char buf [64]
 
uint64_t bytes
 

Detailed Description

A hasher class for SHA-256.

Definition at line 13 of file sha256.h.

Constructor & Destructor Documentation

CSHA256::CSHA256 ( )

Definition at line 196 of file sha256.cpp.

Member Function Documentation

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

Definition at line 227 of file sha256.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CSHA256 & CSHA256::Reset ( )

Definition at line 244 of file sha256.cpp.

Here is the caller graph for this function:

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

Definition at line 201 of file sha256.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned char CSHA256::buf[64]
private

Definition at line 17 of file sha256.h.

uint64_t CSHA256::bytes
private

Definition at line 18 of file sha256.h.

const size_t CSHA256::OUTPUT_SIZE = 32
static

Definition at line 21 of file sha256.h.

uint32_t CSHA256::s[8]
private

Definition at line 16 of file sha256.h.


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