Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XMACC Class Template Reference

XMACC. More...

#include <xormac.h>

Inheritance diagram for XMACC:

IteratedHash MessageAuthenticationCode IteratedHashBase HashModule HashModule List of all members.

Public Types

typedef T::HashWordType HashWordType
enum  { KEYLENGTH = T::DIGESTSIZE-4, DIGESTSIZE = 4+T::DIGESTSIZE }

Public Methods

 XMACC (const byte *userKey,word32 counter=0xffffffff)
word32 CurrentCounter ()const
void Final (byte *mac)
bool Verify (const byte *mac)
 verify that digest is a valid digest for the current message, then reinitialize the object. More...

unsigned int DigestSize ()const
 size of the hash returned by Final(). More...


Detailed Description

template<class T> class XMACC

XMACC.

Definition at line 11 of file xormac.h.


Member Typedef Documentation

template<class T>
typedef T::HashWordType XMACC<T>::HashWordType
 

Reimplemented from IteratedHash.

Definition at line 15 of file xormac.h.


Member Enumeration Documentation

template<class T>
anonymous enum
 

Definition at line 14 of file xormac.h.


Constructor & Destructor Documentation

template<class T>
XMACC< T >::XMACC<T> ( const byte * userKey,
word32 counter = 0xffffffff )
 

Definition at line 41 of file xormac.h.


Member Function Documentation

template<class T>
word32 XMACC<T>::CurrentCounter ( ) const [inline]
 

Definition at line 24 of file xormac.h.

template<class T>
unsigned int XMACC<T>::DigestSize ( ) const [inline, virtual]
 

size of the hash returned by Final().

Reimplemented from HashModule.

Definition at line 28 of file xormac.h.

template<class T>
void XMACC< T >::Final ( byte * mac ) [virtual]
 

Reimplemented from IteratedHash.

Definition at line 80 of file xormac.h.

template<class T>
bool XMACC< T >::Verify ( const byte * mac ) [virtual]
 

verify that digest is a valid digest for the current message, then reinitialize the object.

Default implementation is to call Final() and do a bitwise comparison between its output and digest.

Reimplemented from HashModule.

Definition at line 106 of file xormac.h.


The documentation for this class was generated from the following file:
Generated at Mon Jan 15 01:17:21 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000