Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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

#include <sha256.h>

Public Member Functions

 CSHA256 ()
 
CSHA256Write (const unsigned char *data, size_t len)
 
void Finalize (unsigned char hash[OUTPUT_SIZE])
 
CSHA256Reset ()
 

Static Public Attributes

static const size_t OUTPUT_SIZE = 32
 

Private Attributes

uint32_t s [8]
 
unsigned char buf [64]
 
uint64_t bytes
 

Detailed Description

A hasher class for SHA-256.

Definition at line 13 of file sha256.h.

Constructor & Destructor Documentation

◆ CSHA256()

CSHA256::CSHA256 ( )

Definition at line 643 of file sha256.cpp.

References s.

Member Function Documentation

◆ Finalize()

◆ Reset()

CSHA256 & CSHA256::Reset ( )

Definition at line 691 of file sha256.cpp.

References bytes, and s.

Referenced by CHash256::Finalize(), CHash256::Reset(), and CHash160::Reset().

◆ Write()

Member Data Documentation

◆ buf

unsigned char CSHA256::buf[64]
private

Definition at line 17 of file sha256.h.

Referenced by Write().

◆ bytes

uint64_t CSHA256::bytes
private

Definition at line 18 of file sha256.h.

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

◆ OUTPUT_SIZE

const size_t CSHA256::OUTPUT_SIZE = 32
static

Definition at line 21 of file sha256.h.

Referenced by CHash256::Finalize(), CHash160::Finalize(), HASH_DSHA256(), and HASH_SHA256().

◆ s

uint32_t CSHA256::s[8]
private

Definition at line 16 of file sha256.h.

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


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