Home
last modified time | relevance | path

Searched refs:encryptKey (Results 1 - 9 of 9) sorted by relevance

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dcrypto_manager_test.cpp95 auto encryptKey = CryptoManager::GetInstance().Encrypt(randomKey); in HWTEST_F() local
96 EXPECT_EQ(encryptKey.size(), ENCRYPT_KEY_LENGTH); in HWTEST_F()
97 encryptKey.assign(encryptKey.size(), 0); in HWTEST_F()
109 auto encryptKey = CryptoManager::GetInstance().Encrypt({ }); in HWTEST_F() local
110 EXPECT_TRUE(encryptKey.empty()); in HWTEST_F()
122 auto encryptKey = CryptoManager::GetInstance().Encrypt(randomKey); in HWTEST_F() local
124 auto result = CryptoManager::GetInstance().Decrypt(encryptKey, key); in HWTEST_F()
127 encryptKey.assign(encryptKey in HWTEST_F()
[all...]
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drdb_store_config.cpp27 const std::vector<uint8_t> &encryptKey, const std::string &journalMode, const std::string &syncMode, in RdbStoreConfig()
35 cryptoParam_.encryptKey_ = encryptKey; in RdbStoreConfig()
335 void RdbStoreConfig::SetEncryptKey(const std::vector<uint8_t> &encryptKey) in SetEncryptKey() argument
338 cryptoParam_.encryptKey_ = encryptKey; in SetEncryptKey()
341 void RdbStoreConfig::RestoreEncryptKey(const std::vector<uint8_t> &encryptKey) const in RestoreEncryptKey()
343 RdbSecurityManager::GetInstance().RestoreKeyFile(GetPath(), encryptKey); in RestoreEncryptKey() local
346 cryptoParam_.encryptKey_ = encryptKey; in RestoreEncryptKey()
26 RdbStoreConfig(const std::string &name, StorageMode storageMode, bool isReadOnly, const std::vector<uint8_t> &encryptKey, const std::string &journalMode, const std::string &syncMode, const std::string &databaseFileType, SecurityLevel securityLevel, bool isCreateNecessary, bool autoCheck, int journalSize, int pageSize) RdbStoreConfig() argument
H A Drdb_store.cpp336 int RdbStore::Backup(const std::string &databasePath, const std::vector<uint8_t> &encryptKey) in Backup() argument
339 (void)encryptKey; in Backup()
343 int RdbStore::Attach(const std::string &alias, const std::string &pathName, const std::vector<uint8_t> encryptKey) in Attach() argument
347 (void)encryptKey; in Attach()
H A Drdb_store_impl.cpp1406 int RdbStoreImpl::Backup(const std::string &databasePath, const std::vector<uint8_t> &encryptKey) in Backup() argument
1414 return InnerBackup(backupFilePath, encryptKey); in Backup()
1450 ret = InnerBackup(backupFilePath, encryptKey); in Backup()
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/mock/include/
H A Drdb_store_config.h136 const std::vector<uint8_t> &encryptKey = std::vector<uint8_t>(),
187 void SetEncryptKey(const std::vector<uint8_t> &encryptKey);
188 void RestoreEncryptKey(const std::vector<uint8_t> &encryptKey) const;
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/
H A Drdb_store_config.h267 * @param encryptKey Indicates the encrypt key of the database.
278 bool readOnly = false, const std::vector<uint8_t> &encryptKey = std::vector<uint8_t>(),
501 void SetEncryptKey(const std::vector<uint8_t> &encryptKey);
503 void RestoreEncryptKey(const std::vector<uint8_t> &encryptKey) const;
H A Drdb_store.h445 * @param encryptKey Indicates the database encrypt key.
447 virtual int Backup(const std::string &databasePath, const std::vector<uint8_t> &encryptKey = {});
457 virtual int Attach(const std::string &alias, const std::string &pathName, const std::vector<uint8_t> encryptKey);
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/include/
H A Drdb_store_impl.h67 int Backup(const std::string &databasePath, const std::vector<uint8_t> &encryptKey) override;
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Drdb_store_impl.h116 int Backup(const std::string &databasePath, const std::vector<uint8_t> &encryptKey) override;

Completed in 11 milliseconds