Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

PMessageDigest5 Class Reference

#include <cypher.h>

Inheritance diagram for PMessageDigest5:

PMessageDigest PObject List of all members.

Public Member Functions

 PMessageDigest5 ()
 Create a new message digestor.
void Start ()
 Begin a Message Digest operation, initialising the object instance.
virtual void Complete (Code &result)
virtual PString Complete ()

Static Public Member Functions

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

Protected Member Functions

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

Classes

class  Code

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.


Constructor & Destructor Documentation

PMessageDigest5::PMessageDigest5  ) 
 

Create a new message digestor.


Member Function Documentation

virtual PString PMessageDigest5::Complete  )  [virtual]
 

virtual void PMessageDigest5::Complete Code result  )  [virtual]
 

Parameters:
result  The resultant 128 bit MD5 code

static void PMessageDigest5::Encode const void *  dataBlock,
PINDEX  length,
Code result
[static]
 

Encode the data in memory to and MD5 hash value.

Returns:
Base64 encoded MD5 code for the processed data.
Parameters:
length  Pointer to data to be encoded to MD5
result  Length of the data block. The resultant 128 bit MD5 code

static void PMessageDigest5::Encode const PBYTEArray data,
Code result
[static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
result  Data block to be encoded to MD5 The resultant 128 bit MD5 code

static void PMessageDigest5::Encode const char *  cstr,
Code result
[static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
result  C String to be encoded to MD5 The resultant 128 bit MD5 code

static void PMessageDigest5::Encode const PString str,
Code result
[static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
result  String to be encoded to MD5 The resultant 128 bit MD5 code

static void PMessageDigest5::Encode const void *  dataBlock,
PINDEX  length,
Result &  result
[static]
 

Encode the data in memory to and MD5 hash value.

Returns:
Base64 encoded MD5 code for the processed data.
Parameters:
length  Pointer to data to be encoded to MD5
result  Length of the data block. The resultant 128 bit MD5 code

static PString PMessageDigest5::Encode const void *  dataBlock,
PINDEX  length
[static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
length  Pointer to data to be encoded to MD5 Length of the data block.

static void PMessageDigest5::Encode const PBYTEArray data,
Result &  result
[static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
result  Data block to be encoded to MD5 The resultant 128 bit MD5 code

static PString PMessageDigest5::Encode const PBYTEArray data  )  [static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
data  Data block to be encoded to MD5

static void PMessageDigest5::Encode const char *  cstr,
Result &  result
[static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
result  C String to be encoded to MD5 The resultant 128 bit MD5 code

static PString PMessageDigest5::Encode const char *  cstr  )  [static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
cstr  C String to be encoded to MD5

static void PMessageDigest5::Encode const PString str,
Result &  result
[static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
result  String to be encoded to MD5 The resultant 128 bit MD5 code

static PString PMessageDigest5::Encode const PString str  )  [static]
 

Encode the data in memory to and MD5 hash value.

Parameters:
str  String to be encoded to MD5

virtual void PMessageDigest5::InternalCompleteDigest Result &  result  )  [protected, virtual]
 

Parameters:
result  The resultant 128 bit MD5 code

Implements PMessageDigest.

virtual void PMessageDigest5::InternalProcess const void *  dataBlock,
PINDEX  length
[protected, virtual]
 

Parameters:
length  Pointer to data to be part of the MD5 Length of the data block.

Implements PMessageDigest.

void PMessageDigest5::Start  )  [virtual]
 

Begin a Message Digest operation, initialising the object instance.

Implements PMessageDigest.


The documentation for this class was generated from the following file:
Generated on Mon Feb 21 20:43:14 2005 for PWLib by  doxygen 1.4.1