Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
CSHA1 Class Reference
A hasher class for SHA1. More...
#include <sha1.h>
Public Member Functions | |
CSHA1 () | |
CSHA1 & | Write (const unsigned char *data, size_t len) |
void | Finalize (unsigned char hash[OUTPUT_SIZE]) |
CSHA1 & | Reset () |
Static Public Attributes | |
static const size_t | OUTPUT_SIZE = 20 |
Private Attributes | |
uint32_t | s [5] |
unsigned char | buf [64] |
uint64_t | bytes |
Detailed Description
Constructor & Destructor Documentation
◆ CSHA1()
Member Function Documentation
◆ Finalize()
void CSHA1::Finalize | ( | unsigned char | hash[OUTPUT_SIZE] | ) |
Definition at line 180 of file sha1.cpp.
References bytes, s, Write(), WriteBE32(), and WriteBE64().
◆ Reset()
◆ Write()
CSHA1 & CSHA1::Write | ( | const unsigned char * | data, |
size_t | len | ||
) |
Definition at line 154 of file sha1.cpp.
References buf, bytes, memcpy(), s, and sha256_shani::Transform().
Referenced by EvalScript(), Finalize(), and HASH_SHA1().
Member Data Documentation
◆ buf
◆ bytes
|
private |
Definition at line 17 of file sha1.h.
Referenced by Finalize(), Reset(), and Write().
◆ OUTPUT_SIZE
|
static |
Definition at line 20 of file sha1.h.
Referenced by HASH_SHA1().
◆ s
|
private |
The documentation for this class was generated from the following files: