Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches

MD5 hash generator. More...

#include <md5.hpp>

Public Types

typedef std::array< std::uint8_t, 16 > digest_t

Public Member Functions

 md5_t ()
void update (void *input_block, std::size_t input_length)
digest_t final ()

(Note that these are not member symbols.)

md5_t::digest_t md5 (void *input_block, std::size_t input_length)

Detailed Description

Definition at line 94 of file md5.hpp.

Member Typedef Documentation

◆ digest_t

typedef std::array<std::uint8_t, 16> digest_t

Type used to store the digest result of an MD5 hash

Definition at line 96 of file md5.hpp.

Constructor & Destructor Documentation

◆ md5_t()

md5_t ( )

Member Function Documentation

◆ update()

void update ( void * input_block,
std::size_t input_length )

Includes a block of data in the MD5 hash being performed.

Parameters
input_blockThe block of data to be hashed
input_lengthLength in bytes of the input data

◆ final()

digest_t final ( )

Finalizes the input hash and clears the MD5 hash state information

Returns
An MD5 digest of the input blocks specified

◆ md5()

md5_t::digest_t md5 ( void * input_block,
std::size_t input_length )
related

Quick and dirty MD5 hash function for a single input block

Parameters
input_blockThe block of data to be hashed
input_lengthLength in bytes of the input data
Returns
An MD5 digest of the input block for the length specified

Definition at line 124 of file md5.hpp.