Home
last modified time | relevance | path

Searched refs:newKey (Results 1 - 25 of 47) sorted by relevance

12

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
H A Dintercepted_data_impl.cpp106 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 Dintercepted_data_impl.h37 DBStatus ModifyKey(size_t index, const Key &newKey) override;
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drd_connection.cpp143 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 Dsqlite_connection.cpp586 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 Dnbdelegate_fuzzer.cpp136 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 Dupgrade.cpp113 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 Dkvdb_general_store.cpp714 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 Dthumbnail_service.cpp685 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 Dwifi_ap_msg.h99 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 Dhuks_master_test.cpp220 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 Dintercepted_data.h38 DB_API virtual DBStatus ModifyKey(size_t index, const Key &newKey) = 0;
H A Dstore_types.h235 using UpdateKeyCallback = std::function<void (const Key &originKey, Key &newKey)>;
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/
H A Dsecurity_manager_test.cpp62 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 Dcrypto_test.cpp222 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 Dhuks_master.h65 int HdiAccessUpgradeKey(const HksBlob &oldKey, const HksParamSet *paramSet, struct HksBlob &newKey);
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/
H A Dnapi_rdb_context.h54 std::vector<uint8_t> newKey; member
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/
H A Dmock_rdb.h218 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 Dmock_app_provision_info.h223 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 Ddistributeddb_interfaces_nb_delegate_test.cpp2793 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 Dsqlite_single_ver_storage_executor.cpp2199 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 Dconnection_pool.h58 const std::vector<uint8_t> &newKey, SlaveStatus &slaveStatus);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Ddistributeddb_single_ver_p2p_complex_sync_test.cpp1985 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 Dgif_encoder.cpp658 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 Dhuks_master.cpp279 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 Drdb_store_impl_test.cpp500 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()

Completed in 27 milliseconds

12