/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/ |
H A D | single_ver_database_oper.h | 28 int Rekey(const CipherPassword &passwd) override; 30 int Import(const std::string &filePath, const CipherPassword &passwd) override; 32 int Export(const std::string &filePath, const CipherPassword &passwd) const override; 35 bool RekeyPreHandle(const CipherPassword &passwd, int &errCode) override; 37 int BackupDb(const CipherPassword &passwd) const override; 41 int RekeyPostHandle(const CipherPassword &passwd) override; 43 int ExportAllDatabases(const std::string ¤tDir, const CipherPassword &passwd, 57 int RunExportLogic(const CipherPassword &passwd, const std::string &filePrefix) const; 59 int RunRekeyLogic(CipherType type, const CipherPassword &passwd); 61 int ExportMainDB(const std::string ¤tDir, const CipherPassword &passwd, cons [all...] |
H A D | local_database_oper.cpp | 31 int LocalDatabaseOper::Rekey(const CipherPassword &passwd) in Rekey() argument 37 return ExecuteRekey(passwd, localKvDb_->GetDbProperties()); in Rekey() 40 int LocalDatabaseOper::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument 46 return ExecuteImport(filePath, passwd, localKvDb_->GetDbProperties()); in Import() 49 int LocalDatabaseOper::Export(const std::string &filePath, const CipherPassword &passwd) const in Export() 51 return ExecuteExport(filePath, passwd, localKvDb_->GetDbProperties()); in Export() 54 bool LocalDatabaseOper::RekeyPreHandle(const CipherPassword &passwd, int &errCode) in RekeyPreHandle() argument 60 if (cachePasswd.GetSize() == 0 && passwd.GetSize() == 0) { in RekeyPreHandle() 66 if (cachePasswd.GetSize() > 0 && passwd.GetSize() > 0) { in RekeyPreHandle() 67 errCode = localKvDb_->RunRekeyLogic(cipherType, passwd); in RekeyPreHandle() 113 RekeyPostHandle(const CipherPassword &passwd) RekeyPostHandle() argument 122 ExportAllDatabases(const std::string ¤tDir, const CipherPassword &passwd, const std::string &dbDir) const ExportAllDatabases() argument 184 CipherPassword passwd; ImportUnpackedDatabase() local [all...] |
H A D | multi_ver_database_oper.h | 30 int Rekey(const CipherPassword &passwd) override; 32 int Import(const std::string &filePath, const CipherPassword &passwd) override; 34 int Export(const std::string &filePath, const CipherPassword &passwd) const override; 37 bool RekeyPreHandle(const CipherPassword &passwd, int &errCode) override; 39 int BackupDb(const CipherPassword &passwd) const override; 43 int RekeyPostHandle(const CipherPassword &passwd) override; 45 int ExportAllDatabases(const std::string ¤tDir, const CipherPassword &passwd, 55 int ImportDatabase(const std::string &dir, const CipherPassword &passwd) const;
|
H A D | multi_ver_database_oper.cpp | 36 int MultiVerDatabaseOper::Rekey(const CipherPassword &passwd) in Rekey() argument 43 return ExecuteRekey(passwd, multiVerNaturalStore_->GetDbProperties()); in Rekey() 46 int MultiVerDatabaseOper::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument 53 return ExecuteImport(filePath, passwd, multiVerNaturalStore_->GetDbProperties()); in Import() 56 int MultiVerDatabaseOper::Export(const std::string &filePath, const CipherPassword &passwd) const in Export() 62 return ExecuteExport(filePath, passwd, multiVerNaturalStore_->GetDbProperties()); in Export() 65 bool MultiVerDatabaseOper::RekeyPreHandle(const CipherPassword &passwd, int &errCode) in RekeyPreHandle() argument 71 if (cachePasswd.GetSize() == 0 && passwd.GetSize() == 0) { in RekeyPreHandle() 79 int MultiVerDatabaseOper::BackupDb(const CipherPassword &passwd) const in BackupDb() 92 return ExportAllDatabases(currentDir, passwd, backupDi in BackupDb() 115 RekeyPostHandle(const CipherPassword &passwd) RekeyPostHandle() argument 129 ExportAllDatabases(const std::string ¤tDir, const CipherPassword &passwd, const std::string &dbDir) const ExportAllDatabases() argument 183 CipherPassword passwd; BackupCurrentDatabase() local [all...] |
H A D | local_database_oper.h | 29 int Rekey(const CipherPassword &passwd) override; 31 int Import(const std::string &filePath, const CipherPassword &passwd) override; 33 int Export(const std::string &filePath, const CipherPassword &passwd) const override; 36 bool RekeyPreHandle(const CipherPassword &passwd, int &errCode) override; 38 int BackupDb(const CipherPassword &passwd) const override; 42 int RekeyPostHandle(const CipherPassword &passwd) override; 44 int ExportAllDatabases(const std::string ¤tDir, const CipherPassword &passwd,
|
H A D | database_oper.h | 29 virtual int Rekey(const CipherPassword &passwd) = 0; 31 virtual int Import(const std::string &filePath, const CipherPassword &passwd) = 0; 33 virtual int Export(const std::string &filePath, const CipherPassword &passwd) const = 0; 44 int ExecuteRekey(const CipherPassword &passwd, const KvDBProperties &property); 46 virtual bool RekeyPreHandle(const CipherPassword &passwd, int &errCode) = 0; 48 virtual int BackupDb(const CipherPassword &passwd) const = 0; 52 virtual int RekeyPostHandle(const CipherPassword &passwd) = 0; 56 virtual int ExportAllDatabases(const std::string ¤tDir, const CipherPassword &passwd, 62 int ExecuteImport(const std::string &filePath, const CipherPassword &passwd, const KvDBProperties &property) const; 71 int ExecuteExport(const std::string &filePath, const CipherPassword &passwd, cons [all...] |
H A D | single_ver_database_oper.cpp | 56 int SingleVerDatabaseOper::Rekey(const CipherPassword &passwd) in Rekey() argument 62 return ExecuteRekey(passwd, singleVerNaturalStore_->GetDbProperties()); in Rekey() 65 int SingleVerDatabaseOper::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument 71 return ExecuteImport(filePath, passwd, singleVerNaturalStore_->GetDbProperties()); in Import() 74 int SingleVerDatabaseOper::Export(const std::string &filePath, const CipherPassword &passwd) const in Export() 80 return ExecuteExport(filePath, passwd, singleVerNaturalStore_->GetDbProperties()); in Export() 83 bool SingleVerDatabaseOper::RekeyPreHandle(const CipherPassword &passwd, int &errCode) in RekeyPreHandle() argument 94 if (cachePasswd.GetSize() == 0 && passwd.GetSize() == 0) { in RekeyPreHandle() 100 if (cachePasswd.GetSize() > 0 && passwd.GetSize() > 0) { in RekeyPreHandle() 101 errCode = RunRekeyLogic(cipherType, passwd); in RekeyPreHandle() 161 RekeyPostHandle(const CipherPassword &passwd) RekeyPostHandle() argument 173 ExportMainDB(const std::string ¤tDir, const CipherPassword &passwd, const std::string &dbDir) const ExportMainDB() argument 193 ExportMetaDB(const std::string ¤tDir, const CipherPassword &passwd, const std::string &dbDir) const ExportMetaDB() argument 216 ExportAllDatabases(const std::string ¤tDir, const CipherPassword &passwd, const std::string &dbDir) const ExportAllDatabases() argument 335 CipherPassword passwd; ImportUnpackedMainDatabase() local 430 RunExportLogic(const CipherPassword &passwd, const std::string &filePrefix) const RunExportLogic() argument 502 CipherPassword passwd; InitDataBaseOption() local 517 RunRekeyLogic(CipherType type, const CipherPassword &passwd) RunRekeyLogic() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_import_and_export_rd_test.cpp | 168 CipherPassword passwd; in HWTEST_F() local 169 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F() 181 EXPECT_EQ(g_kvDelegatePtr->Export(mulitExportFileName, passwd), OK); in HWTEST_F() 217 CipherPassword passwd; in HWTEST_F() local 218 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F() 222 EXPECT_EQ(g_kvNbDelegatePtr->Import(filePath, passwd), INVALID_FILE); in HWTEST_F() 228 EXPECT_EQ(g_kvNbDelegatePtr->Import(filePath, passwd), INVALID_FILE); in HWTEST_F() 271 CipherPassword passwd; in HWTEST_F() local 272 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F() 279 EXPECT_EQ(g_kvNbDelegatePtr->Import(singleExportFileName, passwd), INVALID_FIL in HWTEST_F() 315 CipherPassword passwd; HWTEST_F() local 348 CipherPassword passwd; HWTEST_F() local 419 CipherPassword passwd; HWTEST_F() local 489 CipherPassword passwd; HWTEST_F() local 538 CipherPassword passwd; HWTEST_F() local 591 CipherPassword passwd; HWTEST_F() local 628 CipherPassword passwd; HWTEST_F() local 685 CipherPassword passwd; HWTEST_F() local 753 CipherPassword passwd; HWTEST_F() local 804 CipherPassword passwd; HWTEST_F() local 837 CipherPassword passwd; HWTEST_F() local 1063 CipherPassword passwd; HWTEST_F() local 1133 CipherPassword passwd; HWTEST_F() local 1202 CipherPassword passwd; HWTEST_F() local 1253 CipherPassword passwd; HWTEST_F() local [all...] |
H A D | distributeddb_interfaces_encrypt_database_test.cpp | 100 CipherPassword passwd; // random password in CheckRekeyWithMultiKvStore() local 102 int errCode = passwd.SetValue(passwdBuffer.data(), passwdBuffer.size()); in CheckRekeyWithMultiKvStore() 104 EXPECT_EQ(kvStore1->Rekey(passwd), BUSY); in CheckRekeyWithMultiKvStore() 113 EXPECT_EQ(kvStore1->Rekey(passwd), OK); in CheckRekeyWithMultiKvStore() 143 CipherPassword passwd; // random password in CheckRekeyWithExistedSnapshot() local 145 int errCode = passwd.SetValue(passwdBuffer.data(), passwdBuffer.size()); in CheckRekeyWithExistedSnapshot() 147 EXPECT_EQ(kvStore->Rekey(passwd), BUSY); in CheckRekeyWithExistedSnapshot() 156 EXPECT_EQ(kvStore->Rekey(passwd), OK); in CheckRekeyWithExistedSnapshot() 183 CipherPassword passwd; // random password in CheckRekeyWithExistedObserver() local 185 int errCode = passwd in CheckRekeyWithExistedObserver() 366 CipherPassword passwd; HWTEST_F() local 409 CipherPassword passwd; HWTEST_F() local 459 CipherPassword passwd; HWTEST_F() local 506 CipherPassword passwd; HWTEST_F() local 561 CipherPassword passwd; HWTEST_F() local [all...] |
H A D | distributeddb_interfaces_import_and_export_test.cpp | 165 CipherPassword passwd; in HWTEST_F() local 166 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F() 178 EXPECT_EQ(g_kvDelegatePtr->Export(mulitExportFileName, passwd), OK); in HWTEST_F() 216 CipherPassword passwd; in HWTEST_F() local 217 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F() 229 EXPECT_EQ(g_kvNbDelegatePtr->Import(singleExportFileName, passwd), OK); in HWTEST_F() 288 CipherPassword passwd; in HWTEST_F() local 289 EXPECT_EQ(g_kvDelegatePtr->Export(mulitExportFileName, passwd), OK); in HWTEST_F() 301 EXPECT_EQ(g_kvDelegatePtr->Import(mulitExportFileName, passwd), OK); in HWTEST_F() 357 CipherPassword passwd; in HWTEST_F() local 425 CipherPassword passwd; HWTEST_F() local 496 CipherPassword passwd; HWTEST_F() local 554 CipherPassword passwd; HWTEST_F() local 621 CipherPassword passwd; HWTEST_F() local 673 CipherPassword passwd; HWTEST_F() local 705 CipherPassword passwd; HWTEST_F() local 779 CipherPassword passwd; HWTEST_F() local 1085 CipherPassword passwd; HWTEST_F() local 1167 CipherPassword passwd; HWTEST_F() local 1233 CipherPassword passwd; HWTEST_F() local 1291 CipherPassword passwd; HWTEST_F() local 1340 CipherPassword passwd; HWTEST_F() local [all...] |
H A D | distributeddb_interfaces_database_corrupt_test.cpp | 149 CipherPassword passwd; in HWTEST_F() local 152 int errCode = passwd.SetValue(randomPassword.data(), randomPassword.size()); in HWTEST_F() 154 KvStoreDelegate::Option option = {true, true, false, CipherType::DEFAULT, passwd}; in HWTEST_F() 193 CipherPassword passwd; in HWTEST_F() local 196 int errCode = passwd.SetValue(randomPassword.data(), randomPassword.size()); in HWTEST_F() 199 KvStoreDelegate::Option option = {true, false, false, CipherType::DEFAULT, passwd}; in HWTEST_F() 207 KvStoreNbDelegate::Option nbOption = {true, false, false, CipherType::DEFAULT, passwd}; in HWTEST_F() 265 CipherPassword passwd; in HWTEST_F() local 268 int errCode = passwd.SetValue(randomPassword.data(), randomPassword.size()); in HWTEST_F() 271 KvStoreDelegate::Option option = {true, true, false, CipherType::DEFAULT, passwd}; in HWTEST_F() 338 CipherPassword passwd; HWTEST_F() local 398 CipherPassword passwd; HWTEST_F() local 589 CipherPassword passwd; HWTEST_F() local [all...] |
H A D | distributeddb_interfaces_auto_launch_test.cpp | 196 * @tc.steps: step1. Create the kv store with passwd and no schema. in HWTEST_F() 199 CipherPassword passwd; in HWTEST_F() local 201 passwd.SetValue(passwdVect.data(), passwdVect.size()); in HWTEST_F() 202 KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, passwd, SCHEMA_DEFINE1, false}; in HWTEST_F() 225 launchOption.passwd = passwd; in HWTEST_F() 235 launchOption.passwd = passwd; in HWTEST_F() 257 CipherPassword passwd; in HWTEST_F() local 259 AutoLaunchOption launchOption = {false, false, CipherType::DEFAULT, passwd, "", fals in HWTEST_F() 361 CipherPassword passwd; TriggerAutoLaunch() local 453 CipherPassword passwd; HWTEST_F() local 483 CipherPassword passwd; HWTEST_F() local 556 CipherPassword passwd; HWTEST_F() local 597 CipherPassword passwd; HWTEST_F() local 641 CipherPassword passwd; DelayAutoLaunchCycle() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/fileoper_fuzzer/ |
H A D | fileoper_fuzzer.cpp | 58 CipherPassword passwd; in SingerVerExportAndImport() local 59 passwd.SetValue(data, size); in SingerVerExportAndImport() 60 kvNbDelegatePtr->Export(singleExportFileName, passwd); in SingerVerExportAndImport() 61 kvNbDelegatePtr->Import(singleExportFileName, passwd); in SingerVerExportAndImport() 69 CipherPassword passwd; in MultiVerExportAndImport() local 70 passwd.SetValue(data, size); in MultiVerExportAndImport() 71 KvStoreDelegate::Option option = {true, false, true, CipherType::DEFAULT, passwd}; in MultiVerExportAndImport() 85 kvDelegatePtr->Export(multiExportFileName, passwd); in MultiVerExportAndImport() 86 kvDelegatePtr->Import(multiExportFileName, passwd); in MultiVerExportAndImport()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/rekey_fuzzer/ |
H A D | rekey_fuzzer.cpp | 41 CipherPassword passwd; in SingerVerReKey() local 43 passwd.SetValue(data, (size / 2)); in SingerVerReKey() 45 KvStoreNbDelegate::Option nbOption = {true, false, true, CipherType::DEFAULT, passwd}; in SingerVerReKey() 57 passwd.SetValue(data, size); in SingerVerReKey() 58 kvNbDelegatePtr->Rekey(passwd); in SingerVerReKey() 65 CipherPassword passwd; in MultiVerVerReKey() local 67 passwd.SetValue(data, (size / 2)); in MultiVerVerReKey() 69 KvStoreNbDelegate::Option nbOption = {true, false, true, CipherType::DEFAULT, passwd}; in MultiVerVerReKey()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/ |
H A D | sqlite_local_kvdb.h | 45 int Rekey(const CipherPassword &passwd) override; 47 int Export(const std::string &filePath, const CipherPassword &passwd) override; 49 int Import(const std::string &filePath, const CipherPassword &passwd) override; 51 int RunExportLogic(CipherType type, const CipherPassword &passwd, const std::string &newDbName); 53 int RunRekeyLogic(CipherType type, const CipherPassword &passwd); 70 static int ImportDatabase(const KvDBProperties &properties, const std::string &dir, const CipherPassword &passwd);
|
H A D | sqlite_local_kvdb.cpp | 100 int SQLiteLocalKvDB::Rekey(const CipherPassword &passwd) in Rekey() argument 107 return operation->Rekey(passwd); in Rekey() 110 int SQLiteLocalKvDB::Export(const std::string &filePath, const CipherPassword &passwd) in Export() argument 122 errCode = operation->Export(filePath, passwd); in Export() 128 int SQLiteLocalKvDB::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument 142 errCode = operation->Import(filePath, passwd); in Import() 158 int SQLiteLocalKvDB::RunExportLogic(CipherType type, const CipherPassword &passwd, const std::string &newDbName) in RunExportLogic() argument 170 errCode = SQLiteUtils::ExportDatabase(db, type, passwd, newDbName); in RunExportLogic() 176 int SQLiteLocalKvDB::RunRekeyLogic(CipherType type, const CipherPassword &passwd) in RunRekeyLogic() argument 188 errCode = SQLiteUtils::Rekey(db, passwd); in RunRekeyLogic() 306 CipherPassword passwd; InitDataBaseOption() local 332 ImportDatabase(const KvDBProperties &properties, const std::string &dir, const CipherPassword &passwd) ImportDatabase() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_single_ver_database_oper_test.cpp | 98 CipherPassword passwd; in HWTEST_F() local 99 EXPECT_EQ(singleVerDatabaseOper->Rekey(passwd), -E_INVALID_DB); in HWTEST_F() 100 EXPECT_EQ(singleVerDatabaseOper->Import("", passwd), -E_INVALID_DB); in HWTEST_F() 101 EXPECT_EQ(singleVerDatabaseOper->Export("", passwd), -E_INVALID_DB); in HWTEST_F() 129 CipherPassword passwd; in HWTEST_F() local 130 EXPECT_EQ(singleVerDatabaseOper->Export("", passwd), -E_NOT_INIT); in HWTEST_F() 132 EXPECT_EQ(singleVerDatabaseOper->Export("", passwd), -E_INVALID_ARGS); in HWTEST_F()
|
H A D | distributeddb_storage_data_connection_test.cpp | 398 CipherPassword passwd; in HWTEST_F() local 400 EXPECT_EQ(g_invalidConnection->Rekey(passwd), -E_INVALID_DB); in HWTEST_F() 401 EXPECT_EQ(g_invalidConnection->Export(filePath, passwd), -E_INVALID_DB); in HWTEST_F() 402 EXPECT_EQ(g_invalidConnection->Import(filePath, passwd), -E_INVALID_DB); in HWTEST_F() 416 EXPECT_EQ(connection->Import(filePath, passwd), -E_BUSY); in HWTEST_F() 426 EXPECT_EQ(g_connection->Rekey(passwd), -E_BUSY); in HWTEST_F() 427 EXPECT_EQ(g_connection->Import(filePath, passwd), -E_BUSY); in HWTEST_F() 443 EXPECT_EQ(g_connection->Rekey(passwd), -E_BUSY); in HWTEST_F() 444 EXPECT_EQ(g_connection->Import(filePath, passwd), -E_BUSY); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | security_manager_test.cpp | 53 SecurityManager::DBPassword passwd; in HWTEST_F() local 54 EXPECT_FALSE(passwd.IsValid()); in HWTEST_F() 59 passwd.SetValue(key.data(), key.size()); in HWTEST_F() 60 EXPECT_TRUE(passwd.IsValid()); in HWTEST_F() 61 EXPECT_EQ(passwd.GetSize(), 32); in HWTEST_F() 62 auto newKey = passwd.GetData(); in HWTEST_F() 64 passwd.Clear(); in HWTEST_F() 65 EXPECT_FALSE(passwd.IsValid()); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/importfile_fuzzer/ |
H A D | importfile_fuzzer.cpp | 36 CipherPassword passwd; in SingerVerImport() local 37 passwd.SetValue(data, size); in SingerVerImport() 38 KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, passwd}; in SingerVerImport() 51 kvNbDelegatePtr->Import(importFile, passwd); in SingerVerImport()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/ |
H A D | multi_ver_kvdata_storage.h | 50 CipherPassword passwd; member 70 int RunRekeyLogic(CipherType type, const CipherPassword &passwd); 72 int RunExportLogic(CipherType type, const CipherPassword &passwd, const std::string &dbDir) const; 78 int ImportDatabase(const Property &property, const std::string &dir, const CipherPassword &passwd);
|
H A D | multi_ver_kvdata_storage.cpp | 37 static IKvDB *OpenKvDB(const DatabaseIdentifierCfg &config, CipherType type, const CipherPassword &passwd, int &errCode) in OpenKvDB() argument 57 dbProperties.SetPassword(type, passwd); in OpenKvDB() 306 dbProperties.SetPassword(property.cipherType, property.passwd); in GetVersion() 334 kvStorage_ = OpenKvDB(config, property.cipherType, property.passwd, errCode); in Open() 343 metaStorage_ = OpenKvDB(config, property.cipherType, property.passwd, errCode); in Open() 400 int MultiVerKvDataStorage::RunRekeyLogic(CipherType type, const CipherPassword &passwd) in RunRekeyLogic() argument 402 int errCode = static_cast<SQLiteLocalKvDB *>(kvStorage_)->RunRekeyLogic(type, passwd); in RunRekeyLogic() 407 errCode = static_cast<SQLiteLocalKvDB *>(metaStorage_)->RunRekeyLogic(type, passwd); in RunRekeyLogic() 415 int MultiVerKvDataStorage::RunExportLogic(CipherType type, const CipherPassword &passwd, const std::string &dbDir) const in RunExportLogic() argument 419 int errCode = static_cast<SQLiteLocalKvDB *>(kvStorage_)->RunExportLogic(type, passwd, valueDbNam in RunExportLogic() 452 ImportDatabase(const Property &property, const std::string &dir, const CipherPassword &passwd) ImportDatabase() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_multi_ver_data_storage.cpp | 85 OpenDbProperties option = {uri, property.isNeedCreate, false, tableVect, property.cipherType, property.passwd}; in GetVersion() 103 OpenDbProperties option = {uri_, property.isNeedCreate, false, tableVect, property.cipherType, property.passwd}; in Open() 157 property_.cipherType, property_.passwd); in StartWrite() 192 (void)sqliteTransaction->Reset(property_.cipherType, property_.passwd); in CommitWritePhaseOne() 230 (void)static_cast<SQLiteMultiVerTransaction *>(transaction)->Reset(property_.cipherType, property_.passwd); in RollbackWrite() 270 true, property_.cipherType, property_.passwd); in StartRead() 325 int SQLiteMultiVerDataStorage::RunRekeyLogic(CipherType type, const CipherPassword &passwd) in RunRekeyLogic() argument 332 OpenDbProperties option = {uri_, property_.isNeedCreate, false, tableVect, property_.cipherType, property_.passwd}; in RunRekeyLogic() 340 errCode = SQLiteUtils::Rekey(db, passwd); in RunRekeyLogic() 351 int SQLiteMultiVerDataStorage::RunExportLogic(CipherType type, const CipherPassword &passwd, cons argument 388 ImportDatabase(const Property &property, const std::string &dir, const CipherPassword &passwd) ImportDatabase() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/delegate_fuzzer/ |
H A D | delegate_fuzzer.cpp | 61 CipherPassword passwd; in EncryptOperation() local 63 passwd.SetValue(data, len); in EncryptOperation() 64 kvDelegatePtr->Rekey(passwd); in EncryptOperation() 140 CipherPassword passwd; in LLVMFuzzerTestOneInput() local 141 KvStoreDelegate::Option option = {true, true, false, CipherType::DEFAULT, passwd}; in LLVMFuzzerTestOneInput() 143 option = {true, false, false, CipherType::DEFAULT, passwd}; in LLVMFuzzerTestOneInput()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/ |
H A D | kv_store_delegate.h | 36 CipherPassword passwd; member 101 DB_API virtual DBStatus Export(const std::string &filePath, const CipherPassword &passwd) = 0; 104 DB_API virtual DBStatus Import(const std::string &filePath, const CipherPassword &passwd) = 0;
|