Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | 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 >:
[legend]
Collaboration diagram for IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >:
[legend]

Public Member Functions

virtual ~IteratedHashWithStaticTransform ()
 
unsigned int DigestSize () const
 Provides the digest size of the hash. More...
 
- Public Member Functions inherited from ClonableImpl< T_Transform, AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform > >
ClonableClone () const
 
- Public Member Functions inherited from AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform >
std::string AlgorithmName () const
 
- Public Member Functions inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >
 CRYPTOPP_COMPILE_ASSERT ((T_BlockSize &(T_BlockSize-1))==0)
 
virtual ~IteratedHash ()
 
unsigned int BlockSize () const
 Provides the block size of the hash. More...
 
ByteOrder GetByteOrder () const
 Provides the byte order of the hash. More...
 
void CorrectEndianess (HashWordType *out, const HashWordType *in, size_t byteCount)
 Adjusts the byte ordering of the hash. More...
 
- Public Member Functions inherited from IteratedHashBase< T_HashWordType, HashTransformation >
 IteratedHashBase ()
 Construct an IteratedHashBase. More...
 
unsigned int OptimalBlockSize () const
 Provides the input block size most efficient for this cipher. More...
 
unsigned int OptimalDataAlignment () const
 Provides input and output data alignment for optimal performance. More...
 
void Update (const byte *input, size_t length)
 Updates a hash with additional input. More...
 
byteCreateUpdateSpace (size_t &size)
 Requests space which can be written into by the caller. More...
 
void Restart ()
 Restart the hash. More...
 
void TruncatedFinal (byte *digest, size_t digestSize)
 Computes the hash of the current message. More...
 
- Public Member Functions inherited from HashTransformation
virtual ~HashTransformation ()
 
HashTransformationRef ()
 Provides a reference to this object. More...
 
virtual void Final (byte *digest)
 Computes the hash of the current message. More...
 
unsigned int TagSize () const
 Provides the tag size of the hash. More...
 
virtual void CalculateDigest (byte *digest, const byte *input, size_t length)
 Updates the hash with additional input and computes the hash of the current message. More...
 
virtual bool Verify (const byte *digest)
 Verifies the hash of the current message. More...
 
virtual bool VerifyDigest (const byte *digest, const byte *input, size_t length)
 Updates the hash with additional input and verifies the hash of the current message. More...
 
virtual void CalculateTruncatedDigest (byte *digest, size_t digestSize, const byte *input, size_t length)
 Updates the hash with additional input and computes the hash of the current message. More...
 
virtual bool TruncatedVerify (const byte *digest, size_t digestLength)
 Verifies the hash of the current message. More...
 
virtual bool VerifyTruncatedDigest (const byte *digest, size_t digestLength, const byte *input, size_t length)
 Updates the hash with additional input and verifies the hash of the current message. More...
 
- Public Member Functions inherited from Algorithm
virtual ~Algorithm ()
 
 Algorithm (bool checkSelfTestStatus=true)
 Interface for all crypto algorithms. More...
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()
 

Protected Member Functions

 IteratedHashWithStaticTransform ()
 
void HashEndianCorrectedBlock (const T_HashWordType *data)
 
void Init ()
 
T_HashWordType * StateBuf ()
 
- Protected Member Functions inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >
T_HashWordType * DataBuf ()
 
- Protected Member Functions inherited from IteratedHashBase< T_HashWordType, HashTransformation >
T_HashWordType GetBitCountHi () const
 
T_HashWordType GetBitCountLo () const
 
void PadLastBlock (unsigned int lastBlockSize, byte padFirst=0x80)
 
virtual size_t HashMultipleBlocks (const T_HashWordType *input, size_t length)
 
void HashBlock (const HashWordType *input)
 
- Protected Member Functions inherited from HashTransformation
void ThrowIfInvalidTruncatedSize (size_t size) const
 Validates a truncated digest size. More...
 

Protected Attributes

FixedSizeAlignedSecBlock< T_HashWordType, T_BlockSize/sizeof(T_HashWordType), T_StateAligned > m_state
 
- Protected Attributes inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >
FixedSizeSecBlock< T_HashWordType, T_BlockSize/sizeof(T_HashWordType)> m_data
 

Additional Inherited Members

- Public Types inherited from IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >
typedef T_Endianness ByteOrderClass
 
typedef T_HashWordType HashWordType
 
- Public Types inherited from IteratedHashBase< T_HashWordType, HashTransformation >
typedef T_HashWordType HashWordType
 
- Static Public Member Functions inherited from AlgorithmImpl< IteratedHash< T_HashWordType, T_Endianness, T_BlockSize >, T_Transform >
static std::string CRYPTOPP_API StaticAlgorithmName ()
 

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 150 of file iterhash.h.

Constructor & Destructor Documentation

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 156 of file iterhash.h.

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 164 of file iterhash.h.

Member Function Documentation

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
inlinevirtual

Provides the digest size of the hash.

Returns
the digest size of the hash, in bytes

DigestSize() returns DIGESTSIZE.

Implements HashTransformation.

Definition at line 161 of file iterhash.h.

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)
inlineprotectedvirtual
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
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

Member Data Documentation

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, T_BlockSize/sizeof(T_HashWordType), T_StateAligned> IteratedHashWithStaticTransform< T_HashWordType, T_Endianness, T_BlockSize, T_StateSize, T_Transform, T_DigestSize, T_StateAligned >::m_state
protected

Definition at line 169 of file iterhash.h.


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