|
VideoTools
|
A class that calculates an md5 digest from one or more 64-byte blocks of data using the algorithm described by RFC 1321. More...
#include <md5.h>
Classes | |
| struct | state_type |
| Holds the md5 algorithm state. Used by md5::digest. More... | |
Public Member Functions | |
| digest () | |
| Default constructor. More... | |
| digest (const string_type &s) | |
| Constuctor. More... | |
| digest (state_type) | |
| Constructor taking the result of an earlier call to state(). More... | |
| state_type | state () const |
| Returns the internal state. More... | |
| void | add (const block &) |
| Adds a 64-byte block of the message. | |
A class that calculates an md5 digest from one or more 64-byte blocks of data using the algorithm described by RFC 1321.
Digests are made up of four integers which can be formatted into more usable forms using the md5::format class.
A digest can be calculated in one go from an arbitrarily-sized block of data, or incrementally from a series of 64-byte blocks. The 64-byte blocks must be passed as md5::block objects.
In practice the requirement for 64-byte blocks of input data may be inconvenient, so the md5::digest_stream class is provided to allow calculation of digests from a stream of arbitrarily-sized data blocks.
| md5::digest::digest | ( | ) |
|
explicit |
|
explicit |
| md5::digest::state_type md5::digest::state | ( | ) | const |
Returns the internal state.
Typically passed to the md5::format class.