#include <cel_checksum.h>
This class defines the common interface for the checksum (hash) classes.
Currently, only MD5Checksum is supported.
- See Also
- MD5Checksum, ChecksumStream
virtual const u8* Celartem::Checksum::getCurrentSum |
( |
| ) |
|
|
pure virtual |
This method gets the current sum as the binary block.
- Returns
- Pointer that points the binary block. This pointer is valid until the next call to the method of the instance. The size of that block is obtained by getSumSize method.
virtual size_t Celartem::Checksum::getSumSize |
( |
| ) |
|
|
pure virtual |
This method gets the size of sums in bytes that is generated by the instance. The size of sum is usually a constant; MD5 uses 16, SHA-1 uses 20.
- Returns
- The size of sums.
virtual void Celartem::Checksum::reset |
( |
| ) |
|
|
pure virtual |
This method resets the current sum and revert to the initial state.
virtual void Celartem::Checksum::update |
( |
const void * |
inBuffer, |
|
|
size_t |
inSize |
|
) |
| |
|
pure virtual |
This method updates the status using the specified data.
- Parameters
-
inBuffer | Pointer to a buffer that contains data to be used. |
inSize | The size of the data. |
virtual void Celartem::Checksum::update |
( |
const String & |
inString | ) |
|
|
pure virtual |
This method updates the status using the specified string.
- Parameters
-
inString | A String instance. The terminating '\0' is not used to update the status. |
The documentation for this class was generated from the following file: