28 , m_keyIdType(keyIdType)
38 BOOST_ASSERT(!keyId.
empty());
54 RsaKeyParamsInfo::checkKeySize(uint32_t size)
56 if (size < MIN_RSA_KEY_SIZE)
62 RsaKeyParamsInfo::getDefaultSize()
68 EcKeyParamsInfo::checkKeySize(uint32_t size)
70 for (
size_t i = 0; i < (
sizeof(
EC_KEY_SIZES) /
sizeof(EC_KEY_SIZES[0])); i++) {
71 if (EC_KEY_SIZES[i] == size)
78 EcKeyParamsInfo::getDefaultSize()
84 AesKeyParamsInfo::checkKeySize(uint32_t size)
86 for (
size_t i = 0; i < (
sizeof(
AES_KEY_SIZES) /
sizeof(AES_KEY_SIZES[0])); i++) {
87 if (AES_KEY_SIZES[i] == size)
94 AesKeyParamsInfo::getDefaultSize()
100 HmacKeyParamsInfo::checkKeySize(uint32_t size)
102 if (size == 0 || size % 8 != 0)
108 HmacKeyParamsInfo::getDefaultSize()
const uint32_t DEFAULT_AES_KEY_SIZE
std::string to_string(const T &val)
const uint32_t EC_KEY_SIZES[]
KeyIdType
The type of KeyId component in a key name.
const uint32_t AES_KEY_SIZES[]
const uint32_t DEFAULT_EC_KEY_SIZE
KeyType
The type of a cryptographic key.
const uint32_t DEFAULT_HMAC_KEY_SIZE
const uint32_t MIN_RSA_KEY_SIZE
const uint32_t DEFAULT_RSA_KEY_SIZE
KeyParams(KeyType keyType, KeyIdType keyIdType)
Constructor.
Represents a name component.