VHISTlib  1.84.0.3018
Public Member Functions
vhist::MD5Generator Class Reference

A class to calculate MD5 checksums over a block of data. More...

#include <md5generator.h>

List of all members.

Public Member Functions

 MD5Generator (const QByteArray &data)
 Creates a new MD5Generator instance and calculates the MD5 sum for the given chunk of data.
 MD5Generator ()
 Creates a new MD5Generator instance.
 ~MD5Generator ()
 Destroys the MD5Generator instance.
void reset ()
 Resets the MD5Generator.
void update (const QByteArray &data)
 Feeds more data to the MD5Generator.
QString getHexDigest ()
 Returns the current checksum in hexdigest form.

Detailed Description

A class to calculate MD5 checksums over a block of data.

The checksum can be calculated incrementally, i.e. the data can be passed to the generator in several iterations.

Examples:

md5generator_example.cpp.


Constructor & Destructor Documentation

MD5Generator::MD5Generator ( const QByteArray &  data)

Creates a new MD5Generator instance and calculates the MD5 sum for the given chunk of data.

The calculation of the checksum can be continued by calling update.

Parameters:
[in]dataThe data for which an MD5 sum should be calculated.

Member Function Documentation

QString MD5Generator::getHexDigest ( )

Returns the current checksum in hexdigest form.

Returns:
The MD5 sum.
Examples:
md5generator_example.cpp.
void MD5Generator::update ( const QByteArray &  data)

Feeds more data to the MD5Generator.

By using this function, calculating checksums can be done incrementally.

Parameters:
[in]dataThe data over which the MD5 sum is calculated.
Examples:
md5generator_example.cpp.

The documentation for this class was generated from the following files:

VHISTlib 1.84.0.3018 of Jun 28 2013, generated by doxygen.