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

CBC_MAC Class Template Reference

CBC-MAC. More...

#include <cbcmac.h>

Inheritance diagram for CBC_MAC:

MessageAuthenticationCode SameKeyLengthAs HashModule List of all members.

Public Types

enum  { DIGESTSIZE = T::BLOCKSIZE }

Public Methods

 CBC_MAC (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 CBC_MAC

CBC-MAC.

Compatible with FIPS 113. T should be an encryption class. Secure only for fixed length messages. For variable length messages use DMAC.

Definition at line 14 of file cbcmac.h.


Member Enumeration Documentation

template<class T>
anonymous enum
 

Definition at line 17 of file cbcmac.h.


Constructor & Destructor Documentation

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

Definition at line 37 of file cbcmac.h.


Member Function Documentation

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

size of the hash returned by Final().

Reimplemented from HashModule.

Definition at line 27 of file cbcmac.h.

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

Reimplemented from HashModule.

Definition at line 73 of file cbcmac.h.

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

process more input.

Reimplemented from HashModule.

Definition at line 46 of file cbcmac.h.

Referenced by DMAC::Update().


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