Home
last modified time | relevance | path

Searched refs:RestoreDeviceKey (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dkey_manager.h112 int RestoreDeviceKey(const std::string &dir);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/key_manager_test/
H A Dkey_manager_test.cpp201 EXPECT_EQ(KeyManager::GetInstance()->RestoreDeviceKey("/data/test"), E_GLOBAL_KEY_NULLPTR);
206 EXPECT_EQ(KeyManager::GetInstance()->RestoreDeviceKey("/data/test"), E_GLOBAL_KEY_INIT_ERROR);
213 EXPECT_EQ(KeyManager::GetInstance()->RestoreDeviceKey("/data/test"), E_GLOBAL_KEY_STORE_ERROR);
221 EXPECT_EQ(KeyManager::GetInstance()->RestoreDeviceKey("/data/test"), E_GLOBAL_KEY_ACTIVE_ERROR);
240 EXPECT_EQ(KeyManager::GetInstance()->RestoreDeviceKey("/data/test"), 0);
243 EXPECT_EQ(KeyManager::GetInstance()->RestoreDeviceKey("/data/test"), 0);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_manager.cpp109 int KeyManager::RestoreDeviceKey(const std::string &dir) in RestoreDeviceKey() function in OHOS::StorageDaemon::KeyManager
175 return RestoreDeviceKey(DEVICE_EL1_DIR); in InitGlobalDeviceKey()