This class provides the MD5 checksum calculation routines.
More...
#include <Imt.Base.Core.Util/MD5.h>
This class provides the MD5 checksum calculation routines.
◆ MD5()
imt::base::core::util::MD5::MD5 |
( |
void |
| ) |
|
|
explicit |
Constructor.
Creates a MD5 hash calculation instance
◆ ~MD5()
virtual imt::base::core::util::MD5::~MD5 |
( |
void |
| ) |
|
|
virtual |
◆ areEqual()
static bool imt::base::core::util::MD5::areEqual |
( |
const uint8_t |
expected[MD5_HASH_SIZE], |
|
|
const uint8_t |
current[MD5_HASH_SIZE] |
|
) |
| |
|
static |
Compares two MD5 hashes and returns true if they are equal.
- Parameters
-
expected | The expected checksum. |
current | The current checksum. |
- Returns
- True if the given MD5 hashes are equal.
◆ finalize()
void imt::base::core::util::MD5::finalize |
( |
uint8_t |
digest[MD5_HASH_SIZE] | ) |
|
Finalization ends the md5 message-digest operation, writing the the message digest and zeroizing the context.
- Parameters
-
digest | This is an OUT parameter which contains the created hash after the method returns. |
◆ resetMd5Hash()
static void imt::base::core::util::MD5::resetMd5Hash |
( |
uint8_t |
md5Hash[MD5_HASH_SIZE] | ) |
|
|
static |
Resets the MD5 hash array.
- Parameters
-
md5Hash | MD5 hash to be reset. |
◆ update()
void imt::base::core::util::MD5::update |
( |
const uint8_t |
pData[], |
|
|
const uint32_t |
dataSize |
|
) |
| |
Block update operation.
Continues an md5 message-digest operation, processing another message block, and updating the internal calculation context.
- Parameters
-
pData | The data to write into the context |
dataSize | The size of the input data |
◆ MD5_HASH_SIZE
const uint32_t imt::base::core::util::MD5::MD5_HASH_SIZE = 16U |
|
static |
Defines the size of an md5 hash.
The documentation for this class was generated from the following file:
- D:/_Work/10/s/Imt.Base/Imt.Base.Core.Util/MD5.h