HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CSHA1 Class Reference

#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 char *szFileName)
 
void Final ()
 
bool ReportHash (char *szReport, REPORT_TYPE rtReportType=REPORT_HEX) const
 
bool ReportHashStl (std::string &strOut, REPORT_TYPE rtReportType=REPORT_HEX) const
 
bool GetHash (UINT_8 *pbDest) const
 

Public 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]
 

Detailed Description

Definition at line 159 of file SHA1.h.

Member Enumeration Documentation

Enumerator
REPORT_HEX 
REPORT_DIGIT 
REPORT_HEX_SHORT 

Definition at line 164 of file SHA1.h.

Constructor & Destructor Documentation

CSHA1::CSHA1 ( )
CSHA1::~CSHA1 ( )

Member Function Documentation

void CSHA1::Final ( )
bool CSHA1::GetHash ( UINT_8 pbDest) const
bool CSHA1::HashFile ( const char *  szFileName)
bool CSHA1::ReportHash ( char *  szReport,
REPORT_TYPE  rtReportType = REPORT_HEX 
) const
bool CSHA1::ReportHashStl ( std::string strOut,
REPORT_TYPE  rtReportType = REPORT_HEX 
) const
void CSHA1::Reset ( )
void CSHA1::Update ( const UINT_8 pbData,
UINT_32  uLen 
)

Member Data Documentation

UINT_8 CSHA1::m_buffer[64]

Definition at line 179 of file SHA1.h.

UINT_32 CSHA1::m_count[2]

Definition at line 177 of file SHA1.h.

UINT_8 CSHA1::m_digest[20]

Definition at line 180 of file SHA1.h.

UINT_32 CSHA1::m_reserved0[1]

Definition at line 178 of file SHA1.h.

UINT_32 CSHA1::m_reserved1[3]

Definition at line 181 of file SHA1.h.

UINT_32 CSHA1::m_state[5]

Definition at line 176 of file SHA1.h.


The documentation for this class was generated from the following file: