|
VMime
|
#include <sha1MessageDigest.hpp>


Public Member Functions | |
| sha1MessageDigest () | |
| void | update (const byte_t b) |
| void | update (const string &s) |
| void | update (const byte_t *buffer, const size_t len) |
| void | update (const byte_t *buffer, const size_t offset, const size_t len) |
| void | finalize () |
| void | finalize (const string &s) |
| void | finalize (const byte_t *buffer, const size_t len) |
| void | finalize (const byte_t *buffer, const size_t offset, const size_t len) |
| size_t | getDigestLength () const |
| const byte_t * | getDigest () const |
| void | reset () |
Protected Member Functions | |
| void | init () |
| Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Static Protected Member Functions | |
| static void | transform (unsigned int state[5], const byte_t buffer[64]) |
Protected Attributes | |
| unsigned int | m_state [5] |
| unsigned int | m_count [2] |
| byte_t | m_buffer [64] |
| byte_t | m_digest [20] |
| sha1MessageDigest | ( | ) |
References init().
|
virtual |
Completes the hash computation by performing final operations such as padding.
Implements messageDigest.
References m_buffer, m_count, m_digest, m_state, and update().
Referenced by finalize(), finalize(), and finalize().
Completes the hash computation by performing final operations such as padding.
This is equivalent to calling update() and then finalize().
Implements messageDigest.
References finalize(), and update().
Completes the hash computation by performing final operations such as padding.
This is equivalent to calling update() and then finalize().
Implements messageDigest.
References finalize().
|
virtual |
Completes the hash computation by performing final operations such as padding.
This is equivalent to calling update() and then finalize().
Implements messageDigest.
References finalize().
|
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().
Implements messageDigest.
References m_digest.
|
virtual |
Returns the length of the hash.
This is the length of the array returned by getDigest().
Implements messageDigest.
|
protected |
References m_count, and m_state.
Referenced by reset(), and sha1MessageDigest().
|
virtual |
Resets the algorithm to its initial state, so that you can compute a new hash using the same object.
Implements messageDigest.
References init().
|
staticprotected |
Updates the digest using the specified array of bytes.
| buffer | array of bytes |
| len | number of bytes to use in the buffer |
Implements messageDigest.
References m_buffer, m_count, m_state, and transform().
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 |
Implements messageDigest.
References update().
|
virtual |
Updates the digest using the specified byte.
| b | the byte with which to update the digest. |
Implements messageDigest.
References update().
Referenced by finalize(), finalize(), update(), update(), and update().
|
virtual |
Updates the digest using the specified string.
| s | the string with which to update the digest. |
Implements messageDigest.
References update().
|
protected |
Referenced by finalize(), and update().
|
protected |
Referenced by finalize(), init(), and update().
|
protected |
Referenced by finalize(), and getDigest().
|
protected |
Referenced by finalize(), init(), and update().