ccRTP 2.1.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes
MD5Digest Class Reference

A md5 collection/computation accululator class. More...

Inheritance diagram for MD5Digest:
Inheritance graph
[legend]
Collaboration diagram for MD5Digest:
Collaboration graph
[legend]

Public Member Functions

 MD5Digest ()
 
void initDigest (void)
 Reset the digest table to an initial default value. More...
 
unsigned getSize (void)
 Get the size of a digest in octets. More...
 
unsigned getDigest (unsigned char *buffer)
 Copy the binary digest buffer to user memory. More...
 
void putDigest (const unsigned char *buffer, unsigned len)
 Put data into the digest bypassing the stream subsystem. More...
 

Protected Member Functions

int overflow (int c)
 
void update (void)
 
void commit (void)
 
std::ostream & strDigest (std::ostream &os)
 print a digest string for export. More...
 

Private Attributes

unsigned long state [4]
 
unsigned long count [2]
 
unsigned char buf [64]
 
unsigned bpos
 
unsigned char md5 [16]
 
bool updated
 

Detailed Description

A md5 collection/computation accululator class.

Author
David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m md5 hash accumulation.

Definition at line 129 of file queue.cpp.

Constructor & Destructor Documentation

MD5Digest::MD5Digest ( )

Definition at line 237 of file queue.cpp.

Member Function Documentation

void MD5Digest::commit ( void  )
protected

Definition at line 370 of file queue.cpp.

unsigned MD5Digest::getDigest ( unsigned char *  buffer)
virtual

Copy the binary digest buffer to user memory.

Returns
number of bytes in digest.
Parameters
bufferto write into.

Implements Digest.

Definition at line 411 of file queue.cpp.

unsigned MD5Digest::getSize ( void  )
inlinevirtual

Get the size of a digest in octets.

Returns
number of bytes in digest.

Implements Digest.

Definition at line 153 of file queue.cpp.

void MD5Digest::initDigest ( void  )
virtual

Reset the digest table to an initial default value.

Implements Digest.

Definition at line 244 of file queue.cpp.

int MD5Digest::overflow ( int  c)
protected

Definition at line 256 of file queue.cpp.

void MD5Digest::putDigest ( const unsigned char *  buffer,
unsigned  length 
)
virtual

Put data into the digest bypassing the stream subsystem.

Parameters
bufferto read from.
lengthof data.

Implements Digest.

Definition at line 419 of file queue.cpp.

std::ostream & MD5Digest::strDigest ( std::ostream &  os)
protectedvirtual

print a digest string for export.

Returns
string representation of digest.

Implements Digest.

Definition at line 432 of file queue.cpp.

void MD5Digest::update ( void  )
protected

Definition at line 269 of file queue.cpp.

Field Documentation

unsigned MD5Digest::bpos
private

Definition at line 135 of file queue.cpp.

unsigned char MD5Digest::buf[64]
private

Definition at line 134 of file queue.cpp.

unsigned long MD5Digest::count[2]
private

Definition at line 133 of file queue.cpp.

unsigned char MD5Digest::md5[16]
private

Definition at line 136 of file queue.cpp.

unsigned long MD5Digest::state[4]
private

Definition at line 132 of file queue.cpp.

bool MD5Digest::updated
private

Definition at line 137 of file queue.cpp.


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