Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CMD5 Class Reference

#include <MD5.h>

List of all members.

Public Member Functions

 CMD5 ()
virtual ~CMD5 ()
void Reset ()
void Add (LPCVOID pData, DWORD nLength)
void Finish ()
void GetHash (MD5 *pHash)

Static Public Member Functions

static CString HashToString (const MD5 *pHash, BOOL bURN=FALSE)
static BOOL HashFromString (LPCTSTR pszHash, MD5 *pMD5)
static BOOL HashFromURN (LPCTSTR pszHash, MD5 *pMD5)

Public Attributes

DWORD m_nCount [2]
DWORD m_nState [4]
BYTE m_nBuffer [64]

Protected Member Functions

void Transform (BYTE *pBlock)
void Encode (BYTE *pOutput, DWORD *pInput, DWORD nLength)
void Decode (DWORD *pOutput, BYTE *pInput, DWORD nLength)


Constructor & Destructor Documentation

CMD5::CMD5  ) 
 

Definition at line 33 of file MD5.cpp.

References Reset().

CMD5::~CMD5  )  [virtual]
 

Definition at line 38 of file MD5.cpp.


Member Function Documentation

void CMD5::Add LPCVOID  pData,
DWORD  nLength
 

Definition at line 66 of file MD5.cpp.

References MD5_Add_p5().

Referenced by CLibraryBuilder::HashFile().

void CMD5::Decode DWORD *  pOutput,
BYTE *  pInput,
DWORD  nLength
[protected]
 

void CMD5::Encode BYTE *  pOutput,
DWORD *  pInput,
DWORD  nLength
[protected]
 

void CMD5::Finish  ) 
 

Definition at line 74 of file MD5.cpp.

References m_nCount, MD5_Add_p5(), and MD5_PADDING.

Referenced by CLibraryBuilder::HashFile().

void CMD5::GetHash MD5 pHash  ) 
 

Definition at line 90 of file MD5.cpp.

References m_nState.

Referenced by CLibraryBuilder::HashFile().

BOOL CMD5::HashFromString LPCTSTR  pszHash,
MD5 pMD5
[static]
 

Definition at line 117 of file MD5.cpp.

Referenced by HashFromURN().

BOOL CMD5::HashFromURN LPCTSTR  pszHash,
MD5 pMD5
[static]
 

Definition at line 144 of file MD5.cpp.

References HashFromString(), and NULL.

Referenced by CCollectionFile::FindByURN(), CCollectionFile::File::Parse(), CShareazaURL::ParseMagnet(), and CShareazaURL::ParseShareazaFile().

CString CMD5::HashToString const MD5 pHash,
BOOL  bURN = FALSE
[static]
 

Definition at line 99 of file MD5.cpp.

Referenced by CCollectionExportDlg::CreateXML(), CURLExportDlg::OnCopy(), CFileGeneralPage::OnInitDialog(), and CURLExportDlg::OnSave().

void CMD5::Reset  ) 
 

Definition at line 53 of file MD5.cpp.

References m_nCount, and m_nState.

Referenced by CMD5().

void CMD5::Transform BYTE *  pBlock  )  [protected]
 


Member Data Documentation

BYTE CMD5::m_nBuffer[64]
 

Definition at line 39 of file MD5.h.

DWORD CMD5::m_nCount[2]
 

Definition at line 37 of file MD5.h.

Referenced by Finish(), and Reset().

DWORD CMD5::m_nState[4]
 

Definition at line 38 of file MD5.h.

Referenced by GetHash(), and Reset().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:09 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2