stdex
Additional custom or not Standard C++ covered algorithms
|
Hashing in blocks. More...
#include <stdex/hash.hpp>
Public Member Functions | |
virtual void | clear () |
Initializes hash value and internal state. | |
virtual void | hash (_In_reads_bytes_opt_(length) const void *data, size_t length) |
Hashes block of data. | |
![]() | |
virtual void | finalize ()=0 |
Finalizes hash value. | |
const T & | data () |
Returns hash value. | |
operator const T & () const | |
Returns hash value. | |
Protected Member Functions | |
virtual void | hash_block ()=0 |
Protected Attributes | ||
uint32_t | m_counter [2] | |
union { | ||
uint8_t m_queue [64] | ||
uint32_t m_temp [16] | ||
}; | ||
![]() | ||
T | m_value | |
Additional Inherited Members | |
![]() | |
static size_t | size () |
Returns size of the hash value in bytes. | |
Hashing in blocks.
|
inlinevirtual |
Initializes hash value and internal state.
Implements stdex::basic_hash< T >.
Reimplemented in stdex::md5_hash, and stdex::sha1_hash.
|
inlinevirtual |
Hashes block of data.
[in] | data | Pointer to data |
[in] | length | Amount of data in bytes |
Implements stdex::basic_hash< T >.