Bitcoin Core  0.18.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 constexpr 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::CSHA512 ( )

Definition at line 154 of file sha512.cpp.

Member Function Documentation

◆ Finalize()

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

Definition at line 185 of file sha512.cpp.

Here is the caller graph for this function:

◆ Reset()

CSHA512 & CSHA512::Reset ( )

Definition at line 202 of file sha512.cpp.

◆ Write()

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

◆ buf

unsigned char CSHA512::buf[128]

Definition at line 16 of file sha512.h.

◆ bytes

uint64_t CSHA512::bytes

Definition at line 17 of file sha512.h.


constexpr size_t CSHA512::OUTPUT_SIZE = 64

Definition at line 20 of file sha512.h.

◆ s

uint64_t CSHA512::s[8]

Definition at line 15 of file sha512.h.

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