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 | Friends
Digest Class Referenceabstract

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

#include <digest.h>

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

Public Member Functions

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

Protected Member Functions

 Digest ()
 
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 (const unsigned char *buffer, unsigned length)=0
 Put data into the digest bypassing the stream subsystem. More...
 
virtual std::ostream & strDigest (std::ostream &os)=0
 print a digest string for export. More...
 

Friends

std::ostream & operator<< (std::ostream &os, Digest &ia)
 

Detailed Description

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

Author
David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m base class for hashing services.

Definition at line 70 of file digest.h.

Constructor & Destructor Documentation

Digest::Digest ( )
protected
virtual Digest::~Digest ( )
virtual

Member Function Documentation

virtual unsigned Digest::getDigest ( unsigned char *  buffer)
protectedpure virtual

Copy the binary digest buffer to user memory.

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

Implemented in MD5Digest, CRC32Digest, CRC16Digest, and ChecksumDigest.

virtual unsigned Digest::getSize ( void  )
protectedpure virtual

Get the size of a digest in octets.

Returns
number of bytes in digest.

Implemented in MD5Digest, CRC32Digest, CRC16Digest, and ChecksumDigest.

virtual void Digest::initDigest ( void  )
pure virtual

Reset the digest table to an initial default value.

Implemented in MD5Digest, CRC32Digest, CRC16Digest, and ChecksumDigest.

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

Put data into the digest bypassing the stream subsystem.

Parameters
bufferto read from.
lengthof data.

Implemented in MD5Digest, CRC32Digest, CRC16Digest, and ChecksumDigest.

virtual std::ostream& Digest::strDigest ( std::ostream &  os)
protectedpure virtual

print a digest string for export.

Returns
string representation of digest.

Implemented in MD5Digest, CRC32Digest, CRC16Digest, and ChecksumDigest.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
Digest ia 
)
friend

Definition at line 105 of file digest.h.


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