security: Restore automatic key ID generation for symmetric keys

Change-Id: Ic846b02e347b85f0053495a76ebcf8746138d8cf
Refs: #3989
diff --git a/src/security/key-params.hpp b/src/security/key-params.hpp
index ee46c71..4c7d118 100644
--- a/src/security/key-params.hpp
+++ b/src/security/key-params.hpp
@@ -238,6 +238,20 @@
     setKeySize(size);
   }
 
+  /**
+   * @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);
+  }
+
   uint32_t
   getKeySize() const
   {