MD5Digest Class Reference

A class for generating MD5 digests. More...

#include <MD5Digest.h++>

Inheritance diagram for MD5Digest:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MD5Digest () throw ()
 Construct a new MD5Digest.
virtual ~MD5Digest () throw ()
 Destructor.
virtual size_t size () const throw ()
 Return the size of the digest generated by this class, in bytes.
virtual void update (const byte_t *buf, size_t len) throw (IOException)
 Update the digest with more data.
virtual void finish (byte_t *digest) throw ()
 Finish generating the digest.
virtual void reset () throw ()
 Reset the object for a new digest.

Detailed Description

A class for generating MD5 digests.

Author:
Mark Lindner

Constructor & Destructor Documentation

MD5Digest (  )  throw ()

Construct a new MD5Digest.

~MD5Digest (  )  throw () [virtual]

Destructor.


Member Function Documentation

void finish ( byte_t digest  )  throw () [virtual]

Finish generating the digest.

Parameters:
digest The array into which to store the digest. This array must be at least the length returned by size().

Implements Digest.

void reset (  )  throw () [virtual]

Reset the object for a new digest.

Implements Digest.

virtual size_t size (  )  const throw () [inline, virtual]

Return the size of the digest generated by this class, in bytes.

Implements Digest.

void update ( const byte_t buf,
size_t  len 
) throw (IOException) [virtual]

Update the digest with more data.

Parameters:
buf A pointer to the data.
len The length of the data.
Exceptions:
IOException If the maximum length of data that this class can compute a digest for would be exceeded by this call.

Implements Digest.


The documentation for this class was generated from the following files:
Generated on Sat Nov 26 16:49:09 2011 for libcommonc++ by  doxygen 1.6.3