KMD4 Class Reference
An adapted C++ implementation of the MD4 Message-Digest algorithm. More...
#include <kmdcodec.h>
Public Types | |
typedef unsigned char | Digest [16] |
Public Member Functions | |
KMD4 (const char *in, int len=-1) | |
KMD4 (const QByteArray &a) | |
KMD4 (const QCString &a) | |
void | update (const char *in, int len=-1) |
void | update (const unsigned char *in, int len=-1) |
void | update (const QByteArray &in) |
void | update (const QCString &in) |
bool | update (QIODevice &file) |
void | reset () |
const Digest & | rawDigest () |
void | rawDigest (KMD4::Digest &bin) |
QCString | hexDigest () |
void | hexDigest (QCString &) |
QCString | base64Digest () |
bool | verify (const KMD4::Digest &digest) |
bool | verify (const QCString &) |
Protected Member Functions | |
void | transform (Q_UINT32 buf[4], Q_UINT32 const in[16]) |
void | finalize () |
Detailed Description
An adapted C++ implementation of the MD4 Message-Digest algorithm.
- Since:
- 3.4
Definition at line 577 of file kmdcodec.h.
Constructor & Destructor Documentation
|
Constructor that updates the digest for the given string.
Definition at line 1145 of file kmdcodec.cpp. References update(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Same as above except it accepts a QByteArray as its argument.
Definition at line 1151 of file kmdcodec.cpp. References update(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Same as above except it accepts a QCString as its argument.
Definition at line 1157 of file kmdcodec.cpp. References update(). |
Member Function Documentation
|
Updates the message to be digested. Be sure to add all data before you read the digest. After reading the digest, you can not add more data!
Definition at line 617 of file kmdcodec.h. |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1177 of file kmdcodec.cpp. References endl(), and transform(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1163 of file kmdcodec.cpp. References update(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1168 of file kmdcodec.cpp. References update(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. reads the data from an I/O device, i.e. from a file (QFile). NOTE that the file must be open for reading.
Definition at line 1235 of file kmdcodec.cpp. References update(). |
|
Calling this function will reset the calculated message digest. Use this method to perform another message digest calculation without recreating the KMD4 object. Definition at line 1364 of file kmdcodec.cpp. |
|
Definition at line 1309 of file kmdcodec.cpp. References finalize(). Referenced by verify(). |
|
Fills the given array with the binary representation of the message digest. Use this method if you do not want to worry about making copy of the digest once you obtain it.
Definition at line 1315 of file kmdcodec.cpp. References finalize(). |
|
Returns the value of the calculated message digest in a hexadecimal representation.
Definition at line 1321 of file kmdcodec.cpp. References finalize(). Referenced by verify(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1334 of file kmdcodec.cpp. References finalize(). |
|
Returns the value of the calculated message digest in a base64-encoded representation.
Definition at line 1344 of file kmdcodec.cpp. References KCodecs::base64Encode(), and finalize(). |
|
returns true if the calculated digest for the given message matches the given one.
Definition at line 1297 of file kmdcodec.cpp. References finalize(), and rawDigest(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1303 of file kmdcodec.cpp. References finalize(), and hexDigest(). |
|
Performs the real update work. Note that length is implied to be 64. Definition at line 1439 of file kmdcodec.cpp. Referenced by finalize(), and update(). |
|
finalizes the digest
Definition at line 1250 of file kmdcodec.cpp. References transform(). Referenced by base64Digest(), hexDigest(), rawDigest(), and verify(). |
The documentation for this class was generated from the following files: