md5 Class Reference

Implementation of the MD5 algorithm. More...

#include <boostext/md5.hpp>

List of all members.


class  digest_type
 A message digest. More...

Public Types

typedef unsigned char uint8_t
typedef unsigned int uint32_t

Public Member Functions

 md5 ()
 ~md5 ()
 md5 (const char *a_str)
 md5 (const void *a_data, uint32_t a_data_size)
 md5 (std::istream &a_istream)
 md5 (std::istream &a_istream, uint32_t a_size)
 md5 (std::string a_str)
void update (const char *a_str)
void update (const void *a_data, uint32_t a_data_size)
void update (std::istream &a_istream)
void update (std::istream &a_istream, uint32_t a_size)
const digest_typedigest ()

Protected Member Functions

void init ()
void process_block (const uint8_t(*a_block)[64])

Detailed Description

Implementation of the MD5 algorithm.

"The [MD5] algorithm takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input. It is conjectured that it is computationally infeasible to produce two messages having the same message digest, or to produce any message having a given prespecified target message digest. ... The MD5 algorithm is designed to be quite fast on 32-bit machines." -RFC1321

Member Typedef Documentation

typedef unsigned int uint32_t

typedef unsigned char uint8_t

Constructor & Destructor Documentation

md5 (  ) 

~md5 (  ) 

md5 ( const char *  a_str  ) 

md5 ( const void *  a_data,
uint32_t  a_data_size 

md5 ( std::istream &  a_istream  ) 

md5 ( std::istream &  a_istream,
uint32_t  a_size 

md5 ( std::string  a_str  ) 

Member Function Documentation

const digest_type& digest (  ) 

void init (  )  [protected]

void process_block ( const uint8_t(*)  a_block[64]  )  [protected]

void update ( std::istream &  a_istream,
uint32_t  a_size 

void update ( std::istream &  a_istream  ) 

void update ( const void *  a_data,
uint32_t  a_data_size 

void update ( const char *  a_str  ) 

Generated by  doxygen