Security Scol plugin
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned > Class Template Reference

Iterated hash with a static transformation function. More...

#include <iterhash.h>

Inheritance diagram for IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >:
ClonableImpl< T_Transform, AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform > > AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform > IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base > IteratedHashBase< T, BASE >

Public Member Functions

 CRYPTOPP_CONSTANT (DIGESTSIZE=T_DigestSize ? T_DigestSize :T_StateSize)
 
unsigned int DigestSize () const
 Provides the digest size of the hash.
 
- Public Member Functions inherited from ClonableImpl< T_Transform, AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform > >
ClonableClone () const
 Create a copy of this object.
 
- Public Member Functions inherited from AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform >
std::string AlgorithmName () const
 The algorithm name.
 
- Public Member Functions inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base >
 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.
 
- Public Member Functions inherited from IteratedHashBase< T, BASE >
 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.
 
byteCreateUpdateSpace (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.
 

Protected Types

enum  { Blocks = T_BlockSize/sizeof(T_HashWordType) }
 
- Protected Types inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base >
enum  { Blocks = T_BlockSize/sizeof(T_HashWordType) }
 

Protected Member Functions

void HashEndianCorrectedBlock (const T_HashWordType *data)
 
void Init ()
 
T_HashWordType * StateBuf ()
 
- Protected Member Functions inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base >
T_HashWordType * DataBuf ()
 
- Protected Member Functions inherited from IteratedHashBase< T, BASE >
GetBitCountHi () const
 
GetBitCountLo () const
 
void PadLastBlock (unsigned int lastBlockSize, byte padFirst=0x80)
 
virtual void HashEndianCorrectedBlock (const HashWordType *data)=0
 
virtual size_t HashMultipleBlocks (const T *input, size_t length)
 
void HashBlock (const HashWordType *input)
 

Protected Attributes

FixedSizeAlignedSecBlock< T_HashWordType, Blocks, T_StateAligned > m_state
 
- Protected Attributes inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base >
FixedSizeSecBlock< T_HashWordType, Blocks > m_data
 

Additional Inherited Members

- Public Types inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize, T_Base >
typedef T_Endianness ByteOrderClass
 
typedef T_HashWordType HashWordType
 
- Public Types inherited from IteratedHashBase< T, BASE >
typedef T HashWordType
 
- Static Public Member Functions inherited from AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform >
static std::string CRYPTOPP_API StaticAlgorithmName ()
 The algorithm name.
 

Detailed Description

template<class T_HashWordType, class T_Endianness, unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform, unsigned int T_DigestSize = 0, bool T_StateAligned = false>
class IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >

Iterated hash with a static transformation function.

Template Parameters
T_HashWordTypeHash word type
T_EndiannessEndianness type of hash
T_BlockSizeBlock size of the hash
T_StateSizeInternal state size of the hash
T_TransformHashTransformation derived class
T_DigestSizeDigest size of the hash
T_StateAlignedFlag indicating if state is 16-byte aligned
See also
HashTransformation, MessageAuthenticationCode

Definition at line 180 of file iterhash.h.

Member Enumeration Documentation

◆ anonymous enum

template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform , unsigned int T_DigestSize = 0, bool T_StateAligned = false>
anonymous enum
protected

Definition at line 199 of file iterhash.h.

Constructor & Destructor Documentation

◆ ~IteratedHashWithStaticTransform()

template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform , unsigned int T_DigestSize = 0, bool T_StateAligned = false>
virtual IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >::~IteratedHashWithStaticTransform ( )
inlinevirtual

Definition at line 186 of file iterhash.h.

◆ IteratedHashWithStaticTransform()

template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform , unsigned int T_DigestSize = 0, bool T_StateAligned = false>
IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >::IteratedHashWithStaticTransform ( )
inlineprotected

Definition at line 195 of file iterhash.h.

Member Function Documentation

◆ DigestSize()

template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform , unsigned int T_DigestSize = 0, bool T_StateAligned = false>
unsigned int IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >::DigestSize ( ) const
inline

Provides the digest size of the hash.

Returns
the digest size of the hash, in bytes

DigestSize() returns DIGESTSIZE.

Definition at line 191 of file iterhash.h.

◆ HashEndianCorrectedBlock()

template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform , unsigned int T_DigestSize = 0, bool T_StateAligned = false>
void IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >::HashEndianCorrectedBlock ( const T_HashWordType *  data)
inlineprotected

Definition at line 196 of file iterhash.h.

◆ Init()

template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform , unsigned int T_DigestSize = 0, bool T_StateAligned = false>
void IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >::Init ( )
inlineprotectedvirtual

Implements IteratedHashBase< T, BASE >.

Definition at line 197 of file iterhash.h.

◆ StateBuf()

template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform , unsigned int T_DigestSize = 0, bool T_StateAligned = false>
T_HashWordType * IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >::StateBuf ( )
inlineprotectedvirtual

Implements IteratedHashBase< T, BASE >.

Definition at line 200 of file iterhash.h.

Member Data Documentation

◆ m_state

template<class T_HashWordType , class T_Endianness , unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform , unsigned int T_DigestSize = 0, bool T_StateAligned = false>
FixedSizeAlignedSecBlock<T_HashWordType, Blocks, T_StateAligned> IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >::m_state
protected

Definition at line 201 of file iterhash.h.


The documentation for this class was generated from the following file: