Security Scol plugin
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
TTMAC_Base Class Reference

TTMAC message authentication code information. More...

#include <ttmac.h>

Inheritance diagram for TTMAC_Base:
FixedKeyLength< 20 > IteratedHash< word32, LittleEndian, 64, MessageAuthenticationCode > IteratedHashBase< T, BASE >

Public Member Functions

 CRYPTOPP_CONSTANT (DIGESTSIZE=20)
 
unsigned int DigestSize () const
 
void UncheckedSetKey (const byte *userKey, unsigned int keylength, const NameValuePairs &params)
 
void TruncatedFinal (byte *mac, size_t size)
 
- Public Member Functions inherited from FixedKeyLength< 20 >
 CRYPTOPP_CONSTANT (KEYLENGTH=N)
 The default key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (MIN_KEYLENGTH=N)
 The minimum key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (MAX_KEYLENGTH=N)
 The maximum key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (DEFAULT_KEYLENGTH=N)
 The default key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (IV_REQUIREMENT=SimpleKeyingInterface::NOT_RESYNCHRONIZABLE)
 The default IV requirements for the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (IV_LENGTH=0)
 The default IV length used by the algorithm provided as a constant.
 
CRYPTOPP_STATIC_CONSTEXPR size_t CRYPTOPP_API StaticGetValidKeyLength (size_t keylength)
 The default key length for the algorithm provided by a static function.
 
- Public Member Functions inherited from IteratedHash< word32, LittleEndian, 64, MessageAuthenticationCode >
 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.
 

Static Public Member Functions

static std::string StaticAlgorithmName ()
 

Protected Member Functions

void HashEndianCorrectedBlock (const word32 *data)
 
void Init ()
 
word32StateBuf ()
 
- Protected Member Functions inherited from IteratedHash< word32, LittleEndian, 64, MessageAuthenticationCode >
word32DataBuf ()
 
- 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)
 

Static Protected Member Functions

static void Transform (word32 *digest, const word32 *X, bool last)
 

Protected Attributes

FixedSizeSecBlock< word32, 10 > m_digest
 
FixedSizeSecBlock< word32, 5 > m_key
 
- Protected Attributes inherited from IteratedHash< word32, LittleEndian, 64, MessageAuthenticationCode >
FixedSizeSecBlock< word32, Blocks > m_data
 

Additional Inherited Members

- Public Types inherited from IteratedHash< word32, LittleEndian, 64, MessageAuthenticationCode >
typedef LittleEndian ByteOrderClass
 
typedef word32 HashWordType
 
- Public Types inherited from IteratedHashBase< T, BASE >
typedef T HashWordType
 
- Protected Types inherited from IteratedHash< word32, LittleEndian, 64, MessageAuthenticationCode >
enum  
 

Detailed Description

TTMAC message authentication code information.

Definition at line 16 of file ttmac.h.

Member Function Documentation

◆ DigestSize()

unsigned int TTMAC_Base::DigestSize ( ) const
inline

Definition at line 22 of file ttmac.h.

◆ HashEndianCorrectedBlock()

void TTMAC_Base::HashEndianCorrectedBlock ( const word32 data)
inlineprotected

Definition at line 28 of file ttmac.h.

◆ Init()

void TTMAC_Base::Init ( )
protectedvirtual

Implements IteratedHashBase< T, BASE >.

Definition at line 53 of file ttmac.cpp.

◆ StateBuf()

word32 * TTMAC_Base::StateBuf ( )
inlineprotectedvirtual

Implements IteratedHashBase< T, BASE >.

Definition at line 30 of file ttmac.h.

◆ StaticAlgorithmName()

static std::string TTMAC_Base::StaticAlgorithmName ( )
inlinestatic

Definition at line 19 of file ttmac.h.

◆ Transform()

void TTMAC_Base::Transform ( word32 digest,
const word32 X,
bool  last 
)
staticprotected

Definition at line 113 of file ttmac.cpp.

◆ TruncatedFinal()

void TTMAC_Base::TruncatedFinal ( byte mac,
size_t  size 
)

Definition at line 62 of file ttmac.cpp.

◆ UncheckedSetKey()

void TTMAC_Base::UncheckedSetKey ( const byte userKey,
unsigned int  keylength,
const NameValuePairs params 
)

Definition at line 43 of file ttmac.cpp.

Member Data Documentation

◆ m_digest

FixedSizeSecBlock<word32, 10> TTMAC_Base::m_digest
protected

Definition at line 32 of file ttmac.h.

◆ m_key

FixedSizeSecBlock<word32, 5> TTMAC_Base::m_key
protected

Definition at line 33 of file ttmac.h.


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