Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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::CSHA512 ( )

Definition at line 154 of file sha512.cpp.

References s.

Member Function Documentation

◆ Finalize()

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

◆ Reset()

CSHA512 & CSHA512::Reset ( )

Definition at line 202 of file sha512.cpp.

References bytes, and s.

Referenced by CCrypter::BytesToKeySHA512AES().

◆ Write()

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

Member Data Documentation

◆ buf

unsigned char CSHA512::buf[128]
private

Definition at line 16 of file sha512.h.

Referenced by Write().

◆ bytes

uint64_t CSHA512::bytes
private

Definition at line 17 of file sha512.h.

Referenced by Finalize(), Reset(), and Write().

◆ OUTPUT_SIZE

const size_t CSHA512::OUTPUT_SIZE = 64
static

Definition at line 20 of file sha512.h.

Referenced by CCrypter::BytesToKeySHA512AES(), and HASH_SHA512().

◆ s

uint64_t CSHA512::s[8]
private

Definition at line 15 of file sha512.h.

Referenced by CSHA512(), Finalize(), Reset(), and Write().


The documentation for this class was generated from the following files:
Released under the MIT license