Searched refs:encryptKey (Results 1 - 9 of 9) sorted by relevance
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | crypto_manager_test.cpp | 95 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 D | rdb_store_config.cpp | 27 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 D | rdb_store.cpp | 336 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 D | rdb_store_impl.cpp | 1406 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 D | rdb_store_config.h | 136 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 D | rdb_store_config.h | 267 * @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 D | rdb_store.h | 445 * @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 D | rdb_store_impl.h | 67 int Backup(const std::string &databasePath, const std::vector<uint8_t> &encryptKey) override;
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | rdb_store_impl.h | 116 int Backup(const std::string &databasePath, const std::vector<uint8_t> &encryptKey) override;
|
Completed in 11 milliseconds