The digest base class is used for implementing and deriving one way hashing functions.
More...
|
virtual void | initDigest (void)=0 |
| Reset the digest table to an initial default value. More...
|
|
|
| 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...
|
|
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.
virtual unsigned Digest::getDigest |
( |
unsigned char * |
buffer | ) |
|
|
protectedpure virtual |
Copy the binary digest buffer to user memory.
- Returns
- number of bytes in digest.
- Parameters
-
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
-
buffer | to read from. |
length | of 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.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
Digest & |
ia |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: