Home
last modified time | relevance | path

Searched refs:KeyBackup (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_backup.cpp65 int32_t KeyBackup::RemoveNode(const std::string &pathName) in RemoveNode()
134 int32_t KeyBackup::TryRestoreUeceKey(const std::shared_ptr<BaseKey> &baseKey, in TryRestoreUeceKey()
162 int32_t KeyBackup::GetBackupDir(std::string &origDir, std::string &backupDir) in GetBackupDir()
182 void KeyBackup::ListAndCheckDir(std::string &origDir) in ListAndCheckDir()
282 bool KeyBackup::IsRegFile(const std::string &filePath) in IsRegFile()
410 uint32_t KeyBackup::GetLoopMaxNum(uint32_t diffNum) in GetLoopMaxNum()
446 void KeyBackup::FsyncDirectory(const std::string &dirName) in FsyncDirectory()
488 int32_t KeyBackup::MkdirParent(const std::string &pathName, mode_t mode) in MkdirParent()
507 void KeyBackup::CleanFile(const std::string &path) in CleanFile()
663 bool KeyBackup::WriteStringToFd(int fd, const std::string &content) in WriteStringToFd()
[all …]
H A Dbase_key.cpp399 KeyBackup::GetInstance().GetBackupDir(dir_, backupDir); in StoreKey()
400 KeyBackup::GetInstance().CreateBackup(dir_, backupDir, true); in StoreKey()
487 return KeyBackup::GetInstance().TryRestoreKey(shared_from_this(), auth) == 0; in StoreKey()
802 KeyBackup::GetInstance().GetBackupDir(dir_, backupDir); in StoreKey()
804 KeyBackup::GetInstance().RemoveNode(backupDir); in StoreKey()
H A Dfscrypt_key_v1.cpp234 …return KeyBackup::GetInstance().TryRestoreUeceKey(shared_from_this(), auth, eSecretFBE, decryptedK… in DoDecryptClassE()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dkey_backup.h36 class KeyBackup {
38 static KeyBackup &GetInstance() in GetInstance()
40 static KeyBackup instance; in GetInstance()
55 KeyBackup() {}; in KeyBackup() function
56 ~KeyBackup() {}; in ~KeyBackup()
57 KeyBackup(const KeyBackup &) = delete;
58 KeyBackup &operator=(const KeyBackup &) = delete;