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

CMAC message authentication code. More...

#include <cmac.h>

Inheritance diagram for CMAC< T >:
MessageAuthenticationCodeImpl< CMAC_Base, CMAC< T > > SameKeyLengthAs< T, IV_REQ, IV_L > AlgorithmImpl< BASE, ALGORITHM_INFO >

Public Member Functions

 CMAC ()
 Construct a CMAC.
 
 CMAC (const byte *key, size_t length=SameKeyLengthAs< T >::DEFAULT_KEYLENGTH)
 Construct a CMAC.
 
- Public Member Functions inherited from AlgorithmImpl< BASE, ALGORITHM_INFO >
std::string AlgorithmName () const
 The algorithm name.
 
- Public Member Functions inherited from SameKeyLengthAs< T, IV_REQ, IV_L >
 CRYPTOPP_CONSTANT (MIN_KEYLENGTH=T::MIN_KEYLENGTH)
 The minimum key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (MAX_KEYLENGTH=T::MAX_KEYLENGTH)
 The maximum key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (DEFAULT_KEYLENGTH=T::DEFAULT_KEYLENGTH)
 The default key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (IV_REQUIREMENT=IV_REQ)
 The default IV requirements for the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (IV_LENGTH=IV_L)
 The default initialization vector length for the algorithm provided as a constant.
 
CRYPTOPP_STATIC_CONSTEXPR size_t CRYPTOPP_API StaticGetValidKeyLength (size_t keylength)
 Provides a valid key length for the algorithm provided by a static function.
 

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 CMAC< T >

CMAC message authentication code.

Template Parameters
Tblock cipher

Template parameter T should be a class derived from BlockCipherDocumentation, for example AES, with a block size of 8, 16, or 32.

See also
CMAC
Since
Crypto++ 5.6.0

Definition at line 56 of file cmac.h.

Constructor & Destructor Documentation

◆ CMAC() [1/2]

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

Construct a CMAC.

Definition at line 60 of file cmac.h.

◆ CMAC() [2/2]

template<class T >
CMAC< T >::CMAC ( const byte key,
size_t  length = SameKeyLengthAs<T>::DEFAULT_KEYLENGTH 
)
inline

Construct a CMAC.

Parameters
keythe MAC key
lengththe key size, in bytes

Definition at line 64 of file cmac.h.

Member Function Documentation

◆ StaticAlgorithmName()

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

Definition at line 67 of file cmac.h.


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