vmsHash Class Reference

#include <vmsHash.h>

List of all members.

Public Member Functions

void set_SHA2Strength (vmsHash_SHA2Strength en)
void set_EventsHandler (vmsHashEvents *pEvents)
std::string Hash (LPCSTR pszFile, vmsHashAlgorithm enHA=HA_MD5)
 vmsHash ()
virtual ~vmsHash ()

Protected Member Functions

std::string Hash_SHA2 (LPCSTR pszFile)
std::string Hash_SHA1 (LPCSTR pszFile)
std::string Hash_CRC32 (LPCSTR pszFile)
std::string Hash_ResultToStr (unsigned char *pHR, int nSize)
std::string Hash_MD5 (LPCSTR pszFile)
UINT64 Hash_MD5_File (const char *fn, unsigned long seed, void *mdContext)

Protected Attributes

vmsHashEventsm_pEvents
int m_nSHA2Strength


Detailed Description

Definition at line 33 of file vmsHash.h.


Constructor & Destructor Documentation

vmsHash::vmsHash (  ) 

Definition at line 13 of file vmsHash.cpp.

References m_nSHA2Strength, m_pEvents, and NULL.

vmsHash::~vmsHash (  )  [virtual]

Definition at line 19 of file vmsHash.cpp.


Member Function Documentation

void vmsHash::set_SHA2Strength ( vmsHash_SHA2Strength  en  ) 

void vmsHash::set_EventsHandler ( vmsHashEvents pEvents  ) 

Definition at line 113 of file vmsHash.cpp.

References m_pEvents.

Referenced by CDlg_CheckFileIntegrity_Progress::_threadDoJob().

std::string vmsHash::Hash ( LPCSTR  pszFile,
vmsHashAlgorithm  enHA = HA_MD5 
)

std::string vmsHash::Hash_SHA2 ( LPCSTR  pszFile  )  [protected]

std::string vmsHash::Hash_SHA1 ( LPCSTR  pszFile  )  [protected]

std::string vmsHash::Hash_CRC32 ( LPCSTR  pszFile  )  [protected]

std::string vmsHash::Hash_ResultToStr ( unsigned char *  pHR,
int  nSize 
) [protected]

Definition at line 93 of file vmsHash.cpp.

Referenced by Hash_MD5(), Hash_SHA1(), and Hash_SHA2().

std::string vmsHash::Hash_MD5 ( LPCSTR  pszFile  )  [protected]

Definition at line 44 of file vmsHash.cpp.

References MD5_CTX::digest, Hash_MD5_File(), and Hash_ResultToStr().

Referenced by Hash().

UINT64 vmsHash::Hash_MD5_File ( const char *  fn,
unsigned long  seed,
void *  mdContext 
) [protected]


Member Data Documentation

Definition at line 50 of file vmsHash.h.

Referenced by Hash_CRC32(), Hash_MD5_File(), Hash_SHA1(), Hash_SHA2(), set_EventsHandler(), and vmsHash().

int vmsHash::m_nSHA2Strength [protected]

Definition at line 51 of file vmsHash.h.

Referenced by Hash_SHA2(), set_SHA2Strength(), and vmsHash().


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

Generated on Sun May 25 00:21:23 2008 by  doxygen 1.5.6