23 #ifndef NDN_KEY_PARAMS_HPP
24 #define NDN_KEY_PARAMS_HPP
27 #include "../name.hpp"
28 #include "security-common.hpp"
44 getKeyType()
const {
return keyType_; }
47 getKeyIdType()
const {
return keyIdType_; }
53 getKeyId()
const {
return keyId_; }
84 uint32_t size = RsaKeyParams::getDefaultSize())
85 :
KeyParams(RsaKeyParams::getType(), keyId),
91 (uint32_t size = RsaKeyParams::getDefaultSize(),
93 :
KeyParams(RsaKeyParams::getType(), keyIdType),
105 getDefaultSize() {
return 2048; }
108 getType() {
return KEY_TYPE_RSA; }
118 uint32_t size = EcKeyParams::getDefaultSize())
119 :
KeyParams(EcKeyParams::getType(), keyId),
125 (uint32_t size = EcKeyParams::getDefaultSize(),
127 :
KeyParams(EcKeyParams::getType(), keyIdType),
139 getDefaultSize() {
return 256; }
142 getType() {
return KEY_TYPE_EC; }
156 uint32_t size = EcKeyParams::getDefaultSize())
162 (uint32_t size = EcKeyParams::getDefaultSize(),
173 uint32_t size = AesKeyParams::getDefaultSize())
174 :
KeyParams(AesKeyParams::getType(), keyId),
180 (uint32_t size = AesKeyParams::getDefaultSize(),
182 :
KeyParams(AesKeyParams::getType(), keyIdType),
194 getDefaultSize() {
return 64; }
197 getType() {
return KEY_TYPE_AES; }
Definition: key-params.hpp:169
KeyIdType
The KeyIdType enum represents the type of a KeyId component in a key name.
Definition: security-common.hpp:30
Definition: key-params.hpp:80
RANDOM: A 64-bit random number as the key id.
Definition: security-common.hpp:45
A Name::Component holds a read-only name component value.
Definition: name.hpp:45
KeyType
Definition: security-common.hpp:50
Definition: key-params.hpp:114
KeyParams is a base class for key parameters.
Definition: key-params.hpp:36
KeyParams(KeyType keyType, KeyIdType keyIdType)
Create a key generation parameter.
Definition: key-params.cpp:30
Definition: key-params.hpp:152