VHISTlib
1.84.0.3018
|
A class to calculate MD5 checksums over a block of data. More...
#include <md5generator.h>
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. |
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.
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.
[in] | data | The data for which an MD5 sum should be calculated. |
QString MD5Generator::getHexDigest | ( | ) |
Returns the current checksum in hexdigest form.
void MD5Generator::update | ( | const QByteArray & | data | ) |
Feeds more data to the MD5Generator.
By using this function, calculating checksums can be done incrementally.
[in] | data | The data over which the MD5 sum is calculated. |