Public Member Functions | |
NMd5Hash (void) | |
Constructs a NMd5Hash object. | |
~NMd5Hash (void) | |
Destroys a NMd5Hash object. | |
NHash | calculate (const NString &str) |
Calculates the hash of a given string. | |
NHash | calculate (const NDataStream &data, nint32 size) |
Calculates the hash of arbitrary data. | |
NHash | calculateFile (const NString &filename) |
Calculates the hash of a file. | |
NHash | calculateFile (NFile *file) |
Calculates the hash of a file. |
Definition at line 43 of file nmd5hash.h.
Calculates the hash of a given string.
str | The string to calculate the hash |
Implements NAbstractHash.
Definition at line 39 of file nmd5hash.cpp.
References NAbstractHash::cleanup(), NString::length(), NString::toChar(), and NAbstractHash::update().
NHash calculate | ( | const NDataStream & | data, | |
nint32 | size | |||
) | [virtual] |
Calculates the hash of arbitrary data.
data | The data to be calculated | |
size | Number of bytes to calculate the hash |
Implements NAbstractHash.
Definition at line 49 of file nmd5hash.cpp.
References NAbstractHash::cleanup(), NDataStream::data(), and NAbstractHash::update().
Calculates the hash of a file.
filename | The full path to the file to calculate |
Implements NAbstractHash.
Definition at line 59 of file nmd5hash.cpp.
References NIODevice::ReadOnly.
Calculates the hash of a file.
file | A pointer to an open NFile object |
Implements NAbstractHash.
Definition at line 67 of file nmd5hash.cpp.
References NFile::atEnd(), NAbstractHash::cleanup(), NDataStream::data(), NFile::read(), NDataStream::size(), and NAbstractHash::update().