|
OverSim
|
#include <SHA1.h>
Public Types | |
| enum | REPORT_TYPE { REPORT_HEX = 0, REPORT_DIGIT = 1, REPORT_HEX_SHORT = 2 } |
Public Member Functions | |
| CSHA1 () | |
| ~CSHA1 () | |
| void | Reset () |
| void | Update (const UINT_8 *pbData, UINT_32 uLen) |
| bool | HashFile (const TCHAR *tszFileName) |
| void | Final () |
| bool | ReportHash (TCHAR *tszReport, REPORT_TYPE rtReportType=REPORT_HEX) const |
| bool | ReportHashStl (std::basic_string< TCHAR > &strOut, REPORT_TYPE rtReportType=REPORT_HEX) const |
| bool | GetHash (UINT_8 *pbDest20) const |
Private Member Functions | |
| void | Transform (UINT_32 *pState, const UINT_8 *pBuffer) |
Private Attributes | |
| UINT_32 | m_state [5] |
| UINT_32 | m_count [2] |
| UINT_32 | m_reserved0 [1] |
| UINT_8 | m_buffer [64] |
| UINT_8 | m_digest [20] |
| UINT_32 | m_reserved1 [3] |
| UINT_8 | m_workspace [64] |
| SHA1_WORKSPACE_BLOCK * | m_block |
| enum CSHA1::REPORT_TYPE |
| CSHA1::CSHA1 | ( | ) |
| void CSHA1::Final | ( | ) |
Definition at line 173 of file SHA1.cc.
Referenced by I3Identifier::createFromHash(), SimpleNcs::falsifyDelay(), SimpleNodeEntry::getFaultyDelay(), DHT::handleGetRequest(), and OverlayKey::sha1().
| bool CSHA1::GetHash | ( | UINT_8 * | pbDest20 | ) | const |
Definition at line 249 of file SHA1.cc.
Referenced by I3Identifier::createFromHash(), SimpleNcs::falsifyDelay(), SimpleNodeEntry::getFaultyDelay(), DHT::handleGetRequest(), and OverlayKey::sha1().
| bool CSHA1::HashFile | ( | const TCHAR * | tszFileName | ) |
Definition at line 142 of file SHA1.cc.
| bool CSHA1::ReportHash | ( | TCHAR * | tszReport, |
| REPORT_TYPE | rtReportType = REPORT_HEX |
||
| ) | const |
Definition at line 204 of file SHA1.cc.
Referenced by ReportHashStl().
| bool CSHA1::ReportHashStl | ( | std::basic_string< TCHAR > & | strOut, |
| REPORT_TYPE | rtReportType = REPORT_HEX |
||
| ) | const |
| void CSHA1::Reset | ( | ) |
Definition at line 60 of file SHA1.cc.
Referenced by I3Identifier::createFromHash(), CSHA1(), SimpleNcs::falsifyDelay(), SimpleNodeEntry::getFaultyDelay(), DHT::handleGetRequest(), OverlayKey::sha1(), and ~CSHA1().
Definition at line 73 of file SHA1.cc.
Referenced by Final(), and Update().
Definition at line 114 of file SHA1.cc.
Referenced by I3Identifier::createFromHash(), SimpleNcs::falsifyDelay(), Final(), SimpleNodeEntry::getFaultyDelay(), DHT::handleGetRequest(), HashFile(), and OverlayKey::sha1().
|
private |
Definition at line 279 of file SHA1.h.
Referenced by CSHA1(), and Transform().
|
private |
|
private |
|
private |
Definition at line 275 of file SHA1.h.
Referenced by Final(), GetHash(), and ReportHash().
|
private |