PanamaMAC< B > Class Template Reference

#include <panama.h>

Inheritance diagram for PanamaMAC< B >:

HermeticHashFunctionMAC< PanamaHash< B > > AlgorithmImpl< SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > >, PanamaHash< B > > SimpleKeyingInterfaceImpl< TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > > TwoBases< MessageAuthenticationCode, VariableKeyLength< 32, 0, INT_MAX > > MessageAuthenticationCode VariableKeyLength< 32, 0, INT_MAX > HashTransformation SimpleKeyingInterface Algorithm Clonable List of all members.

Detailed Description

template<class B = LittleEndian>
class PanamaMAC< B >

Panama MAC.

Definition at line 99 of file panama.h.

Public Member Functions

 PanamaMAC ()
 PanamaMAC (const byte *key, unsigned int length)
void UncheckedSetKey (const byte *key, unsigned int length, const NameValuePairs &params)
void Restart ()
 discard the current state, and restart with a new message
void Update (const byte *input, size_t length)
 process more input
void TruncatedFinal (byte *digest, size_t digestSize)
 truncated version of Final()
unsigned int DigestSize () const
 size of the hash returned by Final()
unsigned int BlockSize () const
 block size of underlying compression function, or 0 if not block based
unsigned int OptimalBlockSize () const
 input to Update() should have length a multiple of this for optimal speed
unsigned int OptimalDataAlignment () const
 returns how input should be aligned for optimal performance
std::string AlgorithmName () const
 returns name of this algorithm, not universally implemented yet
size_t MinKeyLength () const
 returns smallest valid key length in bytes */
size_t MaxKeyLength () const
 returns largest valid key length in bytes */
size_t DefaultKeyLength () const
 returns default (recommended) key length in bytes */
size_t GetValidKeyLength (size_t n) const
 returns the smallest valid key length in bytes that is >= min(n, GetMaxKeyLength())
TwoBases< MessageAuthenticationCode,
VariableKeyLength<
32, 0, INT_MAX > >::IV_Requirement 
IVRequirement () const
 returns the minimal requirement for secure IVs
unsigned int IVSize () const
 returns size of IVs used by this object

Static Public Member Functions

static std::string __cdecl StaticAlgorithmName ()

Protected Member Functions

void KeyHash ()

Protected Attributes

PanamaHash< B > m_hash
bool m_keyed
SecByteBlock m_key


The documentation for this class was generated from the following file:
Generated on Sat Dec 23 02:07:29 2006 for Crypto++ by  doxygen 1.5.1-p1