/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_deviceprofile.cpp | 49 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 D | auth_deviceprofile_virtual.cpp | 18 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash) in IsPotentialTrustedDeviceDp() argument 20 (void)deviceIdHash; in IsPotentialTrustedDeviceDp()
|
H A D | auth_common.c | 272 (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 D | auth_session_fsm.c | 194 …(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 D | trust_device_profile_test.cpp | 91 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 D | device_profile_connector_fuzzer.cpp | 38 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 D | connection_ble_manager_test.cpp | 328 .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 D | lnn_lane_common.c | 52 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 D | trust_device_profile.cpp | 52 void TrustDeviceProfile::SetDeviceIdHash(const std::string& deviceIdHash) in SetDeviceIdHash() argument 54 deviceIdHash_ = deviceIdHash; in SetDeviceIdHash()
|
H A D | access_control_profile.cpp | 195 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 D | UTTest_dm_distributed_hardware_load.cpp | 92 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 D | lnn_connection_addr_utils.c | 86 … 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 D | auth_deviceprofile.h | 27 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_test_enhance.cpp | 325 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 D | softbus_conn_interface.h | 107 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 D | trust_device_profile.h | 41 void SetDeviceIdHash(const std::string& deviceIdHash);
|
H A D | access_control_profile.h | 63 void SetDeviceIdHash(const std::string& deviceIdHash);
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/interface/ |
H A D | auth_interface.h | 81 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 D | trans_auth_negotiation.c | 291 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 D | trans_auth_negotiation_test.cpp | 350 (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 D | deviceprofile_connector.cpp | 96 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 D | lnn_lane_link.h | 84 char deviceIdHash[UDID_HASH_LEN]; member
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_transceiver.c | 482 (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 D | softbus_server.cpp | 133 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 D | disc_ble_utils_test.cpp | 324 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…
|