NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::detail::HmacKeyParamsInfo Class Reference

HmacKeyParamsInfo is used to instantiate SimpleSymmetricKeyParams for HMAC keys. More...

#include <key-params.hpp>

Static Public Member Functions

static constexpr KeyType getType ()
 
static uint32_t checkKeySize (uint32_t size)
 check if size is valid and supported for this key type. More...
 
static uint32_t getDefaultSize ()
 

Detailed Description

HmacKeyParamsInfo is used to instantiate SimpleSymmetricKeyParams for HMAC keys.

Definition at line 230 of file key-params.hpp.

Member Function Documentation

◆ getType()

static constexpr KeyType ndn::detail::HmacKeyParamsInfo::getType ( )
inlinestatic

Definition at line 234 of file key-params.hpp.

References ndn::HMAC, and nonstd::span_lite::size().

◆ checkKeySize()

uint32_t ndn::detail::HmacKeyParamsInfo::checkKeySize ( uint32_t  size)
static

check if size is valid and supported for this key type.

Exceptions
KeyParams::Errorif the key size is not supported.

Definition at line 100 of file key-params.cpp.

References NDN_THROW, nonstd::span_lite::size(), and ndn::to_string().

◆ getDefaultSize()

uint32_t ndn::detail::HmacKeyParamsInfo::getDefaultSize ( )
static

Definition at line 108 of file key-params.cpp.

References ndn::detail::DEFAULT_HMAC_KEY_SIZE.


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