A simple checksum digest function.
More...
#include <digest.h>
|
| ChecksumDigest () |
|
void | initDigest (void) |
| Reset the digest table to an initial default value. More...
|
|
unsigned | getSize (void) |
| Get the size of a digest in octets. More...
|
|
unsigned | getDigest (unsigned char *buffer) |
| Copy the binary digest buffer to user memory. More...
|
|
void | putDigest (const unsigned char *buffer, unsigned length) |
| Put data into the digest bypassing the stream subsystem. More...
|
|
A simple checksum digest function.
- Author
- David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m checksum hash function.
Definition at line 123 of file digest.h.
ChecksumDigest::ChecksumDigest |
( |
| ) |
|
unsigned ChecksumDigest::getDigest |
( |
unsigned char * |
buffer | ) |
|
|
virtual |
Copy the binary digest buffer to user memory.
- Returns
- number of bytes in digest.
- Parameters
-
Implements Digest.
unsigned ChecksumDigest::getSize |
( |
void |
| ) |
|
|
inlinevirtual |
Get the size of a digest in octets.
- Returns
- number of bytes in digest.
Implements Digest.
Definition at line 138 of file digest.h.
void ChecksumDigest::initDigest |
( |
void |
| ) |
|
|
inlinevirtual |
Reset the digest table to an initial default value.
Implements Digest.
Definition at line 135 of file digest.h.
int ChecksumDigest::overflow |
( |
int |
c | ) |
|
|
protected |
void ChecksumDigest::putDigest |
( |
const unsigned char * |
buffer, |
|
|
unsigned |
length |
|
) |
| |
|
virtual |
Put data into the digest bypassing the stream subsystem.
- Parameters
-
buffer | to read from. |
length | of data. |
Implements Digest.
std::ostream& ChecksumDigest::strDigest |
( |
std::ostream & |
os | ) |
|
|
protectedvirtual |
print a digest string for export.
- Returns
- string representation of digest.
Implements Digest.
unsigned char ChecksumDigest::csum |
|
private |
The documentation for this class was generated from the following file: