Bitcoin
|
#include <sha256.h>
Public Member Functions | |
CSHA256 () | |
CSHA256 & | Write (const unsigned char *data, size_t len) |
void | Finalize (unsigned char hash[OUTPUT_SIZE]) |
CSHA256 & | Reset () |
Static Public Attributes | |
static const size_t | OUTPUT_SIZE = 32 |
Private Attributes | |
uint32_t | s [8] |
unsigned char | buf [64] |
uint64_t | bytes |
A hasher class for SHA-256.
CSHA256::CSHA256 | ( | ) |
void CSHA256::Finalize | ( | unsigned char | hash[OUTPUT_SIZE] | ) |
CSHA256 & CSHA256::Reset | ( | ) |
CSHA256 & CSHA256::Write | ( | const unsigned char * | data, |
size_t | len | ||
) |
|
private |
|
private |
|
static |
|
private |