/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/ |
H A D | intercepted_data_impl.cpp | 106 DBStatus InterceptedDataImpl::ModifyKey(size_t index, const Key &newKey) in ModifyKey() argument 115 if (!CheckKey(newKey)) { in ModifyKey() 122 size_t newLength = totalLength_ - Parcel::GetVectorCharLen(oldKey) + Parcel::GetVectorCharLen(newKey); in ModifyKey() 131 entry->SetKey(newKey); in ModifyKey() 133 int errCode = DBCommon::CalcValueHash(newKey, hashKey); in ModifyKey()
|
H A D | intercepted_data_impl.h | 37 DBStatus ModifyKey(size_t index, const Key &newKey) override;
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rd_connection.cpp | 143 std::vector<uint8_t> newKey = config.GetNewEncryptKey(); in InnerOpen() local 144 if (!newKey.empty()) { in InnerOpen() 145 newKey.assign(newKey.size(), 0); in InnerOpen() 220 std::vector<uint8_t> newKey = config.GetNewEncryptKey(); in ReSetKey() local 222 errCode = RdUtils::RdDbRekey(dbPath.c_str(), configStr.c_str(), newKey); in ReSetKey() 225 newKey.assign(newKey.size(), 0); in ReSetKey()
|
H A D | sqlite_connection.cpp | 586 std::vector<uint8_t> newKey = config.GetNewEncryptKey(); in ReSetKey() local 587 int errCode = sqlite3_rekey(dbHandle_, static_cast<const void *>(newKey.data()), static_cast<int>(newKey.size())); in ReSetKey() 588 newKey.assign(newKey.size(), 0); in ReSetKey() 605 std::vector<uint8_t> newKey = config.GetNewEncryptKey(); in SetEncrypt() local 609 if (!newKey.empty()) { in SetEncrypt() 612 errCode = SetEncryptKey(newKey, config); in SetEncrypt() 614 newKey.assign(newKey in SetEncrypt() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/nbdelegate_fuzzer/ |
H A D | nbdelegate_fuzzer.cpp | 136 auto newKey = entries[i].key; in FuzzSetInterceptorTest() 137 newKey[0] = 'B'; in FuzzSetInterceptorTest() 138 errCode = data.ModifyKey(i, newKey); in FuzzSetInterceptorTest() 151 Key newKey; in FuzzSetInterceptorTest() 152 errCode = data.ModifyKey(i, newKey); in FuzzSetInterceptorTest() 170 kvNbDelegatePtr->UpdateKey([](const Key &origin, Key &newKey) { in TestCRUD() 171 newKey = origin; in TestCRUD() 172 newKey.push_back('0'); in TestCRUD()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | upgrade.cpp | 113 auto dbStatus = kvStore->UpdateKey([uuid](const DBKey &originKey, DBKey &newKey) { in UpdateUuid() 114 newKey = originKey; in UpdateUuid() 116 err = memcpy_s(newKey.data(), newKey.size(), uuid.data(), uuid.size()); in UpdateUuid()
|
H A D | kvdb_general_store.cpp | 714 auto newKey = GetNewKey(oriKey, sourceID); 715 errCode = data.ModifyKey(i, newKey); 751 auto newKey = GetNewKey(oriKey, encyptedUuid); 752 errCode = data.ModifyKey(i, newKey);
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_service.cpp | 685 std::shared_ptr<MediaLibraryKvStore> &yearKvStore, const std::string &oldKey, const std::string &newKey) in IsAstcChangeOldKeyToNewKeySuccess() 687 if (oldKey.compare(newKey) == 0) { in IsAstcChangeOldKeyToNewKeySuccess() 688 MEDIA_INFO_LOG("OldKey: %{public}s is same to newKey", oldKey.c_str()); in IsAstcChangeOldKeyToNewKeySuccess() 693 if (yearKvStore->Query(newKey, yearValue) == E_OK) { in IsAstcChangeOldKeyToNewKeySuccess() 694 MEDIA_INFO_LOG("NewKey Astc exists, fileID %{public}s", newKey.c_str()); in IsAstcChangeOldKeyToNewKeySuccess() 700 if (monthKvStore->Query(oldKey, monthValue) != E_OK || monthKvStore->Insert(newKey, monthValue) != E_OK || in IsAstcChangeOldKeyToNewKeySuccess() 702 MEDIA_ERR_LOG("MonthValue update failed, fileID %{public}s", newKey.c_str()); in IsAstcChangeOldKeyToNewKeySuccess() 705 if (yearKvStore->Query(oldKey, yearValue) != E_OK || yearKvStore->Insert(newKey, yearValue) != E_OK || in IsAstcChangeOldKeyToNewKeySuccess() 707 MEDIA_ERR_LOG("YearValue update failed, fileID %{public}s", newKey.c_str()); in IsAstcChangeOldKeyToNewKeySuccess() 746 std::string newKey; in AstcChangeKeyFromDateAddedToDateTaken() local 684 IsAstcChangeOldKeyToNewKeySuccess(std::shared_ptr<MediaLibraryKvStore> &monthKvStore, std::shared_ptr<MediaLibraryKvStore> &yearKvStore, const std::string &oldKey, const std::string &newKey) IsAstcChangeOldKeyToNewKeySuccess() argument [all...] |
/foundation/communication/wifi/wifi/frameworks/native/interfaces/ |
H A D | wifi_ap_msg.h | 99 inline void SetPreSharedKey(const std::string &newKey) in SetPreSharedKey() 101 preSharedKey = newKey; in SetPreSharedKey()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/huks_master_test/ |
H A D | huks_master_test.cpp | 220 HksBlob newKey; in HWTEST_F() local 226 EXPECT_EQ(HuksMaster::GetInstance().HdiAccessUpgradeKey(oldKey, paramSet, newKey), HKS_ERROR_NULL_POINTER); in HWTEST_F() 229 EXPECT_EQ(HuksMaster::GetInstance().HdiAccessUpgradeKey(oldKey, paramSet, newKey), HKS_ERROR_NULL_POINTER); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/ |
H A D | intercepted_data.h | 38 DB_API virtual DBStatus ModifyKey(size_t index, const Key &newKey) = 0;
|
H A D | store_types.h | 235 using UpdateKeyCallback = std::function<void (const Key &originKey, Key &newKey)>;
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | security_manager_test.cpp | 62 auto newKey = passwd.GetData(); in HWTEST_F() local 63 EXPECT_EQ(newKey[0], 0x00); in HWTEST_F()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/crypto_test/ |
H A D | crypto_test.cpp | 222 HksBlob newKey; in HWTEST_F() local 224 int ret = HuksMaster::GetInstance().HdiAccessUpgradeKey(oldKey, paramSet, newKey); in HWTEST_F()
|
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | huks_master.h | 65 int HdiAccessUpgradeKey(const HksBlob &oldKey, const HksParamSet *paramSet, struct HksBlob &newKey);
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_context.h | 54 std::vector<uint8_t> newKey; member
|
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/ |
H A D | mock_rdb.h | 218 int Restore(const std::string& backupPath, const std::vector<uint8_t>& newKey) override 223 const std::string newPath, const std::string backupPath, const std::vector<uint8_t>& newKey) in ChangeDbFileForRestore() 222 ChangeDbFileForRestore( const std::string newPath, const std::string backupPath, const std::vector<uint8_t>& newKey) ChangeDbFileForRestore() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/include/ |
H A D | mock_app_provision_info.h | 223 virtual int Restore(const std::string &backupPath, const std::vector<uint8_t> &newKey) in Restore() argument 228 const std::vector<uint8_t> &newKey) in ChangeDbFileForRestore() 227 ChangeDbFileForRestore(const std::string newPath, const std::string backupPath, const std::vector<uint8_t> &newKey) ChangeDbFileForRestore() argument
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_nb_delegate_test.cpp | 2793 g_kvNbDelegatePtr->UpdateKey([](const Key &originKey, Key &newKey) { in HWTEST_F() 2794 newKey = originKey; in HWTEST_F() 2795 newKey.push_back('0'); in HWTEST_F() 2839 g_kvNbDelegatePtr->UpdateKey([](const Key &originKey, Key &newKey) { in HWTEST_F() 2840 newKey = originKey; in HWTEST_F() 2841 newKey.push_back('0'); in HWTEST_F() 2860 g_kvNbDelegatePtr->UpdateKey([](const Key &originKey, Key &newKey) { in HWTEST_F() 2861 newKey = originKey; in HWTEST_F() 2862 newKey.push_back('0'); in HWTEST_F() 2905 DBStatus status = g_kvNbDelegatePtr->UpdateKey([](const Key &originKey, Key &newKey) { in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_storage_executor.cpp | 2199 Key newKey; in Translate() local 2200 context->callback(oldKey, newKey); in Translate() 2201 if (newKey.size() >= DBConstant::MAX_KEY_SIZE || newKey.empty()) { in Translate() 2202 LOGE("[SqlSinExe][Translate] invalid key len=%zu", newKey.size()); in Translate() 2207 context->newKey = newKey; in Translate() 2208 sqlite3_result_blob(ctx, newKey.data(), static_cast<int>(newKey.size()), SQLITE_TRANSIENT); in Translate() 2219 DBCommon::CalcValueHash(context->newKey, hashKe in CalHashKey() [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | connection_pool.h | 58 const std::vector<uint8_t> &newKey, SlaveStatus &slaveStatus);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_p2p_complex_sync_test.cpp | 1985 Key newKey; in HWTEST_F() 1986 errCode = data.ModifyKey(i, newKey); in HWTEST_F() 2032 Key newKey; in HWTEST_F() 2033 int errCode = data.ModifyKey(i, newKey); in HWTEST_F() 2079 Key newKey = {'2'}; in HWTEST_F() 2080 int errCode = data.ModifyKey(i, newKey); in HWTEST_F() 2150 DBStatus status = g_kvDelegatePtr->UpdateKey([](const Key &originKey, Key &newKey) { in HWTEST_F() 2151 newKey = originKey; in HWTEST_F() 2152 newKey.push_back('0'); in HWTEST_F()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/src/ |
H A D | gif_encoder.cpp | 658 uint32_t newKey = (((uint32_t)curChar) << BITS_IN_BYTE) + Pixel; in LZWEncode() local 659 if ((newChar = IsInDictionary(newKey)) >= 0) { in LZWEncode() 678 AddToDictionary(newKey, runningCode_++); in LZWEncode()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | huks_master.cpp | 279 int HuksMaster::HdiAccessUpgradeKey(const HksBlob &oldKey, const HksParamSet *paramSet, struct HksBlob &newKey) in HdiAccessUpgradeKey() argument 291 auto ret = halDevice_->HuksHdiUpgradeKey(&oldKey, paramSet, &newKey); in HdiAccessUpgradeKey() 304 retryRet = halDevice_->HuksHdiUpgradeKey(&oldKey, paramSet, &newKey); in HdiAccessUpgradeKey()
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_store_impl_test.cpp | 500 const std::vector<uint8_t> newKey; in HWTEST_F() local 505 errCode = connectionPool->ChangeDbFileForRestore(newPath, backupPath, newKey, curStatus); in HWTEST_F() 509 errCode = connectionPool->ChangeDbFileForRestore(newPath, backupPath, newKey, curStatus); in HWTEST_F() 513 errCode = connectionPool->ChangeDbFileForRestore(newPath2, backupPath, newKey, curStatus); in HWTEST_F()
|