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 () | |
CSHA512 & | Write (const unsigned char *data, size_t len) |
void | Finalize (unsigned char hash[OUTPUT_SIZE]) |
CSHA512 & | Reset () |
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
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] | ) |
Definition at line 185 of file sha512.cpp.
References bytes, s, Write(), and WriteBE64().
Referenced by AddDataToRng(), CCrypter::BytesToKeySHA512AES(), CHMAC_SHA512::CHMAC_SHA512(), CHMAC_SHA512::Finalize(), and GetStrongRandBytes().
◆ Reset()
CSHA512 & CSHA512::Reset | ( | ) |
Definition at line 202 of file sha512.cpp.
Referenced by CCrypter::BytesToKeySHA512AES().
◆ Write()
CSHA512 & CSHA512::Write | ( | const unsigned char * | data, |
size_t | len | ||
) |
Definition at line 159 of file sha512.cpp.
References buf, bytes, memcpy(), s, and sha256_shani::Transform().
Referenced by AddDataToRng(), CCrypter::BytesToKeySHA512AES(), CHMAC_SHA512::CHMAC_SHA512(), Finalize(), CHMAC_SHA512::Finalize(), GetStrongRandBytes(), HASH_SHA512(), and CHMAC_SHA512::Write().
Member Data Documentation
◆ buf
|
private |
◆ bytes
|
private |
Definition at line 17 of file sha512.h.
Referenced by Finalize(), Reset(), and Write().
◆ OUTPUT_SIZE
|
static |
Definition at line 20 of file sha512.h.
Referenced by CCrypter::BytesToKeySHA512AES(), and HASH_SHA512().
◆ s
|
private |
The documentation for this class was generated from the following files:
- src/crypto/sha512.h
- src/crypto/sha512.cpp