Bayonne2 / Common C++ 2 Framework
 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...

#include <digest.h>

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 236 of file digest.h.

Constructor & Destructor Documentation

MD5Digest::MD5Digest ( )

Member Function Documentation

void MD5Digest::commit ( void  )
protected
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.

unsigned MD5Digest::getSize ( void  )
inlinevirtual

Get the size of a digest in octets.

Returns
number of bytes in digest.

Implements Digest.

Definition at line 260 of file digest.h.

void MD5Digest::initDigest ( void  )
virtual

Reset the digest table to an initial default value.

Implements Digest.

int MD5Digest::overflow ( int  c)
protected
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.

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

print a digest string for export.

Returns
string representation of digest.

Implements Digest.

void MD5Digest::update ( void  )
protected

Field Documentation

unsigned MD5Digest::bpos
private

Definition at line 242 of file digest.h.

unsigned char MD5Digest::buf[64]
private

Definition at line 241 of file digest.h.

unsigned long MD5Digest::count[2]
private

Definition at line 240 of file digest.h.

unsigned char MD5Digest::md5[16]
private

Definition at line 243 of file digest.h.

unsigned long MD5Digest::state[4]
private

Definition at line 239 of file digest.h.

bool MD5Digest::updated
private

Definition at line 244 of file digest.h.


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