Algorithm types and param names updated
[platform/core/security/key-manager.git] / tests / test_serialization.cpp
index 4c6e5b5..882dc4d 100644 (file)
@@ -91,7 +91,7 @@ BOOST_AUTO_TEST_CASE(Serialization_CryptoAlgorithm) {
     addParam(ca,ParamName::ED_TAG_LEN, 128, true);
     addParam(ca,ParamName::ED_AAD, AAD, true);
 
-    CryptoAlgorithmSerializable input(std::move(ca));
+    CryptoAlgorithmSerializable input(ca);
     CryptoAlgorithmSerializable output;
     auto msg = MessageBuffer::Serialize(input);
     RawBuffer buffer = msg.Pop();
@@ -109,7 +109,6 @@ BOOST_AUTO_TEST_CASE(Serialization_CryptoAlgorithm) {
     checkIntParamNegative(output, ParamName::ED_IV);
 
     // non-existing
-    checkBufferParamNegative(output, ParamName::ED_CTR);
     checkIntParamNegative(output, ParamName::ED_CTR_LEN);
     checkBufferParamNegative(output, ParamName::ED_LABEL);
     checkIntParamNegative(output, ParamName::GEN_KEY_LEN);
@@ -125,7 +124,7 @@ BOOST_AUTO_TEST_CASE(Serialization_CryptoAlgorithm_wrong_name) {
     // unuspported param name
     addParam(ca, static_cast<ParamName>(666), 666, true);
 
-    CryptoAlgorithmSerializable input(std::move(ca));
+    CryptoAlgorithmSerializable input(ca);
     CryptoAlgorithmSerializable output;
     auto msg = MessageBuffer::Serialize(input);
     RawBuffer buffer = msg.Pop();