#include <md5.hpp>
Inheritance diagram for MD5:
Public Member Functions | |
wxString | getValue (const bool hexInUpperCase=false) const |
Returns the MD5 checksum value in a string. | |
void * | getValue (void *buffer) const |
Returns the MD5 checksum value in the first 16 bytes of the given adress. | |
MD5 () | |
Default constructor. | |
void | reset () |
Resets the MD5 checksum to initial state of computation. | |
void | update (const wxByte *buf, unsigned int len) |
Updates the MD5 checksum with specified array of bytes. | |
Protected Member Functions | |
void | finish () |
Process the remaining bytes in the internal buffer and the usual prolog according to the standard. | |
void | process_block (const void *buf, size_t len) |
Process len bytes of buf, accumulating context in this. | |
Protected Attributes | |
wxUint32 | A_ |
First part of the state of computation. | |
wxUint32 | B_ |
Second part of the state of computation. | |
wxUint32 | buflen |
Current size of the input buffer. | |
wxUint32 | C_ |
Third part of the state of computation. | |
wxUint32 | D_ |
Fourth part of the state of computation. | |
wxByte | ibuffer [128] |
Input buffer. | |
wxUint32 | total [2] |
Number of bits mod 2^64. | |
Static Protected Attributes | |
const wxByte | fillbuf [64] |
The bytes used to pad the buffer to the next 64-byte boundary (RFC 1321, 3.1: Step 1). |
This class is a rewrite in C++ of the md5 checksum computing algorithm present in the GNU coreutils. Please see the GNU projet website for more informations.
Using this class in very simple:<BR> Use the update method to provide to the class the bytes for computing the checksum.
The MD5 checksum value can be gotten by two ways:
Definition at line 63 of file md5.hpp.
|
Default constructor.
Definition at line 61 of file md5.cpp. References reset(). |
|
Process the remaining bytes in the internal buffer and the usual prolog according to the standard.
Definition at line 89 of file md5.cpp. References buflen, fillbuf, ibuffer, process_block(), and total. Referenced by getValue(). |
|
Returns the MD5 checksum value in a string.
Implements Checksum. Definition at line 377 of file md5.cpp. References getValue(). |
|
Returns the MD5 checksum value in the first 16 bytes of the given adress.
Definition at line 359 of file md5.cpp. References A_, B_, C_, D_, finish(), and getValue(). Referenced by getValue(). |
|
Process len bytes of buf, accumulating context in this.
It is assumed that
Definition at line 205 of file md5.cpp. References A_, B_, C_, D_, FG, FH, FI, process_block(), and total. Referenced by finish(), process_block(), and update(). |
|
Resets the MD5 checksum to initial state of computation.
Implements Checksum. Definition at line 71 of file md5.cpp. References A_, B_, buflen, C_, D_, and total. Referenced by MD5(). |
|
Updates the MD5 checksum with specified array of bytes.
Implements Checksum. Definition at line 116 of file md5.cpp. References buflen, ibuffer, process_block(), and update(). Referenced by update(). |
|
First part of the state of computation.
Definition at line 73 of file md5.hpp. Referenced by getValue(), process_block(), and reset(). |
|
Second part of the state of computation.
Definition at line 74 of file md5.hpp. Referenced by getValue(), process_block(), and reset(). |
|
Current size of the input buffer.
|
|
Third part of the state of computation.
Definition at line 75 of file md5.hpp. Referenced by getValue(), process_block(), and reset(). |
|
Fourth part of the state of computation.
Definition at line 76 of file md5.hpp. Referenced by getValue(), process_block(), and reset(). |
|
Initial value: The bytes used to pad the buffer to the next 64-byte boundary (RFC 1321, 3.1: Step 1).
Definition at line 51 of file md5.cpp. Referenced by finish(). |
|
Input buffer.
|
|
Number of bits mod 2^64.
Definition at line 78 of file md5.hpp. Referenced by finish(), process_block(), and reset(). |