VMime
|
Public Member Functions | |
virtual void | update (const string &s)=0 |
virtual void | update (const byte_t b)=0 |
virtual void | update (const byte_t *buffer, const size_t len)=0 |
virtual void | update (const byte_t *buffer, const size_t offset, const size_t len)=0 |
virtual void | finalize ()=0 |
virtual void | finalize (const string &s)=0 |
virtual void | finalize (const byte_t *buffer, const size_t len)=0 |
virtual void | finalize (const byte_t *buffer, const size_t offset, const size_t len)=0 |
virtual size_t | getDigestLength () const =0 |
virtual const byte_t * | getDigest () const =0 |
virtual const string | getHexDigest () const |
virtual void | reset ()=0 |
Additional Inherited Members | |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Computes message digests using standard algorithms, such as MD5 or SHA.
|
pure virtual |
Completes the hash computation by performing final operations such as padding.
Implemented in sha1MessageDigest.
|
pure virtual |
Completes the hash computation by performing final operations such as padding.
This is equivalent to calling update() and then finalize().
Implemented in sha1MessageDigest.
Completes the hash computation by performing final operations such as padding.
This is equivalent to calling update() and then finalize().
Implemented in sha1MessageDigest.
Completes the hash computation by performing final operations such as padding.
This is equivalent to calling update() and then finalize().
Implemented in sha1MessageDigest.
|
pure virtual |
Returns the hash, as computed by the algorithm.
You must call finalize() before using this function, or the hash will not be correct. To get the size of the returned array, call getDigestLength().
Implemented in sha1MessageDigest.
Referenced by messageDigest::getHexDigest().
|
pure virtual |
Returns the length of the hash.
This is the length of the array returned by getDigest().
Implemented in sha1MessageDigest.
Referenced by messageDigest::getHexDigest().
|
virtual |
Returns the hash as an hexadecimal string.
You must call finalize() before using this function, or the hash will not be correct.
References messageDigest::getDigest(), and messageDigest::getDigestLength().
|
pure virtual |
Resets the algorithm to its initial state, so that you can compute a new hash using the same object.
Implemented in sha1MessageDigest.
|
pure virtual |
Updates the digest using the specified string.
s | the string with which to update the digest. |
Implemented in sha1MessageDigest.
|
pure virtual |
Updates the digest using the specified byte.
b | the byte with which to update the digest. |
Implemented in sha1MessageDigest.
Updates the digest using the specified array of bytes.
buffer | array of bytes |
len | number of bytes to use in the buffer |
Implemented in sha1MessageDigest.
Updates the digest using the specified array of bytes, starting at the specified offset.
buffer | array of bytes |
offset | offset to start from in the array of bytes |
len | number of bytes to use, starting at offset |
Implemented in sha1MessageDigest.