class MD5

A standard MD5 digest calculator. More...

Full nameTelEngine::MD5
Definition#include <yateclass.h>
InheritsTelEngine::Hasher [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods


Detailed Description

A class to compute and check MD5 digests

 MD5 ()

MD5

Construct a fresh initialized instance

 MD5 (const MD5& original)

MD5

Copy constructor

Parameters:
originalMD5 instance to copy

 MD5 (const void* buf, unsigned int len)

MD5

Construct a digest from a buffer of data

Parameters:
bufPointer to the data to be included in digest
lenLength of data in the buffer

 MD5 (const DataBlock& data)

MD5

Construct a digest from a binary DataBlock

Parameters:
dataBinary data to be included in digest

 MD5 (const String& str)

MD5

Construct a digest from a String

Parameters:
strString to be included in digest

MD5&  operator= (const MD5& original)

operator=

Assignment operator.

 ~MD5 ()

~MD5

[virtual]

Destroy the instance, free allocated memory

void  clear ()

clear

[virtual]

Clear the digest and prepare for reuse

Reimplemented from Hasher.

void  finalize ()

finalize

[virtual]

Finalize the digest computation, make result ready. Subsequent calls to update() will fail

Reimplemented from Hasher.

const unsigned char*  rawDigest ()

rawDigest

[virtual]

Returns a pointer to the raw 16-byte binary value of the message digest. The digest is finalized if if wasn't already

Returns: Pointer to the raw digest data or NULL if some error occured

Reimplemented from Hasher.

inline unsigned int  rawLength ()

rawLength

[static]

Return the length of the raw binary digest

Returns: Constant value of 16

unsigned int  hashLength ()

hashLength

[const virtual]

Return the length of the raw binary digest

Returns: Length of the digest in octets

Reimplemented from Hasher.

bool  updateInternal (const void* buf, unsigned int len)

updateInternal

[protected]

Reimplemented from Hasher.


Generated by: paulc on bussard on Thu Feb 26 17:49:11 2015, using kdoc 2.0a54.