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

Tiger message digest. More...

#include <tiger.h>

Inheritance diagram for Tiger:
IteratedHashWithStaticTransform< word64, LittleEndian, 64, 24, Tiger > ClonableImpl< DERIVED, BASE >

Public Member Functions

CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName ()
 
std::string AlgorithmProvider () const
 
void TruncatedFinal (byte *digest, size_t digestSize)
 Computes the hash of the current message.
 
- Public Member Functions inherited from IteratedHashWithStaticTransform< word64, LittleEndian, 64, 24, Tiger >
 CRYPTOPP_CONSTANT (DIGESTSIZE=0 ? 0 :T_StateSize)
 
unsigned int DigestSize () const
 Provides the digest size of the hash.
 
- Public Member Functions inherited from ClonableImpl< DERIVED, BASE >
ClonableClone () const
 Create a copy of this object.
 

Static Public Member Functions

static void InitState (HashWordType *state)
 Initialize state array.
 
static void Transform (word64 *digest, const word64 *data)
 Operate the hash.
 

Static Protected Attributes

static const word64 table [4 *256+3]
 

Additional Inherited Members

- Protected Types inherited from IteratedHashWithStaticTransform< word64, LittleEndian, 64, 24, Tiger >
enum  
 
- Protected Member Functions inherited from IteratedHashWithStaticTransform< word64, LittleEndian, 64, 24, Tiger >
void HashEndianCorrectedBlock (const word64 *data)
 
void Init ()
 
word64 * StateBuf ()
 
- Protected Attributes inherited from IteratedHashWithStaticTransform< word64, LittleEndian, 64, 24, Tiger >
FixedSizeAlignedSecBlock< word64, Blocks, false > m_state
 

Detailed Description

Tiger message digest.

Crypto++ provides the original Tiger hash that was submitted to the NESSIE project. The implementation is different from the revised Tiger2 hash.

See also
Tiger and Tiger: A Fast New Cryptographic Hash Function
Since
Crypto++ 2.1

Definition at line 35 of file tiger.h.

Member Function Documentation

◆ AlgorithmProvider()

std::string Tiger::AlgorithmProvider ( ) const

Definition at line 19 of file tiger.cpp.

◆ InitState()

void Tiger::InitState ( HashWordType *  state)
static

Initialize state array.

Parameters
statethe state of the hash

Definition at line 30 of file tiger.cpp.

◆ StaticAlgorithmName()

CRYPTOPP_STATIC_CONSTEXPR const char * Tiger::StaticAlgorithmName ( )
inline

Definition at line 38 of file tiger.h.

◆ Transform()

void Tiger::Transform ( word64 *  digest,
const word64 *  data 
)
static

Operate the hash.

Parameters
digestthe state of the hash
datathe data to be digested

Definition at line 54 of file tiger.cpp.

◆ TruncatedFinal()

void Tiger::TruncatedFinal ( byte digest,
size_t  digestSize 
)

Computes the hash of the current message.

Parameters
digesta pointer to the buffer to receive the hash
digestSizethe size of the truncated digest, in bytes

TruncatedFinal() calls Final() and then copies digestSize bytes to digest. The hash is restarted the hash for the next message.

Definition at line 37 of file tiger.cpp.

Member Data Documentation

◆ table

const word64 Tiger::table
staticprotected

Definition at line 6 of file tiger.h.


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