#include <SHA.h>
Public Member Functions | |
CSHA () | |
~CSHA () | |
void | Reset () |
void | Add (LPCVOID pData, DWORD nLength) |
void | Finish () |
void | GetHash (SHA1 *pHash) |
CString | GetHashString (BOOL bURN=FALSE) |
Static Public Member Functions | |
static CString | HashToString (const SHA1 *pHash, BOOL bURN=FALSE) |
static CString | HashToHexString (const SHA1 *pHash, BOOL bURN=FALSE) |
static BOOL | HashFromString (LPCTSTR pszHash, SHA1 *pHash) |
static BOOL | HashFromURN (LPCTSTR pszHash, SHA1 *pHash) |
static BOOL | IsNull (SHA1 *pHash) |
Public Attributes | |
DWORD | m_nCount [2] |
DWORD | m_nHash [5] |
DWORD | m_nBuffer [16] |
|
Definition at line 56 of file SHA.cpp. References Reset(). |
|
|
|
Definition at line 83 of file SHA.cpp. References SHA_Add_p5(). Referenced by CBTInfo::AddToTest(), CPacket::GetRazaHash(), CG1Packet::GetRazaHash(), CBENode::GetSHA1(), CLibraryBuilder::HashFile(), CRemoteSettingsPage::OnNewPassword(), and CRemote::PageLogin(). |
|
Definition at line 89 of file SHA.cpp. References asm_m_nCount, m_nCount, SHA_Add_p5(), and SHA_PADDING. Referenced by CBTInfo::FinishBlockTest(), CPacket::GetRazaHash(), CG1Packet::GetRazaHash(), CBENode::GetSHA1(), CLibraryBuilder::HashFile(), CRemoteSettingsPage::OnNewPassword(), and CRemote::PageLogin(). |
|
Definition at line 75 of file SHA.cpp. References SHA1::b, m_nHash, and SHA1_DIGEST_SIZE. Referenced by CBTInfo::FinishBlockTest(), GetHashString(), CPacket::GetRazaHash(), CG1Packet::GetRazaHash(), CBENode::GetSHA1(), and CLibraryBuilder::HashFile(). |
|
Definition at line 115 of file SHA.cpp. References GetHash(), and HashToString(). Referenced by CRemoteSettingsPage::OnNewPassword(), and CRemote::PageLogin(). |
|
Definition at line 192 of file SHA.cpp. Referenced by CDownloadEditDlg::Commit(), HashFromURN(), CUpgradeDlg::OnOK(), CIEProtocol::OnRequestRAZACOL(), CSourceURL::ParseBTC(), and CShareazaURL::ParsePioletFile(). |
|
|
Definition at line 168 of file SHA.cpp. Referenced by CTorrentSeedDlg::CreateTarget(), and CFilePropertiesDlg::Update(). |
|
|
Definition at line 260 of file SHA.cpp. Referenced by CQueryHit::ReadG1Packet(), CQueryHit::ReadG2Packet(), and CDownloadBase::Serialize(). |
|
Definition at line 65 of file SHA.cpp. References m_nCount, and m_nHash. Referenced by CBTInfo::BeginBlockTest(), and CSHA(). |
|
|
|
|
|
|