Crypto++ 8.9
Free C++ class library of cryptographic schemes
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
HMAC< T > Class Template Reference

HMAC. More...

#include <hmac.h>

+ Inheritance diagram for HMAC< T >:

Public Member Functions

 HMAC ()
 Construct a HMAC.
 
 HMAC (const byte *key, size_t length=HMAC_Base::DEFAULT_KEYLENGTH)
 Construct a HMAC.
 
std::string AlgorithmName () const
 
std::string AlgorithmProvider () const
 
- Public Member Functions inherited from AlgorithmImpl< BASE, ALGORITHM_INFO >
std::string AlgorithmName () const
 The algorithm name.
 

Static Public Member Functions

static std::string StaticAlgorithmName ()
 
- Static Public Member Functions inherited from AlgorithmImpl< BASE, ALGORITHM_INFO >
static std::string StaticAlgorithmName ()
 The algorithm name.
 

Static Public Attributes

static const int DIGESTSIZE =T::DIGESTSIZE
 
static const int BLOCKSIZE =T::BLOCKSIZE
 

Detailed Description

template<class T>
class HMAC< T >

HMAC.

Template Parameters
THashTransformation derived class

HMAC derives from MessageAuthenticationCodeImpl. It calculates the HMAC using HMAC(K, text) = H(K XOR opad, H(K XOR ipad, text)).

See also
HMAC
Since
Crypto++ 2.1

Definition at line 52 of file hmac.h.

Constructor & Destructor Documentation

◆ ~HMAC()

template<class T >
virtual HMAC< T >::~HMAC ( )
inlinevirtual

Definition at line 58 of file hmac.h.

◆ HMAC() [1/2]

template<class T >
HMAC< T >::HMAC ( )
inline

Construct a HMAC.

Definition at line 61 of file hmac.h.

◆ HMAC() [2/2]

template<class T >
HMAC< T >::HMAC ( const byte * key,
size_t length = HMAC_Base::DEFAULT_KEYLENGTH )
inline

Construct a HMAC.

Parameters
keythe HMAC key
lengththe size of the HMAC key

Definition at line 65 of file hmac.h.

Member Function Documentation

◆ StaticAlgorithmName()

template<class T >
static std::string HMAC< T >::StaticAlgorithmName ( )
inlinestatic

Definition at line 68 of file hmac.h.

◆ AlgorithmName()

template<class T >
std::string HMAC< T >::AlgorithmName ( ) const
inline

Definition at line 69 of file hmac.h.

◆ AlgorithmProvider()

template<class T >
std::string HMAC< T >::AlgorithmProvider ( ) const
inline

Definition at line 70 of file hmac.h.

Member Data Documentation

◆ DIGESTSIZE

template<class T >
const int HMAC< T >::DIGESTSIZE =T::DIGESTSIZE
static

Definition at line 55 of file hmac.h.

◆ BLOCKSIZE

template<class T >
const int HMAC< T >::BLOCKSIZE =T::BLOCKSIZE
static

Definition at line 56 of file hmac.h.


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