libcommonc++  0.7
Digest Class Referenceabstract

An abstract base class for message digests. More...

#include <Digest.h++>

Inheritance diagram for Digest:

Public Member Functions

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

Detailed Description

An abstract base class for message digests.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ~Digest()

~Digest ( )
virtual

Destructor.

Member Function Documentation

◆ finish()

virtual void finish ( byte_t digest)
pure virtual

Finish generating the digest.

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

Implemented in MD5Digest, and SHA1Digest.

◆ reset()

virtual void reset ( )
pure virtual

Reset the object for a new digest.

Implemented in MD5Digest, and SHA1Digest.

◆ size()

virtual size_t size ( ) const
pure virtual

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

Implemented in MD5Digest, and SHA1Digest.

◆ update()

virtual void update ( const byte_t buf,
size_t  len 
)
pure virtual

Update the digest with more data.

Parameters
bufA pointer to the data.
lenThe length of the data.
Exceptions
IOExceptionIf the maximum length of data that this class can compute a digest for would be exceeded by this call.

Implemented in MD5Digest, and SHA1Digest.


The documentation for this class was generated from the following files: