NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::SimplePublicKeyParams< KeyParamsInfo > Class Template Reference

SimplePublicKeyParams is a template for public keys with only one parameter: size. More...

#include <key-params.hpp>

Inheritance diagram for ndn::SimplePublicKeyParams< KeyParamsInfo >:
Collaboration diagram for ndn::SimplePublicKeyParams< KeyParamsInfo >:

Public Member Functions

 SimplePublicKeyParams (const name::Component &keyId, uint32_t size=KeyParamsInfo::getDefaultSize())
 Create key parameters with user-specified key id. More...
 
 SimplePublicKeyParams (uint32_t size=KeyParamsInfo::getDefaultSize(), KeyIdType keyIdType=KeyIdType::RANDOM)
 Create key parameters with auto-generated key id. More...
 
uint32_t getKeySize () const
 
- Public Member Functions inherited from ndn::KeyParams
virtual ~KeyParams ()
 
KeyType getKeyType () const
 
KeyIdType getKeyIdType () const
 
const name::ComponentgetKeyId () const
 
void setKeyId (const name::Component &keyId)
 

Additional Inherited Members

- Protected Member Functions inherited from ndn::KeyParams
 KeyParams (KeyType keyType, KeyIdType keyIdType)
 Constructor. More...
 
 KeyParams (KeyType keyType, const name::Component &keyId)
 Constructor. More...
 

Detailed Description

template<typename KeyParamsInfo>
class ndn::SimplePublicKeyParams< KeyParamsInfo >

SimplePublicKeyParams is a template for public keys with only one parameter: size.

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

Constructor & Destructor Documentation

◆ SimplePublicKeyParams() [1/2]

template<typename KeyParamsInfo >
ndn::SimplePublicKeyParams< KeyParamsInfo >::SimplePublicKeyParams ( const name::Component keyId,
uint32_t  size = KeyParamsInfo::getDefaultSize() 
)
inlineexplicit

Create key parameters with user-specified key id.

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

◆ SimplePublicKeyParams() [2/2]

template<typename KeyParamsInfo >
ndn::SimplePublicKeyParams< KeyParamsInfo >::SimplePublicKeyParams ( uint32_t  size = KeyParamsInfo::getDefaultSize(),
KeyIdType  keyIdType = KeyIdType::RANDOM 
)
inlineexplicit

Create key parameters with auto-generated key id.

This method is used only if user does not want to maintain the uniqueness of key name. By default, an 8-byte random number will be used as key id.

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

Member Function Documentation

◆ getKeySize()

template<typename KeyParamsInfo >
uint32_t ndn::SimplePublicKeyParams< KeyParamsInfo >::getKeySize ( ) const
inline

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

Referenced by ndn::security::transform::generatePrivateKey().


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