ccRTP 2.1.2
 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...

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...
 

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 65 of file queue.cpp.

Constructor & Destructor Documentation

Digest::Digest ( )
protected

Definition at line 110 of file queue.cpp.

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.

virtual unsigned Digest::getSize ( void  )
protectedpure virtual

Get the size of a digest in octets.

Returns
number of bytes in digest.

Implemented in MD5Digest.

virtual void Digest::initDigest ( void  )
pure virtual

Reset the digest table to an initial default value.

Implemented in MD5Digest.

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.

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

print a digest string for export.

Returns
string representation of digest.

Implemented in MD5Digest.

Friends And Related Function Documentation

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

Definition at line 100 of file queue.cpp.


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