47#ifndef CCXX_MISSING_H_
55#ifndef CCXX_EXCEPTION_H_
88 virtual unsigned getDigest(
unsigned char *buffer) = 0;
96 virtual void putDigest(
const unsigned char *buffer,
unsigned length) = 0;
143 void putDigest(
const unsigned char *buffer,
unsigned length);
174 {
return sizeof(crc16);};
186 void putDigest (
const unsigned char *buffer,
unsigned length );
215 inline unsigned getSize(
void) {
return sizeof(crc32);}
225 void putDigest(
const unsigned char *buffer,
unsigned length);
239 unsigned long state[4];
240 unsigned long count[2];
241 unsigned char buf[64];
243 unsigned char md5[16];
265 void putDigest(
const unsigned char *buffer,
unsigned len);
268#ifdef COMMON_STD_EXCEPTION
278class __EXPORT DigestException :
public Exception {
280 DigestException(
const String &str) : Exception(str) {};
284#ifdef CCXX_NAMESPACES
A crc16 collection/compution hash accumulator class.
Definition digest.h:153
void initDigest(uint16 crc)
Definition digest.h:169
CRC16Digest(const CRC16Digest &crc)
uint16 getDigest(void)
Definition digest.h:181
unsigned getDigest(unsigned char *buffer)
void initDigest(void)
Definition digest.h:171
unsigned getSize(void)
Definition digest.h:173
void putDigest(const unsigned char *buffer, unsigned length)
virtual ~CRC16Digest()
Definition digest.h:167
std::ostream & strDigest(std::ostream &os)
A crc32 collection/computation hash accumulator class.
Definition digest.h:198
unsigned getSize(void)
Definition digest.h:215
void putDigest(const unsigned char *buffer, unsigned length)
unsigned char overflow(unsigned char octet)
uint32 getDigest(void)
Definition digest.h:220
unsigned getDigest(unsigned char *buffer)
CRC32Digest(const CRC32Digest &crc)
std::ostream & strDigest(std::ostream &os)
A simple checksum digest function.
Definition digest.h:124
void putDigest(const unsigned char *buffer, unsigned length)
void initDigest(void)
Definition digest.h:135
unsigned getSize(void)
Definition digest.h:138
std::ostream & strDigest(std::ostream &os)
unsigned getDigest(unsigned char *buffer)
The digest base class is used for implementing and deriving one way hashing functions.
Definition digest.h:71
friend std::ostream & operator<<(std::ostream &os, Digest &ia)
Definition digest.h:105
virtual unsigned getSize(void)=0
Get the size of a digest in octets.
virtual void putDigest(const unsigned char *buffer, unsigned length)=0
Put data into the digest bypassing the stream subsystem.
virtual unsigned getDigest(unsigned char *buffer)=0
Copy the binary digest buffer to user memory.
virtual std::ostream & strDigest(std::ostream &os)=0
print a digest string for export.
virtual void initDigest(void)=0
Reset the digest table to an initial default value.
A md5 collection/computation accululator class.
Definition digest.h:237
unsigned getDigest(unsigned char *buffer)
unsigned getSize(void)
Definition digest.h:260
std::ostream & strDigest(std::ostream &os)
void putDigest(const unsigned char *buffer, unsigned len)
This is a generic and portable string class.
Definition string.h:81
u_int32_t uint32
Definition config.h:147
u_int16_t uint16
Definition config.h:145
#define __EXPORT
Definition config.h:1045
GNU Common C++ exception model base classes.
substitute functions which may be missing in target platform libc.
Synchronization and threading services.