/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_encrypt_database_test.cpp | 104 EXPECT_EQ(kvStore1->Rekey(passwd), BUSY); in CheckRekeyWithMultiKvStore() 113 EXPECT_EQ(kvStore1->Rekey(passwd), OK); in CheckRekeyWithMultiKvStore() 147 EXPECT_EQ(kvStore->Rekey(passwd), BUSY); in CheckRekeyWithExistedSnapshot() 156 EXPECT_EQ(kvStore->Rekey(passwd), OK); in CheckRekeyWithExistedSnapshot() 187 EXPECT_EQ(kvStore->Rekey(passwd), BUSY); in CheckRekeyWithExistedObserver() 198 EXPECT_EQ(kvStore->Rekey(passwd), OK); in CheckRekeyWithExistedObserver() 422 EXPECT_EQ(kvStore1->Rekey(passwd), OK); 463 EXPECT_EQ(kvStore->Rekey(passwd), BUSY); 474 EXPECT_EQ(kvStore->Rekey(passwd), OK); 523 EXPECT_EQ(kvStore->Rekey(passwd), OK); [all …]
|
H A D | distributeddb_interfaces_encrypt_delegate_test.cpp | 403 EXPECT_EQ(g_kvNbDelegatePtr->Rekey(g_passwd2), OK); 432 EXPECT_EQ(g_kvNbDelegatePtr->Rekey(g_passwd3), OK); 478 EXPECT_EQ(g_kvNbDelegatePtr->Rekey(g_passwd2), BUSY); 564 EXPECT_EQ(g_kvNbDelegatePtr->Rekey(g_passwd2), OK); 636 EXPECT_EQ(g_kvNbDelegatePtr->Rekey(g_passwd2), OK); 680 EXPECT_EQ(g_kvDelegatePtr->Rekey(g_passwd2), OK); 728 EXPECT_EQ(g_kvDelegatePtr->Rekey(PASSWD_EMPTY), OK); 775 EXPECT_EQ(g_kvDelegatePtr->Rekey(g_passwd2), OK); 823 EXPECT_EQ(g_kvDelegatePtr->Rekey(g_passwd2), OK); 875 EXPECT_EQ(g_kvDelegatePtr->Rekey(PASSWD_EMPTY), OK); [all …]
|
H A D | distributeddb_interfaces_device_identifier_test.cpp | 427 EXPECT_EQ(errStore->Rekey(passwd), -E_INVALID_DB); 715 EXPECT_EQ(g_store->Rekey(passwd), -E_NOT_SUPPORT); 724 EXPECT_EQ(g_store->Rekey(passwd), -E_BUSY);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/rekey_fuzzer/ |
H A D | rekey_fuzzer.cpp | 58 kvNbDelegatePtr->Rekey(passwd); in SingerVerReKey() 83 kvNbDelegatePtr->Rekey(passwdTwo); in MultiVerVerReKey()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_data_connection_test.cpp | 400 EXPECT_EQ(g_invalidConnection->Rekey(passwd), -E_INVALID_DB); 426 EXPECT_EQ(g_connection->Rekey(passwd), -E_BUSY); 443 EXPECT_EQ(g_connection->Rekey(passwd), -E_BUSY);
|
H A D | distributeddb_storage_single_ver_database_oper_test.cpp | 99 EXPECT_EQ(singleVerDatabaseOper->Rekey(passwd), -E_INVALID_DB);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_kv_backup_test.cpp | 334 DBStatus rekeyStatus = g_kvBackupDelegate->Rekey(g_passwd1); in __anon6e3adb5f0702() 864 DBStatus status = g_kvBackupDelegate->Rekey(g_passwd1); 906 EXPECT_EQ(delegate2->Rekey(g_passwd1), OK); in __anon6e3adb5f1102() 1078 EXPECT_EQ(g_kvBackupDelegate->Rekey(g_passwd1), OK); 1114 EXPECT_EQ(g_kvBackupDelegate->Rekey(g_passwd1), OK); 1140 EXPECT_EQ(g_kvBackupDelegate->Rekey(NULL_PASSWD), OK); 1170 EXPECT_EQ(g_kvBackupDelegate->Rekey(g_passwd1), OK); 1178 EXPECT_EQ(g_kvBackupDelegate->Rekey(g_passwd2), OK);
|
H A D | distributeddb_kv_create_test.cpp | 1449 EXPECT_TRUE(result->Rekey(NULL_PASSWD) == OK); 1465 EXPECT_TRUE(result->Rekey(password) == OK); 1490 EXPECT_TRUE(result->Rekey(password) == OK); 1543 EXPECT_TRUE(result->Rekey(g_passwd1) == OK); 1571 EXPECT_TRUE(result->Rekey(NULL_PASSWD) == OK); 1630 DBStatus status = result1->Rekey(g_passwd1); in __anon0431985d0102() 1708 EXPECT_EQ(result2->Rekey(g_passwd1), BUSY); 1726 EXPECT_TRUE(result1->Rekey(g_passwd2) == OK); in RunDbRekeyOne() 1743 EXPECT_TRUE(result2->Rekey(g_passwd1) == OK); in RunDbRekeyTwo() 1760 EXPECT_TRUE(result3->Rekey(NULL_PASSWD) == OK); in RunDbRekeyThree() [all …]
|
H A D | distributeddb_nb_backup_test.cpp | 297 DBStatus rekeyStatus = g_nbBackupDelegate->Rekey(g_passwd1); in __anonbf7799ae0302() 924 DBStatus status = g_nbBackupDelegate->Rekey(g_passwd1); 961 EXPECT_EQ(g_nbBackupDelegate->Rekey(g_passwd1), OK); in __anonbf7799ae0d02() 1128 EXPECT_EQ(g_nbBackupDelegate->Rekey(g_passwd1), OK); 1164 EXPECT_EQ(g_nbBackupDelegate->Rekey(g_passwd1), OK); 1190 EXPECT_EQ(g_nbBackupDelegate->Rekey(NULL_PASSWD), OK); 1220 EXPECT_EQ(g_nbBackupDelegate->Rekey(g_passwd1), OK); 1228 EXPECT_EQ(g_nbBackupDelegate->Rekey(g_passwd2), OK);
|
H A D | distributeddb_nb_create_test.cpp | 1381 EXPECT_EQ(delegate->Rekey(reKeyPasswd), rekeyStatus); in RekeyAndClose() 1510 EXPECT_EQ(result->Rekey(g_passwd1), OK); 1536 EXPECT_EQ(result->Rekey(NULL_PASSWD), OK); 1600 DBStatus rekeyStatus = result1->Rekey(g_passwd1); in __anon556e56ac0102() 1668 EXPECT_EQ(result1->Rekey(g_passwd1), BUSY); 1686 EXPECT_EQ(result1->Rekey(g_passwd2), OK); in RunDbRekeyOne() 1703 EXPECT_EQ(result2->Rekey(g_passwd1), OK); in RunDbRekeyTwo() 1720 EXPECT_EQ(result3->Rekey(NULL_PASSWD), OK); in RunDbRekeyThree() 1735 EXPECT_EQ(result4->Rekey(g_passwd1), OK); in RunDbRekeyFour()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/ |
H A D | sqlite_local_kvdb.cpp | 100 int SQLiteLocalKvDB::Rekey(const CipherPassword &passwd) in Rekey() function in DistributedDB::SQLiteLocalKvDB 107 return operation->Rekey(passwd); in Rekey() 188 errCode = SQLiteUtils::Rekey(db, passwd); in RunRekeyLogic()
|
H A D | sqlite_local_kvdb.h | 45 int Rekey(const CipherPassword &passwd) override;
|
H A D | sqlite_local_kvdb_connection.h | 85 int Rekey(const CipherPassword &passwd) override;
|
H A D | sqlite_local_kvdb_connection.cpp | 422 int SQLiteLocalKvDBConnection::Rekey(const CipherPassword &passwd) in Rekey() function in DistributedDB::SQLiteLocalKvDBConnection 447 errCode = kvDB_->Rekey(passwd); in Rekey()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/ |
H A D | local_database_oper.h | 29 int Rekey(const CipherPassword &passwd) override;
|
H A D | multi_ver_database_oper.h | 30 int Rekey(const CipherPassword &passwd) override;
|
H A D | single_ver_database_oper.h | 28 int Rekey(const CipherPassword &passwd) override;
|
H A D | database_oper.h | 29 virtual int Rekey(const CipherPassword &passwd) = 0;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/ |
H A D | kv_store_delegate_impl.h | 89 DBStatus Rekey(const CipherPassword &password) override;
|
H A D | kv_store_delegate_impl.cpp | 330 DBStatus KvStoreDelegateImpl::Rekey(const CipherPassword &password) in Rekey() function in DistributedDB::KvStoreDelegateImpl 333 int errCode = conn_->Rekey(password); in Rekey()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/ |
H A D | kv_store_delegate.h | 94 DB_API virtual DBStatus Rekey(const CipherPassword &password) = 0;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/ |
H A D | multi_ver_natural_store_connection.h | 93 int Rekey(const CipherPassword &passwd) override;
|
H A D | multi_ver_natural_store_connection.cpp | 436 int MultiVerNaturalStoreConnection::Rekey(const CipherPassword &passwd) in Rekey() function in DistributedDB::MultiVerNaturalStoreConnection 456 errCode = kvDB_->Rekey(passwd); in Rekey()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_natural_store.h | 77 int Rekey(const CipherPassword &passwd) override;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | store_factory.cpp | 293 auto dbStatus = dbStore->Rekey(newDbPassword.password); in ExecuteRekey() 303 dbStore->Rekey(dbPassword.password); in ExecuteRekey()
|