#include <SHA1.h>
Public Types | |
| enum | { REPORT_HEX = 0, REPORT_DIGIT = 1 } |
Public Member Functions | |
| CSHA1 () | |
| virtual | ~CSHA1 () |
| void | Reset () |
| void | Update (unsigned char *data, unsigned int len) |
| bool | HashFile (char *szFileName) |
| void | Final () |
| void | ReportHash (char *szReport, unsigned char uReportType=REPORT_HEX) |
| void | GetHash (unsigned char *uDest) |
| unsigned char * | GetHash (void) const |
Public Attributes | |
| unsigned long | m_state [5] |
| unsigned long | m_count [2] |
| unsigned char | m_buffer [64] |
| unsigned char | m_digest [20] |
Private Member Functions | |
| void | Transform (unsigned long state[5], unsigned char buffer[64]) |
Private Attributes | |
| unsigned char | workspace [64] |
Classes | |
| union | SHA1_WORKSPACE_BLOCK |
|
|
|
|
|
Default Constructor |
|
|
Destructor |
|
|
Finalize hash and report |
|
|
Get a pointer to the hash key data. |
|
|
Retrieve the Hash in a previously allocated array
|
|
|
Compute the SHA-1 hash key of a file
|
|
||||||||||||
|
Retrieve the hash key
|
|
|
Reset the internal state of the SHA-1 computation to compute a new SHA-1 hash key |
|
||||||||||||
|
Private SHA-1 transformation |
|
||||||||||||
|
Update the hash value from a byte buffer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Moved here for thread and multiple instance safety |
1.4.2