Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 ()
uint64_t Size () const

Static Public Attributes

static constexpr size_t OUTPUT_SIZE = 64

Private Attributes

uint64_t s [8]
unsigned char buf [128]
uint64_t bytes {0}

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.

Here is the caller graph for this function:

Member Function Documentation

◆ Finalize()

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:

◆ Reset()

CSHA512 & CSHA512::Reset ( )

Definition at line 202 of file sha512.cpp.

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

◆ Size()

uint64_t CSHA512::Size ( ) const
inline

Definition at line 26 of file sha512.h.

◆ 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]
private

Definition at line 16 of file sha512.h.

◆ bytes

uint64_t CSHA512::bytes {0}
private

Definition at line 17 of file sha512.h.

◆ OUTPUT_SIZE

size_t CSHA512::OUTPUT_SIZE = 64
staticconstexpr

Definition at line 20 of file sha512.h.

◆ s

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: