Modify encryption scheme
[platform/core/security/key-manager.git] / src / manager / service / ckm-logic.h
index c07225b..d3f0c40 100644 (file)
@@ -314,6 +314,11 @@ private:
         bool exportFlag,
         DB::Crypto & database);
 
+    Crypto::GObjUPtr rowToObject(
+        UserData& handler,
+        DB::Row row,
+        const Password& password);
+
     int readDataHelper(
         bool exportFlag,
         const Credentials &cred,
@@ -321,7 +326,17 @@ private:
         const Name &name,
         const Label &label,
         const Password &password,
-        DB::Row &row);
+        Crypto::GObjUPtr &obj);
+
+    int readDataHelper(
+        bool exportFlag,
+        const Credentials &cred,
+        DataType dataType,
+        const Name &name,
+        const Label &label,
+        const Password &password,
+        Crypto::GObjUPtr &obj,
+        DataType& objDataType);
 
     int readDataHelper(
         bool exportFlag,
@@ -330,7 +345,7 @@ private:
         const Name &name,
         const Label &label,
         const Password &password,
-        DB::RowVector &rows);
+        Crypto::GObjUPtrVector &objs);
 
     int createKeyAESHelper(
         const Credentials &cred,