Murl::Util::MD5Checksum Class Reference
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 UInt8 * | Calculate (const void *srcData, UInt64 srcByteSize) const |
| Calculate the MD5 checksum from a memory block. More... | |
| const ConstData & | Calculate (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 ConstData & | GetChecksum () const |
| Get the checksum data object from the recent checksum calculation. More... | |
Protected Attributes | |
| Data | mDigest |
| The data object holding the checksum. | |
Detailed Description
The MD5 checksum class.
Member Enumeration Documentation
◆ anonymous enum
Member Function Documentation
◆ Calculate() [1/2]
Calculate the MD5 checksum from a memory block.
- Parameters
-
srcData Pointer to the source memory block. srcByteSize The 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]
Calculate the MD5 checksum from a data object.
- Parameters
-
data The source data object.
- Returns
- The checksum data object.
◆ CalculateHex() [1/2]
Calculate the MD5 checksum from a string.
- Parameters
-
srcString The source string object.
- Returns
- The hex-encoded checksum string.
◆ CalculateHex() [2/2]
Calculate the MD5 checksum from a data object.
- Parameters
-
data The 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.
The documentation for this class was generated from the following file:
- murl_util_checksum.h