ADTF
3.18.2
|
Class for computing MD5 sums. More...
Public Member Functions | |
cMD5Checksum () | |
Constructor. | |
virtual | ~cMD5Checksum () |
Destructor. | |
tResult | Update (const tUInt8 *pData, tUInt32 nSize) |
Adds new data that should be processed. More... | |
tResult | Digest (cString &strDigest) |
Finalizes the computation. More... | |
tResult | Digest (tUInt8 *pDigest) |
Finalizes the computation. More... | |
Static Public Member Functions | |
static tResult | CalcFile (const cFilename &strFile, cString &strDigest) |
Utility function to calculate the MD5 digest of an existing file. More... | |
static tResult | CalcFile (const cFilename &strFile, tUInt8 *pDigest) |
Utility function to calculate the MD5 digest of an existing file. More... | |
static tResult | CalcString (const cString &strInput, cString &strDigest) |
Utility function to calculate the MD5 digest of a string. More... | |
static tResult | CalcString (const cString &strInput, tUInt8 *pDigest) |
Utility function to calculate the MD5 digest of a string. More... | |
Class for computing MD5 sums.
Definition at line 17 of file checksum.h.
Utility function to calculate the MD5 digest of an existing file.
strFile | [in] The file that the digest should be calculated of. |
strDigest | [out] This string wil lbe updated with the hex representation of the 16 byte digest. |
Utility function to calculate the MD5 digest of an existing file.
strFile | [in] The file that the digest should be calculated of. |
pDigest | [out] A pointer to a 16 byte array that will be filled with the digest. |
Utility function to calculate the MD5 digest of a string.
strInput | [in] The string that the digest should be calculated of. |
strDigest | [out] This string wil lbe updated with the hex representation of the 16 byte digest. |
Utility function to calculate the MD5 digest of a string.
strInput | [in] The string that the digest should be calculated of. |
pDigest | [out] A pointer to a 16 byte array that will be filled with the digest. |
Finalizes the computation.
strDigest | [out] This string will be updated with the hex representation of the 16 byte digest. |
Finalizes the computation.
pDigest | [out] A pointer to a 16 byte array that will be filled with the digest. |
Adds new data that should be processed.
pData | [in] The data. |
nSize | [in] The size of the data. |
ERR_INVALID_STATE | The digest has already been finalized by calling one of the Digest methods. |