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 () | |
CSHA256 & | Write (const unsigned char *data, size_t len) |
void | Finalize (unsigned char hash[OUTPUT_SIZE]) |
CSHA256 & | Reset () |
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
Constructor & Destructor Documentation
◆ CSHA256()
CSHA256::CSHA256 | ( | ) |
Definition at line 643 of file sha256.cpp.
References s.
Member Function Documentation
◆ Finalize()
void CSHA256::Finalize | ( | unsigned char | hash[OUTPUT_SIZE] | ) |
Definition at line 674 of file sha256.cpp.
References bytes, s, Write(), WriteBE32(), and WriteBE64().
Referenced by CheckInputs(), CHMAC_SHA256::CHMAC_SHA256(), CBlockHeaderAndShortTxIDs::FillShortTxIDSelector(), CHMAC_SHA256::Finalize(), CHash256::Finalize(), CHash160::Finalize(), and CDeterministicMNState::UpdateConfirmedHash().
◆ Reset()
CSHA256 & CSHA256::Reset | ( | ) |
Definition at line 691 of file sha256.cpp.
Referenced by CHash256::Finalize(), CHash256::Reset(), and CHash160::Reset().
◆ Write()
CSHA256 & CSHA256::Write | ( | const unsigned char * | data, |
size_t | len | ||
) |
Definition at line 648 of file sha256.cpp.
References buf, bytes, memcpy(), s, and sha256_shani::Transform().
Referenced by CMnemonic::Check(), CheckInputs(), CHMAC_SHA256::CHMAC_SHA256(), EvalScript(), CBlockHeaderAndShortTxIDs::FillShortTxIDSelector(), Finalize(), CHMAC_SHA256::Finalize(), CHash256::Finalize(), CMnemonic::FromData(), HASH_SHA256(), HASH_SHA256_0032b(), CWallet::IsFullyMixed(), CNetAddr::SetInternal(), CDeterministicMNState::UpdateConfirmedHash(), CHMAC_SHA256::Write(), CHash256::Write(), and CHash160::Write().
Member Data Documentation
◆ buf
|
private |
◆ bytes
|
private |
Definition at line 18 of file sha256.h.
Referenced by Finalize(), Reset(), and Write().
◆ OUTPUT_SIZE
|
static |
Definition at line 21 of file sha256.h.
Referenced by CHash256::Finalize(), CHash160::Finalize(), HASH_DSHA256(), and HASH_SHA256().
◆ s
|
private |
The documentation for this class was generated from the following files:
- src/crypto/sha256.h
- src/crypto/sha256.cpp