Security Scol plugin
Public Member Functions | Static Public Member Functions | List of all members
HMAC< T > Class Template Reference

HMAC. More...

#include <hmac.h>

Inheritance diagram for HMAC< T >:
MessageAuthenticationCodeImpl< HMAC_Base, HMAC< T > > AlgorithmImpl< BASE, ALGORITHM_INFO >

Public Member Functions

 CRYPTOPP_CONSTANT (DIGESTSIZE=T::DIGESTSIZE)
 
 CRYPTOPP_CONSTANT (BLOCKSIZE=T::BLOCKSIZE)
 
 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 CRYPTOPP_API StaticAlgorithmName ()
 The algorithm name.
 

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

◆ 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.

◆ StaticAlgorithmName()

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

Definition at line 68 of file hmac.h.


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