ProteoWizard
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
CSHA1 Class Reference

#include <SHA1.h>

List of all members.

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

Private Member Functions

void Transform (UINT_32 *pState, const UINT_8 *pBuffer)

Private Attributes

UINT_8 m_workspace [64]
SHA1_WORKSPACE_BLOCKm_block

Detailed Description

Definition at line 201 of file SHA1.h.


Member Enumeration Documentation

Enumerator:
REPORT_HEX 
REPORT_DIGIT 
REPORT_HEX_SHORT 

Definition at line 206 of file SHA1.h.


Constructor & Destructor Documentation

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

Member Function Documentation

void CSHA1::Reset ( )
void CSHA1::Update ( const UINT_8 pbData,
UINT_32  uLen 
)
bool CSHA1::HashFile ( const TCHAR tszFileName)
void CSHA1::Final ( )
bool CSHA1::ReportHash ( TCHAR tszReport,
REPORT_TYPE  rtReportType = REPORT_HEX 
) const
bool CSHA1::ReportHashStl ( std::basic_string< TCHAR > &  strOut,
REPORT_TYPE  rtReportType = REPORT_HEX 
) const
bool CSHA1::GetHash ( UINT_8 pbDest) const
void CSHA1::Transform ( UINT_32 pState,
const UINT_8 pBuffer 
)
private

Member Data Documentation

UINT_32 CSHA1::m_state[5]

Definition at line 218 of file SHA1.h.

UINT_32 CSHA1::m_count[2]

Definition at line 219 of file SHA1.h.

UINT_32 CSHA1::m_reserved0[1]

Definition at line 220 of file SHA1.h.

UINT_8 CSHA1::m_buffer[64]

Definition at line 221 of file SHA1.h.

UINT_8 CSHA1::m_digest[20]

Definition at line 222 of file SHA1.h.

UINT_32 CSHA1::m_reserved1[3]

Definition at line 223 of file SHA1.h.

UINT_8 CSHA1::m_workspace[64]
private

Definition at line 254 of file SHA1.h.

SHA1_WORKSPACE_BLOCK* CSHA1::m_block
private

Definition at line 255 of file SHA1.h.


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