A crc32 collection/computation hash accumulator class.
More...
#include <digest.h>
Inheritance diagram for CRC32Digest:
Collaboration diagram for CRC32Digest:
Public Member Functions
Reset the digest table to an initial default value.
More...
Get the size of a digest in octets.
More...
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...
Protected Member Functions
unsigned char
overflow (unsigned char octet)
print a digest string for export.
More...
Private Attributes
Detailed Description
Constructor & Destructor Documentation
CRC32Digest::CRC32Digest
(
)
Member Function Documentation
uint32 CRC32Digest::getDigest
(
void
)
inline
unsigned CRC32Digest::getDigest
(
unsigned char *
buffer )
virtual
Copy the binary digest buffer to user memory.
- Returns
- number of bytes in digest.
- Parameters
-
buffer to write into.
Implements Digest.
unsigned CRC32Digest::getSize
(
void
)
inlinevirtual
Get the size of a digest in octets.
- Returns
- number of bytes in digest.
Implements Digest.
Definition at line 215 of file digest.h.
void CRC32Digest::initDigest
(
void
)
virtual
Reset the digest table to an initial default value.
Implements Digest.
CRC32Digest::operator const uint32
(
)
const
inline
unsigned char CRC32Digest::overflow
(
unsigned char
octet )
protected
void CRC32Digest::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& CRC32Digest::strDigest
(
std::ostream &
os )
protectedvirtual
print a digest string for export.
- Returns
- string representation of digest.
Implements Digest.
Field Documentation
uint32 CRC32Digest::crc32
private
uint32 CRC32Digest::crc_reg
private
uint32 CRC32Digest::crc_table[256]
private
The documentation for this class was generated from the following file: