Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

A hasher class for Bitcoin's 256-bit hash (double SHA-256). More...

#include <hash.h>

+ Collaboration diagram for CHash256:

Public Member Functions

void Finalize (unsigned char hash[OUTPUT_SIZE])
 
CHash256Write (const unsigned char *data, size_t len)
 
CHash256Reset ()
 

Static Public Attributes

static const size_t OUTPUT_SIZE = CSHA256::OUTPUT_SIZE
 

Private Attributes

CSHA256 sha
 

Detailed Description

A hasher class for Bitcoin's 256-bit hash (double SHA-256).

Definition at line 35 of file hash.h.

Member Function Documentation

◆ Finalize()

void CHash256::Finalize ( unsigned char  hash[OUTPUT_SIZE])
inline

◆ Reset()

CHash256& CHash256::Reset ( )
inline

Definition at line 52 of file hash.h.

References CSHA256::Reset(), and sha.

◆ Write()

Member Data Documentation

◆ OUTPUT_SIZE

const size_t CHash256::OUTPUT_SIZE = CSHA256::OUTPUT_SIZE
static

Definition at line 39 of file hash.h.

Referenced by HASH().

◆ sha

CSHA256 CHash256::sha
private

Definition at line 37 of file hash.h.

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


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