Galena :: xfirelib

This is a static archive of the original page - xfirelib is no longer maintained.
Navigation
Home
Board
Bug Tracker
Downloads

XFireGateway





User

You are currently not logged in.
Login
Register


0 logged in users.
21 active guests.


Project: xfirelib

Home
Board

CSHA1 Class Reference

#include <SHA1.h>

Collaboration diagram for CSHA1:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { REPORT_HEX = 0, REPORT_DIGIT = 1 }

Public Member Functions

 CSHA1 ()
 ~CSHA1 ()
void Reset ()
void Update (UINT_8 *data, UINT_32 len)
bool HashFile (char *szFileName)
void Final ()
void ReportHash (char *szReport, unsigned char uReportType=REPORT_HEX)
void GetHash (UINT_8 *puDest)

Public Attributes

UINT_32 m_state [5]
UINT_32 m_count [2]
UINT_8 m_buffer [64]
UINT_8 m_digest [20]

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
REPORT_HEX 
REPORT_DIGIT 

Definition at line 81 of file SHA1.h.


Constructor & Destructor Documentation

CSHA1::CSHA1  ) 
 

Definition at line 54 of file SHA1.cpp.

References Reset().

Here is the call graph for this function:

CSHA1::~CSHA1  ) 
 

Definition at line 61 of file SHA1.cpp.

References Reset().

Here is the call graph for this function:


Member Function Documentation

void CSHA1::Final  ) 
 

Definition at line 191 of file SHA1.cpp.

References m_buffer, m_count, m_digest, m_state, UINT_32, UINT_8, and Update().

Here is the call graph for this function:

void CSHA1::GetHash UINT_8 *  puDest  ) 
 

Definition at line 257 of file SHA1.cpp.

References m_digest.

bool CSHA1::HashFile char *  szFileName  ) 
 

Definition at line 148 of file SHA1.cpp.

References SHA1_MAX_FILE_BUFFER, UINT_8, and Update().

Here is the call graph for this function:

void CSHA1::ReportHash char *  szReport,
unsigned char  uReportType = REPORT_HEX
 

Definition at line 224 of file SHA1.cpp.

References m_digest, REPORT_DIGIT, and REPORT_HEX.

void CSHA1::Reset  ) 
 

Definition at line 66 of file SHA1.cpp.

References m_count, and m_state.

Referenced by CSHA1(), and ~CSHA1().

void CSHA1::Update UINT_8 *  data,
UINT_32  len
 

Definition at line 122 of file SHA1.cpp.

References m_buffer, m_count, m_state, and UINT_32.

Referenced by Final(), and HashFile().


Member Data Documentation

UINT_8 CSHA1::m_buffer[64]
 

Definition at line 93 of file SHA1.h.

Referenced by Final(), and Update().

UINT_32 CSHA1::m_count[2]
 

Definition at line 92 of file SHA1.h.

Referenced by Final(), Reset(), and Update().

UINT_8 CSHA1::m_digest[20]
 

Definition at line 94 of file SHA1.h.

Referenced by Final(), GetHash(), and ReportHash().

UINT_32 CSHA1::m_state[5]
 

Definition at line 91 of file SHA1.h.

Referenced by Final(), Reset(), and Update().


The documentation for this class was generated from the following files:
Powered by Galena
This page is powered by Galena. - Get your own free "CMS" (Wiki, Board, Todolist/Buglist-Tracker)
Author of Galena: Herbert Poul - kahless+galena@sphene.net - jabber id: kahless@sphene.net - icq uin: 50647169
Page generated in 17 millisecs