Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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

#include <hash.h>

+ Collaboration diagram for CHash160:

Public Member Functions

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

Static Public Attributes

static const size_t OUTPUT_SIZE = CRIPEMD160::OUTPUT_SIZE
 

Private Attributes

CSHA256 sha
 

Detailed Description

A hasher class for Bitcoin's 160-bit hash (SHA-256 + RIPEMD-160).

Definition at line 59 of file hash.h.

Member Function Documentation

◆ Finalize()

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

Definition at line 65 of file hash.h.

References CRIPEMD160::Finalize(), CSHA256::Finalize(), CSHA256::OUTPUT_SIZE, sha, and CRIPEMD160::Write().

Referenced by Hash160().

◆ Reset()

CHash160& CHash160::Reset ( )
inline

Definition at line 76 of file hash.h.

References CSHA256::Reset(), and sha.

◆ Write()

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

Definition at line 71 of file hash.h.

References sha, and CSHA256::Write().

Referenced by EvalScript(), and Hash160().

Member Data Documentation

◆ OUTPUT_SIZE

const size_t CHash160::OUTPUT_SIZE = CRIPEMD160::OUTPUT_SIZE
static

Definition at line 63 of file hash.h.

◆ sha

CSHA256 CHash160::sha
private

Definition at line 61 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