Logo Search packages:      
Sourcecode: pwlib version File versions

PMessageDigest5 Class Reference

#include <cypher.h>

Inheritance diagram for PMessageDigest5:

PObject

List of all members.


Detailed Description

MD5 Message Digest. A class to produce a Message Digest for a block of text/data using the MD5 algorithm as defined in RFC1321 by Ronald Rivest of MIT Laboratory for Computer Science and RSA Data Security, Inc.

Definition at line 352 of file cypher.h.


Comparison functions

virtual Comparison Compare (const PObject &obj) const
virtual Comparison CompareObjectMemoryDirect (const PObject &obj) const
bool operator!= (const PObject &obj) const
bool operator< (const PObject &obj) const
bool operator<= (const PObject &obj) const
bool operator== (const PObject &obj) const
bool operator> (const PObject &obj) const
bool operator>= (const PObject &obj) const
enum  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }

Run Time Type functions

virtual const char * GetClass (unsigned=0) const
virtual BOOL InternalIsDescendant (const char *clsName) const
BOOL IsClass (const char *cls) const
static const char * Class ()

I/O functions

virtual void PrintOn (ostream &strm) const
virtual void ReadFrom (istream &strm)
ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)

Public Member Functions

virtual PString Complete ()
virtual void Complete (Code &result)
virtual void CompleteDigest (Result &result)
virtual PString CompleteDigest ()
 PMessageDigest5 ()
 Create a new message digestor.
virtual void Process (const PBYTEArray &data)
virtual void Process (const char *cstr)
virtual void Process (const PString &str)
virtual void Process (const void *dataBlock, PINDEX length)
void Start ()
 Begin a Message Digest operation, initialising the object instance.
Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const

Static Public Member Functions

static void Encode (const void *dataBlock, PINDEX length, Code &result)
static void Encode (const PBYTEArray &data, Code &result)
static void Encode (const char *cstr, Code &result)
static void Encode (const PString &str, Code &result)
static void Encode (const void *dataBlock, PINDEX length, Result &result)
static PString Encode (const void *dataBlock, PINDEX length)
static void Encode (const PBYTEArray &data, Result &result)
static PString Encode (const PBYTEArray &data)
static void Encode (const char *cstr, Result &result)
static PString Encode (const char *cstr)
static void Encode (const PString &str, Result &result)
static PString Encode (const PString &str)

Protected Member Functions

virtual void InternalCompleteDigest (Result &result)
virtual void InternalProcess (const void *dataBlock, PINDEX length)

Private Member Functions

void Transform (const BYTE *block)

Private Attributes

BYTE buffer [64]
 input buffer
PUInt64 count
 number of bits, modulo 2^64 (lsb first)
DWORD state [4]
 state (ABCD)

Classes

class  Code

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

Generated by  Doxygen 1.6.0   Back to index