Bayonne2 / Common C++ 2 Framework
Public Member Functions | Protected Member Functions | Private Attributes
CRC32Digest Class Reference

A crc32 collection/computation hash accumulator class. More...

#include <digest.h>

Inheritance diagram for CRC32Digest:
Inheritance graph
[legend]
Collaboration diagram for CRC32Digest:
Collaboration graph
[legend]

Public Member Functions

 
  CRC32Digest (const CRC32Digest &crc)
 
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...
 
  operator const uint32 () const
 
uint32  getDigest (void)
 
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...
 
CRC32Digestoperator= (const CRC32Digest &right)
 

Protected Member Functions

unsigned char  overflow (unsigned char octet)
 
std::ostream &  strDigest (std::ostream &os)
  print a digest string for export. More...
 

Private Attributes

uint32  crc_table [256]
 
uint32  crc_reg
 
uint32  crc32
 

Detailed Description

A crc32 collection/computation hash accumulator class.

Author
Kevin Kraatz kraat.nosp@m.z@ar.nosp@m.lut.u.nosp@m.texa.nosp@m.s.edu crc32 computation hash.

Definition at line 197 of file digest.h.

Constructor & Destructor Documentation

CRC32Digest::CRC32Digest ( )
CRC32Digest::CRC32Digest ( const CRC32Digestcrc )

Member Function Documentation

uint32 CRC32Digest::getDigest ( void  )
inline

Definition at line 220 of file digest.h.

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

Definition at line 217 of file digest.h.

CRC32Digest& CRC32Digest::operator= ( const CRC32Digestright )
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

Definition at line 202 of file digest.h.

uint32 CRC32Digest::crc_reg
private

Definition at line 201 of file digest.h.

uint32 CRC32Digest::crc_table[256]
private

Definition at line 200 of file digest.h.


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

Generated on Dec 21, 2017 for commoncpp2-1.8.1, ccrtp-1.7.2, libzrtpcpp-2.3.4, ccscript3-1.1.7, ccaudio2-1.0.0 and bayonne2-2.3.2 (after installation in /usr/local/) by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /