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

DMAC Class Template Reference

DMAC. More...

#include <dmac.h>

Inheritance diagram for DMAC:

MessageAuthenticationCode SameKeyLengthAs HashModule List of all members.

Public Types

enum  { DIGESTSIZE = T::BLOCKSIZE }

Public Methods

 DMAC (const byte *key,unsigned int keylength=DEFAULT_KEYLENGTH)
void Update (const byte *input,unsigned int length)
 process more input. More...

void Final (byte *mac)
unsigned int DigestSize ()const
 size of the hash returned by Final(). More...


Detailed Description

template<class T> class DMAC

DMAC.

Based on "CBC MAC for Real-Time Data Sources" by Erez Petrank and Charles Rackoff. T should be an encryption class.

Definition at line 12 of file dmac.h.


Member Enumeration Documentation

template<class T>
anonymous enum
 

Definition at line 15 of file dmac.h.


Constructor & Destructor Documentation

template<class T>
DMAC< T >::DMAC<T> ( const byte * key,
unsigned int keylength = DEFAULT_KEYLENGTH )
 

Definition at line 38 of file dmac.h.


Member Function Documentation

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

size of the hash returned by Final().

Reimplemented from HashModule.

Definition at line 25 of file dmac.h.

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

Reimplemented from HashModule.

Definition at line 56 of file dmac.h.

template<class T>
void DMAC< T >::Update ( const byte * input,
unsigned int length ) [virtual]
 

process more input.

Reimplemented from HashModule.

Definition at line 49 of file dmac.h.


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