35 , m_keyIdType(keyIdType)
45 BOOST_ASSERT(!keyId.
empty());
53 RsaKeyParamsInfo::checkKeySize(uint32_t size)
55 if (size < MIN_RSA_KEY_SIZE)
61 RsaKeyParamsInfo::getDefaultSize()
67 EcKeyParamsInfo::checkKeySize(uint32_t size)
69 for (
size_t i = 0; i < (
sizeof(
EC_KEY_SIZES) /
sizeof(EC_KEY_SIZES[0])); i++) {
70 if (EC_KEY_SIZES[i] == size)
77 EcKeyParamsInfo::getDefaultSize()
83 AesKeyParamsInfo::checkKeySize(uint32_t size)
85 for (
size_t i = 0; i < (
sizeof(
AES_KEY_SIZES) /
sizeof(AES_KEY_SIZES[0])); i++) {
86 if (AES_KEY_SIZES[i] == size)
93 AesKeyParamsInfo::getDefaultSize()
static const uint32_t DEFAULT_AES_KEY_SIZE
static const uint32_t DEFAULT_RSA_KEY_SIZE
static const uint32_t DEFAULT_EC_KEY_SIZE
KeyIdType
The type of KeyId component in a key name.
static const uint32_t AES_KEY_SIZES[]
KeyType
The type of a cryptographic key.
static const uint32_t MIN_RSA_KEY_SIZE
KeyParams(KeyType keyType, KeyIdType keyIdType)
Create a key generation parameter.
Represents a name component.
std::string to_string(const V &v)
static const uint32_t EC_KEY_SIZES[]