Actions
Bug #3989
closedInconsistent constructor interface for SimpleSymmetricKeyParams (AesKeyParams)
Start date:
03/08/2017
Due date:
% Done:
100%
Estimated time:
Description
Commit commit:c08d7d6c2 changed interface for KeyParams constructors. For SimplePublicKeyParams (RsaKeyParams, EcKeyParams) the changed interface is backward compatible, but similar compatibility was not preserved for SimpleSymmetricKeyParams.
SimpleSymmetricKeyParams need additional constructor:
/**
* @brief Create key parameter with auto-created keyId.
*
* This method is used only if user does not want to maintain the uniqueness of key name.
* By default, an 8-byte random number will be used as the key Id.
*/
explicit
SimpleSymmetricKeyParams(uint32_t size = KeyParamsInfo::getDefaultSize(),
KeyIdType keyIdType = KeyIdType::RANDOM)
: KeyParams(KeyParamsInfo::getType(), keyIdType)
{
setKeySize(size);
}
Actions