33 , m_keyIdType(keyIdType)
43 BOOST_ASSERT(!keyId.
empty());
51 RsaKeyParamsInfo::checkKeySize(uint32_t size)
53 if (size < MIN_RSA_KEY_SIZE)
59 RsaKeyParamsInfo::getDefaultSize()
65 EcKeyParamsInfo::checkKeySize(uint32_t size)
67 for (
size_t i = 0; i < (
sizeof(
EC_KEY_SIZES) /
sizeof(EC_KEY_SIZES[0])); i++) {
68 if (EC_KEY_SIZES[i] == size)
75 EcKeyParamsInfo::getDefaultSize()
77 return EC_KEY_SIZES[0];
81 AesKeyParamsInfo::checkKeySize(uint32_t size)
83 for (
size_t i = 0; i < (
sizeof(
AES_KEY_SIZES) /
sizeof(AES_KEY_SIZES[0])); i++) {
84 if (AES_KEY_SIZES[i] == size)
91 AesKeyParamsInfo::getDefaultSize()
93 return AES_KEY_SIZES[0];
Copyright (c) 2013-2017 Regents of the University of California.
static const uint32_t DEFAULT_RSA_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.
static const uint32_t EC_KEY_SIZES[]