|
|
| CRYPTOPP_CONSTANT (BLOCKSIZE=T_BlockSize) |
| |
|
| CRYPTOPP_COMPILE_ASSERT ((T_BlockSize &(T_BlockSize - 1))==0) |
| |
| unsigned int | BlockSize () const |
| | Provides the block size of the hash.
|
| |
| ByteOrder | GetByteOrder () const |
| | Provides the byte order of the hash.
|
| |
| void | CorrectEndianess (HashWordType *out, const HashWordType *in, size_t byteCount) |
| | Adjusts the byte ordering of the hash.
|
| |
| | IteratedHashBase () |
| | Construct an IteratedHashBase.
|
| |
| unsigned int | OptimalBlockSize () const |
| | Provides the input block size most efficient for this cipher.
|
| |
| unsigned int | OptimalDataAlignment () const |
| | Provides input and output data alignment for optimal performance.
|
| |
| void | Update (const byte *input, size_t length) |
| | Updates a hash with additional input.
|
| |
| byte * | CreateUpdateSpace (size_t &size) |
| | Requests space which can be written into by the caller.
|
| |
| void | Restart () |
| | Restart the hash.
|
| |
| void | TruncatedFinal (byte *digest, size_t digestSize) |
| | Computes the hash of the current message.
|
| |
| virtual std::string | AlgorithmProvider () const |
| | Retrieve the provider of this algorithm.
|
| |
template<class T_HashWordType, class T_Endianness, unsigned int T_BlockSize, class T_Base = HashTransformation>
class IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base >
Iterated hash base class.
- Template Parameters
-
| T_HashWordType | Hash word type |
| T_Endianness | Endianness type of hash |
| T_BlockSize | Block size of the hash |
| T_Base | HashTransformation derived class |
IteratedHash provides a default implementation for block-based iterated hashes
- See also
- HashTransformation, MessageAuthenticationCode
Definition at line 126 of file iterhash.h.
template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, class T_Base = HashTransformation>
| unsigned int IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base >::BlockSize |
( |
| ) |
const |
|
inline |
Provides the block size of the hash.
- Returns
- the block size of the hash, in bytes
BlockSize() returns T_BlockSize.
Definition at line 141 of file iterhash.h.
template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, class T_Base = HashTransformation>
| void IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base >::CorrectEndianess |
( |
HashWordType * |
out, |
|
|
const HashWordType * |
in, |
|
|
size_t |
byteCount |
|
) |
| |
|
inline |
Adjusts the byte ordering of the hash.
- Parameters
-
| out | the output buffer |
| in | the input buffer |
| byteCount | the size of the buffers, in bytes |
CorrectEndianess() calls ConditionalByteReverse() using T_Endianness.
Definition at line 154 of file iterhash.h.
template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, class T_Base = HashTransformation>