Shadowrun: Awakened 29 September 2011 - Build 871
Classes | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
CSHA1 Class Reference

#include <SHA1.h>

List of all members.

Classes

union  SHA1_WORKSPACE_BLOCK

Public Types

enum  { REPORT_HEX = 0, REPORT_DIGIT = 1 }

Public Member Functions

 CSHA1 ()
void Final ()
void GetHash (unsigned char *uDest)
unsigned char * GetHash (void) const
bool HashFile (char *szFileName)
void ReportHash (char *szReport, unsigned char uReportType=REPORT_HEX)
void Reset ()
void Update (unsigned char *data, unsigned int len)
virtual ~CSHA1 ()

Public Attributes

unsigned char m_buffer [64]
unsigned int m_count [2]
unsigned char m_digest [20]
unsigned int m_state [5]

Private Member Functions

void Transform (unsigned int state[5], unsigned char buffer[64])

Private Attributes

unsigned char workspace [64]

Detailed Description

Definition at line 33 of file SHA1.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
REPORT_HEX 
REPORT_DIGIT 

Definition at line 63 of file SHA1.h.

         { REPORT_HEX = 0,
        REPORT_DIGIT = 1};

Constructor & Destructor Documentation

CSHA1::CSHA1 ( )
virtual CSHA1::~CSHA1 ( ) [virtual]

Member Function Documentation

void CSHA1::Final ( )
void CSHA1::GetHash ( unsigned char *  uDest)
unsigned char* CSHA1::GetHash ( void  ) const
bool CSHA1::HashFile ( char *  szFileName)
void CSHA1::ReportHash ( char *  szReport,
unsigned char  uReportType = REPORT_HEX 
)
void CSHA1::Reset ( )
void CSHA1::Transform ( unsigned int  state[5],
unsigned char  buffer[64] 
) [private]
void CSHA1::Update ( unsigned char *  data,
unsigned int  len 
)

Member Data Documentation

unsigned char CSHA1::m_buffer[64]

Definition at line 71 of file SHA1.h.

unsigned int CSHA1::m_count[2]

Definition at line 70 of file SHA1.h.

unsigned char CSHA1::m_digest[20]

Definition at line 72 of file SHA1.h.

unsigned int CSHA1::m_state[5]

Definition at line 69 of file SHA1.h.

unsigned char CSHA1::workspace[64] [private]

Definition at line 83 of file SHA1.h.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net