VMime
|
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 () |
![]() | |
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] |
References sha1MessageDigest::init().
|
virtual |
Completes the hash computation by performing final operations such as padding.
Implements messageDigest.
References sha1MessageDigest::m_buffer, sha1MessageDigest::m_count, sha1MessageDigest::m_digest, sha1MessageDigest::m_state, and sha1MessageDigest::update().
Referenced by sha1MessageDigest::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 sha1MessageDigest::finalize().
Completes the hash computation by performing final operations such as padding.
This is equivalent to calling update() and then finalize().
Implements messageDigest.
References sha1MessageDigest::finalize(), and sha1MessageDigest::update().
Completes the hash computation by performing final operations such as padding.
This is equivalent to calling update() and then finalize().
Implements messageDigest.
References sha1MessageDigest::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 sha1MessageDigest::m_digest.
|
virtual |
Returns the length of the hash.
This is the length of the array returned by getDigest().
Implements messageDigest.
|
protected |
References sha1MessageDigest::m_count, and sha1MessageDigest::m_state.
Referenced by sha1MessageDigest::reset(), and sha1MessageDigest::sha1MessageDigest().
|
virtual |
Resets the algorithm to its initial state, so that you can compute a new hash using the same object.
Implements messageDigest.
References sha1MessageDigest::init().
|
staticprotected |
|
virtual |
Updates the digest using the specified byte.
b | the byte with which to update the digest. |
Implements messageDigest.
Referenced by sha1MessageDigest::finalize(), and sha1MessageDigest::update().
|
virtual |
Updates the digest using the specified string.
s | the string with which to update the digest. |
Implements messageDigest.
References sha1MessageDigest::update().
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 sha1MessageDigest::m_buffer, sha1MessageDigest::m_count, sha1MessageDigest::m_state, and sha1MessageDigest::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 sha1MessageDigest::update().
|
protected |
Referenced by sha1MessageDigest::finalize(), and sha1MessageDigest::update().
|
protected |
Referenced by sha1MessageDigest::finalize(), sha1MessageDigest::init(), and sha1MessageDigest::update().
|
protected |
Referenced by sha1MessageDigest::finalize(), and sha1MessageDigest::getDigest().
|
protected |
Referenced by sha1MessageDigest::finalize(), sha1MessageDigest::init(), and sha1MessageDigest::update().