Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Digest Class Reference

The digest base class is used for implimenting and deriving one way hashing functions. base class for hashing services. More...

#include <digest.h>

Inheritance diagram for Digest:

streambuf ostream ChecksumDigest CRC16Digest List of all members.

Protected Methods

 Digest ()
virtual void initDigest (void) = 0
 Reset the digest table to an initial default value.

virtual unsigned getSize (void) = 0
 Get the size of a digest in octets. More...

virtual unsigned getDigest (unsigned char *buffer) = 0
 Copy the binary digest buffer to user memory. More...

virtual void putDigest (unsigned char *buffer, unsigned length) = 0
 Put data into the digest bypassing the stream subsystem. More...

virtual ostreamstrDigest (ostream &os) = 0
 print a digest string for export. More...


Friends

ostreamoperator<< (ostream &os, Digest &ia)

Detailed Description

The digest base class is used for implimenting and deriving one way hashing functions. base class for hashing services.

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

Digest::Digest ( ) [protected]
 


Member Function Documentation

unsigned Digest::getDigest ( unsigned char * buffer ) [protected, pure virtual]
 

Copy the binary digest buffer to user memory.

Returns:
number of bytes in digest.
Parameters:
buffer   to write into.

Reimplemented in ChecksumDigest, and CRC16Digest.

unsigned Digest::getSize ( void ) [protected, pure virtual]
 

Get the size of a digest in octets.

Returns:
number of bytes in digest.

Reimplemented in ChecksumDigest, and CRC16Digest.

void Digest::initDigest ( void ) [protected, pure virtual]
 

Reset the digest table to an initial default value.

Reimplemented in ChecksumDigest, and CRC16Digest.

void Digest::putDigest ( unsigned char * buffer,
unsigned length ) [protected, pure virtual]
 

Put data into the digest bypassing the stream subsystem.

Parameters:
buffer   to read from.
length   of data.

Reimplemented in ChecksumDigest, and CRC16Digest.

ostream & Digest::strDigest ( ostream & os ) [protected, pure virtual]
 

print a digest string for export.

Returns:
string representation of digest.

Reimplemented in ChecksumDigest, and CRC16Digest.


Friends And Related Function Documentation

ostream & operator<< ( ostream & os,
Digest & ia ) [friend]
 


The documentation for this class was generated from the following file:
Generated at Fri Dec 15 07:08:32 2000 for CommonC++ by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000