Home
last modified time | relevance | path

Searched refs:Rekey (Results 1 – 25 of 65) sorted by relevance

123

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_encrypt_database_test.cpp104 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 Ddistributeddb_interfaces_encrypt_delegate_test.cpp403 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 Ddistributeddb_interfaces_device_identifier_test.cpp427 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 Drekey_fuzzer.cpp58 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 Ddistributeddb_storage_data_connection_test.cpp400 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 Ddistributeddb_storage_single_ver_database_oper_test.cpp99 EXPECT_EQ(singleVerDatabaseOper->Rekey(passwd), -E_INVALID_DB);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/
H A Ddistributeddb_kv_backup_test.cpp334 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 Ddistributeddb_kv_create_test.cpp1449 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 Ddistributeddb_nb_backup_test.cpp297 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 Ddistributeddb_nb_create_test.cpp1381 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 Dsqlite_local_kvdb.cpp100 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 Dsqlite_local_kvdb.h45 int Rekey(const CipherPassword &passwd) override;
H A Dsqlite_local_kvdb_connection.h85 int Rekey(const CipherPassword &passwd) override;
H A Dsqlite_local_kvdb_connection.cpp422 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 Dlocal_database_oper.h29 int Rekey(const CipherPassword &passwd) override;
H A Dmulti_ver_database_oper.h30 int Rekey(const CipherPassword &passwd) override;
H A Dsingle_ver_database_oper.h28 int Rekey(const CipherPassword &passwd) override;
H A Ddatabase_oper.h29 virtual int Rekey(const CipherPassword &passwd) = 0;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
H A Dkv_store_delegate_impl.h89 DBStatus Rekey(const CipherPassword &password) override;
H A Dkv_store_delegate_impl.cpp330 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 Dkv_store_delegate.h94 DB_API virtual DBStatus Rekey(const CipherPassword &password) = 0;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/
H A Dmulti_ver_natural_store_connection.h93 int Rekey(const CipherPassword &passwd) override;
H A Dmulti_ver_natural_store_connection.cpp436 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 Drd_single_ver_natural_store.h77 int Rekey(const CipherPassword &passwd) override;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_factory.cpp293 auto dbStatus = dbStore->Rekey(newDbPassword.password); in ExecuteRekey()
303 dbStore->Rekey(dbPassword.password); in ExecuteRekey()

123