The MD5 checksum class. More...

#include "murl_util_checksum.h"

Public Types

enum  { CHECKSUM_BYTE_SIZE }
 Constants. More...
 

Public Member Functions

 MD5Checksum ()
 The default constructor.
 
const UInt8Calculate (const void *srcData, UInt64 srcByteSize)
 Calculate the MD5 checksum from a memory block. More...
 
const ConstDataCalculate (const ConstData &data)
 Calculate the MD5 checksum from a data object. More...
 
String CalculateHex (const String &srcString)
 Calculate the MD5 checksum from a string. More...
 
String CalculateHex (const ConstData &data)
 Calculate the MD5 checksum from a data object. More...
 
String GetChecksumHex () const
 Get the hex-encoded checksum string from the recent checksum calculation. More...
 
const ConstDataGetChecksum () const
 Get the checksum data object from the recent checksum calculation. More...
 

Protected Attributes

Data mDigest
 The data object holding the checksum. More...
 

Detailed Description

The MD5 checksum class.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constants.

Enumerator
CHECKSUM_BYTE_SIZE 

The byte size of the MD5 Checksum.

Member Function Documentation

◆ Calculate() [1/2]

const UInt8* Murl::Util::MD5Checksum::Calculate ( const void *  srcData,
UInt64  srcByteSize 
)

Calculate the MD5 checksum from a memory block.

Parameters
srcDataPointer to the source memory block.
srcByteSizeThe byte size of the memory block.
Returns
A pointer to the checksum, the byte size of the checksum is defined by CHECKSUM_BYTE_SIZE.

◆ Calculate() [2/2]

const ConstData& Murl::Util::MD5Checksum::Calculate ( const ConstData data)

Calculate the MD5 checksum from a data object.

Parameters
dataThe source data object.
Returns
The checksum data object.

◆ CalculateHex() [1/2]

String Murl::Util::MD5Checksum::CalculateHex ( const String srcString)

Calculate the MD5 checksum from a string.

Parameters
srcStringThe source string object.
Returns
The hex-encoded checksum string.

◆ CalculateHex() [2/2]

String Murl::Util::MD5Checksum::CalculateHex ( const ConstData data)

Calculate the MD5 checksum from a data object.

Parameters
dataThe source data object.
Returns
The hex-encoded checksum string.

◆ GetChecksumHex()

String Murl::Util::MD5Checksum::GetChecksumHex ( ) const

Get the hex-encoded checksum string from the recent checksum calculation.

Returns
The hex-encoded checksum string.

◆ GetChecksum()

const ConstData& Murl::Util::MD5Checksum::GetChecksum ( ) const

Get the checksum data object from the recent checksum calculation.

Returns
The checksum data object.

Member Data Documentation

◆ mDigest

Data Murl::Util::MD5Checksum::mDigest
protected

The data object holding the checksum.


The documentation for this class was generated from the following file:
  • murl_util_checksum.h


Copyright © 2011-2018 Spraylight GmbH.