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

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

#include <sha512.h>

Public Member Functions

 CSHA512 ()
 
CSHA512Write (const unsigned char *data, size_t len)
 
void Finalize (unsigned char hash[OUTPUT_SIZE])
 
CSHA512Reset ()
 

Static Public Attributes

static const size_t OUTPUT_SIZE = 64
 

Private Attributes

uint64_t s [8]
 
unsigned char buf [128]
 
uint64_t bytes
 

Detailed Description

A hasher class for SHA-512.

Definition at line 12 of file sha512.h.

Constructor & Destructor Documentation

CSHA512::CSHA512 ( )

Definition at line 154 of file sha512.cpp.

Member Function Documentation

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

Definition at line 185 of file sha512.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CSHA512 & CSHA512::Reset ( )

Definition at line 202 of file sha512.cpp.

Here is the caller graph for this function:

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

Definition at line 159 of file sha512.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned char CSHA512::buf[128]
private

Definition at line 16 of file sha512.h.

uint64_t CSHA512::bytes
private

Definition at line 17 of file sha512.h.

const size_t CSHA512::OUTPUT_SIZE = 64
static

Definition at line 20 of file sha512.h.

uint64_t CSHA512::s[8]
private

Definition at line 15 of file sha512.h.


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