SimplePublicKeyParams is a template for public keys with only one parameter: size. More...
#include <key-params.hpp>
Public Member Functions | |
SimplePublicKeyParams (const name::Component &keyId, uint32_t size=KeyParamsInfo::getDefaultSize()) | |
Create key parameter with user specified keyId . More... | |
SimplePublicKeyParams (uint32_t size=KeyParamsInfo::getDefaultSize(), KeyIdType keyIdType=KeyIdType::RANDOM) | |
Create key parameter with auto-created keyId. More... | |
uint32_t | getKeySize () const |
Public Member Functions inherited from ndn::KeyParams | |
virtual | ~KeyParams () |
KeyType | getKeyType () const |
KeyIdType | getKeyIdType () const |
const name::Component & | getKeyId () const |
void | setKeyId (const name::Component &keyId) |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::KeyParams | |
KeyParams (KeyType keyType, KeyIdType keyIdType) | |
Create a key generation parameter. More... | |
KeyParams (KeyType keyType, const name::Component &keyId) | |
Create a key generation parameter. More... | |
SimplePublicKeyParams is a template for public keys with only one parameter: size.
Definition at line 153 of file key-params.hpp.
|
inlineexplicit |
Create key parameter with user specified keyId
.
Definition at line 158 of file key-params.hpp.
|
inlineexplicit |
Create key parameter with auto-created keyId.
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 the key Id.
Definition at line 172 of file key-params.hpp.
|
inline |
Definition at line 180 of file key-params.hpp.
Referenced by ndn::security::transform::generatePrivateKey().