libcommonc++
0.7
|
An abstract base class for message digests. More...
#include <Digest.h++>
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... | |
An abstract base class for message digests.
|
virtual |
Destructor.
|
pure virtual |
Finish generating the digest.
digest | The array into which to store the digest. This array must be at least the length returned by size() . |
Implemented in MD5Digest, and SHA1Digest.
|
pure virtual |
Reset the object for a new digest.
Implemented in MD5Digest, and SHA1Digest.
|
pure virtual |
Return the size of the digest generated by this class, in bytes.
Implemented in MD5Digest, and SHA1Digest.
|
pure virtual |
Update the digest with more data.
buf | A pointer to the data. |
len | The length of the data. |
IOException | If the maximum length of data that this class can compute a digest for would be exceeded by this call. |
Implemented in MD5Digest, and SHA1Digest.