Home
last modified time | relevance | path

Searched refs:deviceIdHash (Results 1 – 25 of 50) sorted by relevance

12

/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_deviceprofile.cpp49 static bool IsNotTrustDevice(std::string deviceIdHash) in IsNotTrustDevice() argument
58 static void InsertNotTrustDevice(std::string deviceIdHash) in InsertNotTrustDevice() argument
61 g_notTrustedDevices.insert(deviceIdHash); in InsertNotTrustDevice()
90 const char *deviceIdHash, const char *anonyDeviceIdHash) in IsTrustDevice() argument
114 if (strncmp(hashStr, deviceIdHash, strlen(deviceIdHash)) == 0) { in IsTrustDevice()
122 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash) in IsPotentialTrustedDeviceDp() argument
124 if (deviceIdHash == nullptr) { in IsPotentialTrustedDeviceDp()
128 if (IsNotTrustDevice(deviceIdHash)) { in IsPotentialTrustedDeviceDp()
140 InsertNotTrustDevice(deviceIdHash); in IsPotentialTrustedDeviceDp()
144 Anonymize(deviceIdHash, &anonyDeviceIdHash); in IsPotentialTrustedDeviceDp()
[all …]
H A Dauth_deviceprofile_virtual.cpp18 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash) in IsPotentialTrustedDeviceDp() argument
20 (void)deviceIdHash; in IsPotentialTrustedDeviceDp()
H A Dauth_common.c272 (memcmp(info1->info.bleInfo.deviceIdHash, info2->info.bleInfo.deviceIdHash, in CompareConnInfo()
333 … memcpy_s(option->bleOption.deviceIdHash, UDID_HASH_LEN, connInfo->info.bleInfo.deviceIdHash, in ConvertToConnectOption()
395 … memcpy_s(connInfo->info.bleInfo.deviceIdHash, UDID_HASH_LEN, info->bleInfo.deviceIdHash, in ConvertToAuthConnInfo()
536 … (const unsigned char *)connInfo->info.bleInfo.deviceIdHash, UDID_HASH_LEN) != SOFTBUS_OK) { in PrintAuthConnInfo()
H A Dauth_session_fsm.c194 …(void)memcpy_s(connInfo->info.ipInfo.deviceIdHash, UDID_HASH_LEN, request.connInfo.info.ipInfo.dev… in AddUdidInfo()
198 (void)memcpy_s(connInfo->info.bleInfo.deviceIdHash, UDID_HASH_LEN, in AddUdidInfo()
199 request.connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN); in AddUdidInfo()
227 (const unsigned char *)request.connInfo.info.bleInfo.deviceIdHash, SHORT_UDID_HASH_LEN); in ProcAuthFsm()
906 authFsm->info.connInfo.info.bleInfo.deviceIdHash[0] == '\0') { in UpdateUdidHashIfEmpty()
912 (unsigned char *)authFsm->info.connInfo.info.bleInfo.deviceIdHash) != SOFTBUS_OK) { in UpdateUdidHashIfEmpty()
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/
H A Dtrust_device_profile_test.cpp91 std::string deviceIdHash = "deviceIdHash"; variable
93 trustDeviceProfile.SetDeviceIdHash(deviceIdHash);
95 EXPECT_EQ(deviceIdHash, ret);
/ohos5.0/foundation/distributedhardware/device_manager/test/servicesfuzztest/deviceprofileconnector_fuzzer/
H A Ddevice_profile_connector_fuzzer.cpp38 std::string deviceIdHash(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest()
44 aclInfo.deviceIdHash = deviceIdHash; in DeviceProfileConnectorFuzzTest()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/
H A Dconnection_ble_manager_test.cpp328 .bleOption.deviceIdHash = "",
335 ret = memcpy_s(option.bleOption.deviceIdHash, UDID_HASH_LEN, deviceId, UDID_HASH_LEN);
398 .bleOption.deviceIdHash = "",
524 int32_t ret = memcpy_s(option.bleOption.deviceIdHash, sizeof(udid), udid, sizeof(udid));
613 .bleOption.deviceIdHash = "",
620 ret = memcpy_s(option.bleOption.deviceIdHash, UDID_HASH_LEN, deviceId, UDID_HASH_LEN);
650 .bleOption.deviceIdHash = "",
657 ret = memcpy_s(option.bleOption.deviceIdHash, UDID_HASH_LEN, deviceId, UDID_HASH_LEN);
688 .bleOption.deviceIdHash = "",
695 ret = memcpy_s(option.bleOption.deviceIdHash, UDID_HASH_LEN, deviceId, UDID_HASH_LEN);
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_common.c52 if (memcpy_s(connInfo->connInfo.ble.deviceIdHash, UDID_HASH_LEN, in BleInfoProc()
53 linkInfo->linkInfo.ble.deviceIdHash, UDID_HASH_LEN) != EOK) { in BleInfoProc()
158 if (memcpy_s(connInfo->connInfo.ble.deviceIdHash, UDID_HASH_LEN, in CocInfoProc()
159 linkInfo->linkInfo.ble.deviceIdHash, UDID_HASH_LEN) != EOK) { in CocInfoProc()
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/interfaces/
H A Dtrust_device_profile.cpp52 void TrustDeviceProfile::SetDeviceIdHash(const std::string& deviceIdHash) in SetDeviceIdHash() argument
54 deviceIdHash_ = deviceIdHash; in SetDeviceIdHash()
H A Daccess_control_profile.cpp195 void AccessControlProfile::SetDeviceIdHash(const std::string& deviceIdHash) in SetDeviceIdHash() argument
197 deviceIdHash_ = deviceIdHash; in SetDeviceIdHash()
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_distributed_hardware_load.cpp92 char deviceIdHash[DM_MAX_DEVICE_ID_LEN] = {0}; variable
93 auto ret = Crypto::GetUdidHash(deviceId, reinterpret_cast<uint8_t *>(deviceIdHash));
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/utils/src/
H A Dlnn_connection_addr_utils.c86 … if (memcpy_s((int8_t *)option->bleOption.deviceIdHash, UDID_HASH_LEN, addr->info.ble.udidHash, in LnnConvertAddrToOption()
132 … if (memcpy_s(addr->info.ble.udidHash, UDID_HASH_LEN, (int8_t *)option->bleOption.deviceIdHash, in LnnConvertOptionToAddr()
204 memcpy_s(connInfo->info.bleInfo.deviceIdHash, UDID_HASH_LEN, addr->info.ble.udidHash, in LnnConvertAddrToAuthConnInfo()
216 …memcpy_s(connInfo->info.ipInfo.deviceIdHash, UDID_HASH_LEN, addr->info.ip.udidHash, UDID_HASH_LEN)… in LnnConvertAddrToAuthConnInfo()
/ohos5.0/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_deviceprofile.h27 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash);
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_test_enhance.cpp325 ASSERT_TRUE(memcpy_s(info.connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN, udidHash,
327 ASSERT_TRUE(memcpy_s(connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN, udidHash,
363 ASSERT_TRUE(memcpy_s(info.connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN, udidHash,
365 ASSERT_TRUE(memcpy_s(connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN, udidHash,
/ohos5.0/foundation/communication/dsoftbus/core/connection/interface/
H A Dsoftbus_conn_interface.h107 char deviceIdHash[UDID_HASH_LEN]; member
175 char deviceIdHash[UDID_HASH_LEN]; member
/ohos5.0/foundation/deviceprofile/device_info_manager/common/include/interfaces/
H A Dtrust_device_profile.h41 void SetDeviceIdHash(const std::string& deviceIdHash);
H A Daccess_control_profile.h63 void SetDeviceIdHash(const std::string& deviceIdHash);
/ohos5.0/foundation/communication/dsoftbus/core/authentication/interface/
H A Dauth_interface.h81 uint8_t deviceIdHash[UDID_HASH_LEN]; member
86 uint8_t deviceIdHash[UDID_HASH_LEN]; member
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/
H A Dtrans_auth_negotiation.c291 memcpy_s(authConnInfo->info.bleInfo.deviceIdHash, in SetBleAuthConnInfo()
293 bleInfo->deviceIdHash, in SetBleAuthConnInfo()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/trans_auth_negotiation_test/
H A Dtrans_auth_negotiation_test.cpp350 (void)strcpy_s(bleInfo.deviceIdHash, UDID_HASH_LEN, "dev/ice%Id()Hash()");
404 (void)strcpy_s(connInfo.bleInfo.deviceIdHash, UDID_HASH_LEN, "dev/ice%Id()Hash()");
/ohos5.0/foundation/distributedhardware/device_manager/commondependency/src/
H A Ddeviceprofile_connector.cpp96 char deviceIdHash[DM_MAX_DEVICE_ID_LEN] = {0}; in GetDeviceAclParam() local
97 …if (Crypto::GetUdidHash(item.GetTrustDeviceId(), reinterpret_cast<uint8_t *>(deviceIdHash)) != DM_… in GetDeviceAclParam()
98 … LOGE("get deviceIdHash by deviceId: %{public}s failed.", GetAnonyString(deviceIdHash).c_str()); in GetDeviceAclParam()
101 …if (static_cast<std::string>(deviceIdHash) != discoveryInfo.remoteDeviceIdHash || item.GetStatus()… in GetDeviceAclParam()
442 profile.SetDeviceIdHash(aclInfo.deviceIdHash); in PutAccessControlList()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/include/
H A Dlnn_lane_link.h84 char deviceIdHash[UDID_HASH_LEN]; member
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_transceiver.c482 (void)memcpy_s(connOption->bleOption.deviceIdHash, sizeof(char) * UDID_HASH_LEN, in TransConnInfoToConnOpt()
483 connInfo->bleInfo.deviceIdHash, sizeof(char) * UDID_HASH_LEN); in TransConnInfoToConnOpt()
975 memcmp(item->connInfo.bleOption.deviceIdHash, connInfo->bleOption.deviceIdHash, in CheckIsProxyAuthChannel()
/ohos5.0/foundation/communication/dsoftbus/core/frame/standard/init/src/
H A Dsoftbus_server.cpp133 if (memcpy_s(connOpt.bleOption.deviceIdHash, sizeof(connOpt.bleOption.deviceIdHash), in OpenAuthSession()
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/ble/softbus_ble/
H A Ddisc_ble_utils_test.cpp324 char deviceIdHash[SHORT_DEVICE_ID_HASH_LENGTH + 1] = { 0 }; variable
326 …AssembleTLV(&broadcastData, TLV_TYPE_DEVICE_ID_HASH, (const void *)deviceIdHash, SHORT_DEVICE_ID_H…

12