Project

General

Profile

Actions

Bug #3989

closed

Inconsistent constructor interface for SimpleSymmetricKeyParams (AesKeyParams)

Added by Alex Afanasyev about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Security
Target version:
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 #1

Updated by Alex Afanasyev about 7 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
Actions #2

Updated by Junxiao Shi about 7 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF