Change elmConfig path for applying read-only root filesystem
[platform/core/security/ode.git] / lib / internal-encryption.cpp
index b6ac308..c1bf9e3 100644 (file)
@@ -62,29 +62,38 @@ int InternalEncryption::decrypt(const std::string& password)
        }
 }
 
-int InternalEncryption::isPasswordCreated()
+int InternalEncryption::recovery()
 {
        try {
-               return context->methodCall<int>("InternalEncryption::isPasswordCreated");
+               return context->methodCall<int>("InternalEncryption::recovery");
        } catch (runtime::Exception& e) {
                return -1;
        }
 }
 
-int InternalEncryption::createPassword(const std::string& password)
+int InternalEncryption::isPasswordInitialized()
 {
        try {
-               return context->methodCall<int>("InternalEncryption::createPassword",
+               return context->methodCall<int>("InternalEncryption::isPasswordInitialized");
+       } catch (runtime::Exception& e) {
+               return -1;
+       }
+}
+
+int InternalEncryption::initPassword(const std::string& password)
+{
+       try {
+               return context->methodCall<int>("InternalEncryption::initPassword",
                                                                                password);
        } catch (runtime::Exception& e) {
                return -1;
        }
 }
 
-int InternalEncryption::deletePassword(const std::string& password)
+int InternalEncryption::cleanPassword(const std::string& password)
 {
        try {
-               return context->methodCall<int>("InternalEncryption::deletePassword",
+               return context->methodCall<int>("InternalEncryption::cleanPassword",
                                                                                password);
        } catch (runtime::Exception& e) {
                return -1;