/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_encrypt_delegate_test.cpp | 152 KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, g_passwd1}; 230 KvStoreDelegate::Option option = {true, true, true, CipherType::DEFAULT, g_passwd1}; 311 KvStoreDelegate::Option option = {true, false, true, CipherType::DEFAULT, g_passwd1}; 397 KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, g_passwd1}; 459 KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, g_passwd1}; 494 KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, g_passwd1}; 526 KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, g_passwd1}; 663 KvStoreDelegate::Option option = {true, true, true, CipherType::DEFAULT, g_passwd1}; 712 KvStoreDelegate::Option option = {true, true, true, CipherType::DEFAULT, g_passwd1}; 807 KvStoreDelegate::Option option = {true, false, true, CipherType::DEFAULT, g_passwd1}; [all …]
|
H A D | distributeddb_interfaces_auto_launch_test.cpp | 202 …KvStoreNbDelegate::Option option = {true, false, true, CipherType::DEFAULT, passwd, SCHEMA_DEFINE1… 216 …AutoLaunchOption launchOption = {true, true, CipherType::DEFAULT, passwdOther, "", false, g_testDi… 259 …AutoLaunchOption launchOption = {false, false, CipherType::DEFAULT, passwd, "", false, g_testDir, … 365 …AutoLaunchOption launchOption = {true, false, CipherType::DEFAULT, passwd, "", false, g_testDir, o… in TriggerAutoLaunch() 454 …AutoLaunchOption launchOption = {true, false, CipherType::DEFAULT, passwd, "", false, g_testDir, n… 484 …AutoLaunchOption launchOption = {true, false, CipherType::DEFAULT, passwd, "", false, g_testDir, n… 557 …AutoLaunchOption launchOption = {true, false, CipherType::DEFAULT, passwd, "", false, g_testDir, n… 598 …AutoLaunchOption launchOption = {true, false, CipherType::DEFAULT, passwd, "", false, g_testDir, n… 642 …AutoLaunchOption launchOption = {true, false, CipherType::DEFAULT, passwd, "", false, g_testDir, n… in DelayAutoLaunchCycle()
|
H A D | distributeddb_interfaces_database_corrupt_test.cpp | 154 KvStoreDelegate::Option option = {true, true, false, CipherType::DEFAULT, passwd}; 199 KvStoreDelegate::Option option = {true, false, false, CipherType::DEFAULT, passwd}; 207 KvStoreNbDelegate::Option nbOption = {true, false, false, CipherType::DEFAULT, passwd}; 271 KvStoreDelegate::Option option = {true, true, false, CipherType::DEFAULT, passwd}; 276 KvStoreNbDelegate::Option nbOption = {true, false, false, CipherType::DEFAULT, passwd}; 342 KvStoreNbDelegate::Option nbOption = {true, false, false, CipherType::DEFAULT, passwd}; 399 KvStoreDelegate::Option option = {true, true, false, CipherType::DEFAULT, passwd}; 586 KvStoreNbDelegate::Option nbOption = {true, false, false, CipherType::DEFAULT, passwd}; 609 nbOption = {true, false, true, CipherType::DEFAULT, passwd};
|
H A D | distributeddb_interfaces_import_and_export_test.cpp | 816 option = {true, false, true, CipherType::DEFAULT, g_passwd4}; in TryDbForPasswordIndependence001() 825 option = {true, false, false, CipherType::DEFAULT, g_passwd3}; in TryDbForPasswordIndependence001() 835 option = {true, false, false, CipherType::DEFAULT, g_passwd3}; in TryDbForPasswordIndependence001() 844 option = {true, false, true, CipherType::DEFAULT, g_passwd2}; in TryDbForPasswordIndependence001() 877 option = {true, false, true, CipherType::DEFAULT, g_passwd2}; 910 KvStoreDelegate::Option option = {true, false, true, CipherType::DEFAULT, g_passwd3}; in TryDbForPasswordIndependence002() 915 option = {true, false, true, CipherType::DEFAULT, g_passwd4}; in TryDbForPasswordIndependence002() 920 option = {true, false, false, CipherType::DEFAULT, g_passwd3}; in TryDbForPasswordIndependence002() 926 option = {true, false, false, CipherType::DEFAULT, g_passwd3}; in TryDbForPasswordIndependence002() 931 option = {true, false, true, CipherType::DEFAULT, g_passwd2}; in TryDbForPasswordIndependence002() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_nb_autolaunch_test.cpp | 91 AutoLaunchOption option = {true, false, CipherType::DEFAULT, NULL_PASSWD, schema, true, 236 AutoLaunchOption option = {true, true, CipherType::DEFAULT, NULL_PASSWD, "", true, 260 option.cipher = CipherType::AES_256_GCM; 272 option.cipher = CipherType::DEFAULT; 317 AutoLaunchOption option = {false, false, CipherType::DEFAULT, passwd1, schema, false, 392 AutoLaunchOption option = {true, false, CipherType::DEFAULT, NULL_PASSWD, schema, false, 403 option = {true, false, CipherType::DEFAULT, NULL_PASSWD, inValidSchema, false, 494 AutoLaunchOption option = {true, false, CipherType::DEFAULT, NULL_PASSWD, "", false, 519 option = {true, false, CipherType::DEFAULT, NULL_PASSWD, schema, false, 535 option = {true, false, CipherType::DEFAULT, NULL_PASSWD, "", false, DIRECTOR, &observer}; [all …]
|
H A D | distributeddb_nb_enable_sync_by_closed_db_test.cpp | 254 option.cipher = CipherType::AES_256_GCM; 266 option.cipher = CipherType::DEFAULT; 321 option = {false, true, CipherType::DEFAULT, passwd2, schema, false, NB_DIRECTOR, nullptr}; 330 option = {false, true, CipherType::DEFAULT, passwd1, schema, false, NB_DIRECTOR, nullptr}; 350 option = {false, true, CipherType::DEFAULT, passwd1, schema, false, NB_DIRECTOR, nullptr}; 360 option = {false, false, CipherType::DEFAULT, passwd2, schema, false, NB_DIRECTOR, nullptr}; 501 option = {true, true, CipherType::DEFAULT, passwd1, "", false, NB_DIRECTOR, &observer}; 516 option = {true, false, CipherType::DEFAULT, NULL_PASSWD, "", true, NB_DIRECTOR, &observer}; 524 option = {true, false, CipherType::DEFAULT, NULL_PASSWD, "", false, DIRECTOR, &observer}; 539 option = {true, false, CipherType::DEFAULT, NULL_PASSWD, "", false, NB_DIRECTOR, &observer}; [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_utils.h | 91 static int SetKey(sqlite3 *db, CipherType type, const CipherPassword &passwd, bool setWal, 98 …static int ExportDatabase(sqlite3 *db, CipherType type, const CipherPassword &passwd, const std::s… 100 …static int ExportDatabase(const std::string &srcFile, CipherType type, const CipherPassword &srcPa… 137 static int AttachNewDatabase(sqlite3 *db, CipherType type, const CipherPassword &password, 140 static int AttachNewDatabaseInner(sqlite3 *db, CipherType type, const CipherPassword &password, 195 …static int SetKeyInner(sqlite3 *db, CipherType type, const CipherPassword &passwd, uint32_t iterTi… 237 static int SetCipherSettings(sqlite3 *db, CipherType type, uint32_t iterTimes); 239 static std::string GetCipherName(CipherType type); 246 …static int UpdateCipherShaAlgo(sqlite3 *db, bool setWal, CipherType type, const CipherPassword &pa…
|
H A D | sqlite_multi_ver_data_storage.h | 63 int RunRekeyLogic(CipherType type, const CipherPassword &passwd); 65 int RunExportLogic(CipherType type, const CipherPassword &passwd, const std::string &dbDir);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/ |
H A D | multi_ver_kvdata_storage.h | 49 CipherType cipherType = CipherType::AES_256_GCM; 70 int RunRekeyLogic(CipherType type, const CipherPassword &passwd); 72 … int RunExportLogic(CipherType type, const CipherPassword &passwd, const std::string &dbDir) const;
|
H A D | ikvdb_multi_ver_data_storage.h | 45 CipherType cipherType = CipherType::AES_256_GCM;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_relational_encrypted_db_test.cpp | 243 nullptr, false, true, CipherType::DEFAULT, g_correctPasswd, DEFAULT_ITER }; 301 nullptr, false, true, CipherType::DEFAULT, CipherPassword {}, DEFAULT_ITER }; 310 nullptr, false, true, CipherType::DEFAULT, g_correctPasswd, 0u }; 345 nullptr, false, true, CipherType::DEFAULT, g_correctPasswd, CUSTOMIZED_ITER }; 403 nullptr, false, true, CipherType::DEFAULT, g_correctPasswd, CUSTOMIZED_ITER }; 477 nullptr, false, true, CipherType::DEFAULT, g_correctPasswd, DEFAULT_ITER }; 486 option = { nullptr, false, true, CipherType::DEFAULT, g_incorrectPasswd, DEFAULT_ITER }; 490 option = { nullptr, false, true, CipherType::DEFAULT, g_incorrectPasswd, CUSTOMIZED_ITER }; 494 option = { nullptr, false, false, CipherType::DEFAULT, g_correctPasswd, DEFAULT_ITER }; 502 option = { nullptr, false, true, CipherType::AES_256_GCM, g_correctPasswd, DEFAULT_ITER }; [all …]
|
H A D | distributeddb_storage_data_operation_test.cpp | 710 …EXPECT_EQ(SQLiteUtils::SetKeyInner(db, CipherType::AES_256_GCM, g_passwd, DBConstant::DEFAULT_ITER… 725 …EXPECT_EQ(SQLiteUtils::SetKeyInner(db, CipherType::AES_256_GCM, g_passwd, DBConstant::DEFAULT_ITER… 748 …EXPECT_EQ(SQLiteUtils::SetKeyInner(db, CipherType::AES_256_GCM, g_passwd, DBConstant::DEFAULT_ITER… 770 …EXPECT_EQ(SQLiteUtils::AttachNewDatabaseInner(db, CipherType::AES_256_GCM, g_passwd, fileUrl, atta… 795 …EXPECT_EQ(SQLiteUtils::SetKeyInner(db, CipherType::AES_256_GCM, g_passwd, DBConstant::DEFAULT_ITER… 816 …EXPECT_EQ(SQLiteUtils::AttachNewDatabase(db, CipherType::AES_256_GCM, g_passwd, fileUrl, attachNam… 836 SQLiteUtils::AttachNewDatabase(db, CipherType::AES_256_GCM, g_passwd, fileUrl, attachName); 840 …EXPECT_NE(SQLiteUtils::SetKey(db, static_cast<CipherType>(3), g_passwd, DBConstant::DEFAULT_ITER_T… 842 …EXPECT_EQ(SQLiteUtils::SetKey(db, CipherType::AES_256_GCM, g_passwd, DBConstant::DEFAULT_ITER_TIME… 853 …EXPECT_NE(SQLiteUtils::AttachNewDatabase(db, CipherType::AES_256_GCM, g_passwd2, fileUrl, attachNa… [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/ |
H A D | relationaldb_properties.h | 37 void SetCipherArgs(CipherType cipherType, const CipherPassword &passwd, uint32_t iterTimes); 40 CipherType GetCipherType() const; 50 CipherType cipherType_;
|
H A D | kvdb_properties.h | 36 void GetPassword(CipherType &type, CipherPassword &password) const; 39 void SetPassword(CipherType type, const CipherPassword &password); 83 CipherType cipherType_;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/ |
H A D | local_database_oper.cpp | 56 CipherType cipherType; in RekeyPreHandle() 91 CipherType cipherType; in BackupDb() 115 CipherType cipherType; in RekeyPostHandle() 128 CipherType cipherType; in ExportAllDatabases() 183 CipherType cipherType; in ImportUnpackedDatabase()
|
H A D | single_ver_database_oper.cpp | 90 CipherType cipherType; in RekeyPreHandle() 163 CipherType cipherType; in RekeyPostHandle() 181 CipherType cipherType; in ExportMainDB() 207 int errCode = SQLiteUtils::ExportDatabase(currentDb, CipherType::DEFAULT, CipherPassword(), in ExportMetaDB() 334 CipherType cipherType; in ImportUnpackedMainDatabase() 373 … int errCode = SQLiteUtils::ExportDatabase(unpackedMetaFile, CipherType::DEFAULT, CipherPassword(), in ImportUnpackedMetaDatabase() 434 CipherType cipherType; in RunExportLogic() 459 errCode = SQLiteUtils::ExportDatabase(currentMetaDb, CipherType::DEFAULT, CipherPassword(), in RunExportLogic() 501 CipherType cipherType; in InitDataBaseOption() 517 int SingleVerDatabaseOper::RunRekeyLogic(CipherType type, const CipherPassword &passwd) in RunRekeyLogic()
|
H A D | multi_ver_database_oper.cpp | 67 CipherType cipherType; in RekeyPreHandle() 117 CipherType cipherType; in RekeyPostHandle() 136 CipherType cipherType; in ExportAllDatabases() 182 CipherType cipherType; in BackupCurrentDatabase() 270 CipherType cipherType; in ImportDatabase()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/ |
H A D | distributeddb_nb_test_tools.h | 42 DistributedDB::CipherType cipher = DistributedDB::CipherType::DEFAULT; // cipher type 61 …Option(bool createIfNecessary, bool isMemoryDb, bool isEncryptedDb, DistributedDB::CipherType ciph… in Option() 68 …ol createIfNecessary, bool isMemoryDb, bool isEncryptedDb, const DistributedDB::CipherType &cipher, in Option() 131 const static Option g_createDiskUnencrypted(true, false, false, DistributedDB::CipherType::DEFAULT, 133 const static Option g_createDiskEncrypted(true, false, true, DistributedDB::CipherType::DEFAULT, 135 const static Option g_ncreateDiskUnencrypted(false, false, false, DistributedDB::CipherType::DEFAUL… 137 const static Option g_ncreateDiskEncrypted(false, false, true, DistributedDB::CipherType::DEFAULT, 139 const static Option g_createMemUnencrypted(true, true, false, DistributedDB::CipherType::DEFAULT,
|
H A D | distributed_test_tools.h | 53 DistributedDB::CipherType cipher = DistributedDB::CipherType::DEFAULT; // cipher type 56 bool isEncryptedDb1, DistributedDB::CipherType cipher1, std::vector<uint8_t> passwd1) in KvOption() 96 const static KvOption g_createKvDiskUnencrypted(true, false, false, DistributedDB::CipherType::DEFA… 98 const static KvOption g_createKvDiskEncrypted(true, false, true, DistributedDB::CipherType::DEFAULT, 100 const static KvOption g_createLocalDiskUnencrypted(true, true, false, DistributedDB::CipherType::DE… 102 const static KvOption g_createLocalDiskEncrypted(true, true, true, DistributedDB::CipherType::DEFAU…
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/ |
H A D | kvdb_properties.cpp | 42 : cipherType_(CipherType::AES_256_GCM) in KvDBProperties() 61 void KvDBProperties::GetPassword(CipherType &type, CipherPassword &password) const in GetPassword() 67 void KvDBProperties::SetPassword(CipherType type, const CipherPassword &password) in SetPassword()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/relational/ |
H A D | relationaldb_properties.cpp | 42 void RelationalDBProperties::SetCipherArgs(CipherType cipherType, const CipherPassword &passwd, uin… in SetCipherArgs() 55 CipherType RelationalDBProperties::GetCipherType() const in GetCipherType()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/ |
H A D | auto_launch_export.h | 28 CipherType cipher = CipherType::DEFAULT;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | single_ver_utils.h | 38 CipherType cipherType = CipherType::AES_256_GCM;
|
H A D | ikvdb_commit_storage.h | 35 CipherType cipherType = CipherType::AES_256_GCM;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/ |
H A D | sqlite_local_kvdb.h | 51 int RunExportLogic(CipherType type, const CipherPassword &passwd, const std::string &newDbName); 53 int RunRekeyLogic(CipherType type, const CipherPassword &passwd);
|