#include <pdigest.h>
Inheritance diagram for P::Digest:

Public Member Functions | |
| Digest () | |
| virtual | ~Digest () |
| virtual void | update (const char *buff, size_t len)=0 |
| Update digest sum. | |
| virtual std::string | digest () const=0 |
| Get the current digest. | |
| virtual void | clear ()=0 |
| Clear the digest. | |
| Digest & | operator<< (const std::string &str) |
| Update digest sum. | |
Friends | |
| PCRYPTO_EXPORT std::ostream & | operator<< (std::ostream &os, const Digest &dig) |
| Output digest. | |
The base class for digest algorithms.
Definition at line 39 of file pdigest.h.
|
|
|
|
|
|
|
|
Clear the digest. Reinitializes the digest object. Wipes out current object state and reinitializes it with the magic values. After that you can calculate another digest using update(). Implemented in P::MD4Digest, P::MD5Digest, and P::SHA1Digest. |
|
|
Get the current digest. Retrieves the current digest sum as a string. The method does not wipe out the current object state, if you want to re-use the object to calculate another sum call clear().
Implemented in P::MD4Digest, P::MD5Digest, and P::SHA1Digest. |
|
|
Update digest sum.
|
|
||||||||||||
|
Update digest sum. Updates the digest. The method may be called many times before the digest string is being retrieved with digest().
Implemented in P::MD4Digest, P::MD5Digest, and P::SHA1Digest. |
|
||||||||||||
|
Output digest.
|
1.3.3