Home
last modified time | relevance | path

Searched refs:keyFileType (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Drdb_security_manager.h89 RdbPassword GetRdbPassword(const std::string &dbPath, KeyFileType keyFileType);
91 void DelKeyFile(const std::string &dbPath, KeyFileType keyFileType);
94 bool IsKeyFileExists(const std::string &dbPath, KeyFileType keyFileType);
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drdb_security_manager.cpp519 RdbPassword RdbSecurityManager::GetRdbPassword(const std::string &dbPath, KeyFileType keyFileType) in GetRdbPassword() argument
523 auto &keyFile = keyFiles.GetKeyFile(keyFileType); in GetRdbPassword()
528 LOG_ERROR("Failed to save key type:%{public}d err:%{public}d.", keyFileType, errno); in GetRdbPassword()
562 void RdbSecurityManager::DelKeyFile(const std::string &dbPath, KeyFileType keyFileType) in DelKeyFile() argument
568 SqliteUtils::DeleteFile(keyFiles.GetKeyFile(keyFileType)); in DelKeyFile()
595 bool RdbSecurityManager::IsKeyFileExists(const std::string &dbPath, KeyFileType keyFileType) in IsKeyFileExists() argument
598 return (access(keyFiles.GetKeyFile(keyFileType).c_str(), F_OK) == 0); in IsKeyFileExists()