DUNE: Uniform Navigational Environment
2016.09.0
|
MD-5 Algorithm (RFC 1321).
Classes | |
struct | MD5_HANDLE |
Public Member Functions | |
MD5 (void) | |
~MD5 (void) | |
void | reset (void) |
void | update (const uint8_t *data, int size) |
void | finalize (uint8_t *digest) |
Static Public Member Functions | |
static void | compute (const uint8_t *buffer, unsigned int len, uint8_t *digest) |
static void | compute (const char *path, uint8_t *digest) |
DUNE::Algorithms::MD5::MD5 | ( | void | ) |
Constructor.
References reset().
DUNE::Algorithms::MD5::~MD5 | ( | void | ) |
Destructor.
|
static |
|
static |
void DUNE::Algorithms::MD5::finalize | ( | uint8_t * | digest | ) |
Finalize MD5 hash and obtain digest.
digest | output digest (16 bytes long) |
References DUNE::Algorithms::MD5::MD5_HANDLE::ctx.
void DUNE::Algorithms::MD5::reset | ( | void | ) |
void DUNE::Algorithms::MD5::update | ( | const uint8_t * | data, |
int | size | ||
) |
Update MD5 hash with input data.
data | data buffer |
size | length of data |
References DUNE::Algorithms::MD5::MD5_HANDLE::ctx.