class Digest

base class for hashing services. More...

Contains pure virtuals
Full nameost::Digest
Definition#include <digest.h>
Inheritsstd::ostream (unknown) [public ], std::streambuf (unknown) [public ]
Inherited byCRC16Digest, ChecksumDigest, MD5Digest
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Protected Methods


Detailed Description

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

 Digest ()

Digest

[protected]

void  initDigest (void)

initDigest

[protected pure virtual]

Reset the digest table to an initial default value.

unsigned  getSize (void)

getSize

[protected pure virtual]

Get the size of a digest in octets.

Returns: number of bytes in digest.

unsigned  getDigest (unsigned char *buffer)

getDigest

[protected pure virtual]

Copy the binary digest buffer to user memory.

Parameters:
bufferto write into.

Returns: number of bytes in digest.

void  putDigest (unsigned char *buffer, unsigned length)

putDigest

[protected pure virtual]

Put data into the digest bypassing the stream subsystem.

Parameters:
bufferto read from.
lengthof data.

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

strDigest

[protected pure virtual]

print a digest string for export.

Returns: string representation of digest.

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

operator<<

[protected]