Searched refs:PATH_LATEST (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | base_key.cpp | 339 if (!LoadKeyBlob(keyCtx.shield, dir_ + PATH_LATEST + PATH_SHIELD)) { // needcheck is update in StoreKey() 374 bool hasLatest = IsDir(dir_ + PATH_LATEST); in StoreKey() 375 OHOS::ForceRemoveDirectory(dir_ + PATH_LATEST); in StoreKey() 376 …if (rename(candidate.c_str(), (dir_ + PATH_LATEST).c_str()) != 0) { // rename {candidate} to latest in StoreKey() 379 if (rename((dir_ + PATH_LATEST_BACKUP).c_str(), (dir_ + PATH_LATEST).c_str()) != 0) { in StoreKey() 393 if (it != PATH_LATEST.substr(1)) { in StoreKey() 408 std::string pathLatest = dir_ + PATH_LATEST; in StoreKey() 410 bool hasLatest = IsDir(dir_ + PATH_LATEST); in StoreKey() 567 const std::string NEED_UPDATE_PATH = dir_ + PATH_LATEST + SUFFIX_NEED_UPDATE; in StoreKey()
|
H A D | key_backup.cpp | 118 if (baseKey->DoRestoreKeyEx(auth, keyDir + PATH_LATEST)) { in TryRestoreKey() 124 if (baseKey->DoRestoreKeyEx(auth, backupDir + PATH_LATEST)) { in TryRestoreKey() 146 if (baseKey->DecryptKeyBlob(auth, keyDir + PATH_LATEST, planKey, decryptedKey)) { in TryRestoreUeceKey() 152 if (baseKey->DecryptKeyBlob(auth, backupDir + PATH_LATEST, planKey, decryptedKey)) { in TryRestoreUeceKey() 209 std::string origKeyDir = keyDir + PATH_LATEST; in DoResotreKeyMix() 210 std::string backupKeyDir = backupDir + PATH_LATEST; in DoResotreKeyMix()
|
H A D | fscrypt_key_v1.cpp | 288 LOGI("Decrypt keyPath is %{public}s", (dir_ + PATH_LATEST).c_str()); in DecryptClassE() 321 if (!EncryptKeyBlob(auth, dir_ + PATH_LATEST, eSecretFBE, encryptedKey)) { in EncryptClassE() 327 if (!RenameKeyPath(dir_ + PATH_LATEST)) { in EncryptClassE()
|
H A D | key_manager.cpp | 1265 …std::string NEED_UPDATE_PATH = GetKeyDirByUserAndType(user, keyType) + PATH_LATEST + SUFFIX_NEED_U… in UpdateCeEceSeceUserAuth()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | key_blob.h | 49 static const std::string PATH_LATEST = "/latest"; variable
|