ADTF  3.18.2
checksum.h
Go to the documentation of this file.
1 
8 #ifndef MD5CHECKSUM_HEADER_H
9 #define MD5CHECKSUM_HEADER_H
10 
11 namespace A_UTILS_NS
12 {
13 
18 {
20 
21  public:
26 
30  virtual ~cMD5Checksum();
31 
39  tResult Update(const tUInt8* pData, tUInt32 nSize);
40 
46  tResult Digest(cString& strDigest);
47 
54  tResult Digest(tUInt8* pDigest);
55 
62  static tResult CalcFile(const cFilename& strFile, cString& strDigest);
63 
70  static tResult CalcFile(const cFilename& strFile, tUInt8* pDigest);
71 
78  static tResult CalcString(const cString& strInput, cString& strDigest);
79 
86  static tResult CalcString(const cString& strInput, tUInt8* pDigest);
87 };
88 
89 }
90 
91 #endif
uint8_t tUInt8
type definition for unsigned integer values (8bit) (platform and compiler independent type).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
File name class.
Definition: filename.h:59
Class for computing MD5 sums.
Definition: checksum.h:18
static tResult CalcFile(const cFilename &strFile, cString &strDigest)
Utility function to calculate the MD5 digest of an existing file.
virtual ~cMD5Checksum()
Destructor.
tResult Digest(tUInt8 *pDigest)
Finalizes the computation.
tResult Digest(cString &strDigest)
Finalizes the computation.
static tResult CalcString(const cString &strInput, cString &strDigest)
Utility function to calculate the MD5 digest of a string.
static tResult CalcString(const cString &strInput, tUInt8 *pDigest)
Utility function to calculate the MD5 digest of a string.
tResult Update(const tUInt8 *pData, tUInt32 nSize)
Adds new data that should be processed.
static tResult CalcFile(const cFilename &strFile, tUInt8 *pDigest)
Utility function to calculate the MD5 digest of an existing file.
cMD5Checksum()
Constructor.
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
Definition: d_ptr.h:270
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11