35 , m_keyIdType(keyIdType)
45 BOOST_ASSERT(!keyId.
empty());
51 if (size < MIN_RSA_KEY_SIZE)
65 for (
size_t i = 0; i < (
sizeof(
EC_KEY_SIZES) /
sizeof(EC_KEY_SIZES[0])); i++) {
66 if (EC_KEY_SIZES[i] == size)
75 return EC_KEY_SIZES[0];
82 for (
size_t i = 0; i < (
sizeof(
AES_KEY_SIZES) /
sizeof(AES_KEY_SIZES[0])); i++) {
83 if (AES_KEY_SIZES[i] == size)
92 return AES_KEY_SIZES[0];
Copyright (c) 2013-2016 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 uint32_t checkKeySize(uint32_t size)
check if size is qualified.
static uint32_t getDefaultSize()
static const uint32_t AES_KEY_SIZES[]
static uint32_t checkKeySize(uint32_t size)
check if size is qualified.
static const uint32_t MIN_RSA_KEY_SIZE
static uint32_t getDefaultSize()
static uint32_t getDefaultSize()
static uint32_t checkKeySize(uint32_t size)
check if size is qualified.
KeyParams(KeyType keyType, KeyIdType keyIdType)
Create a key generation parameter.
Component holds a read-only name component value.
static const uint32_t EC_KEY_SIZES[]