/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_deviceprofile.cpp | 49 static bool IsNotTrustDevice(std::string deviceIdHash) in IsNotTrustDevice() argument 52 if (g_notTrustedDevices.find(deviceIdHash) != g_notTrustedDevices.end()) { in IsNotTrustDevice() 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() 100 LNN_LOGI(LNN_STATE, "udid=%{public}s, deviceIdHash=%{public}s", in IsTrustDevice() 115 if (strncmp(hashStr, deviceIdHash, strlen(deviceIdHash)) == 0) { in IsTrustDevice() 116 LNN_LOGI(LNN_STATE, "device trusted in dp continue verify, deviceIdHash=%{public}s", anonyDeviceIdHash); in IsTrustDevice() 123 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash) in IsPotentialTrustedDeviceDp() argument 89 IsTrustDevice(std::vector<OHOS::DistributedDeviceProfile::AccessControlProfile> &trustDevices, const char *deviceIdHash, const char *anonyDeviceIdHash) IsTrustDevice() argument [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 | 283 (memcmp(info1->info.bleInfo.deviceIdHash, info2->info.bleInfo.deviceIdHash, in CompareConnInfo() 344 memcpy_s(option->bleOption.deviceIdHash, UDID_HASH_LEN, connInfo->info.bleInfo.deviceIdHash, in ConvertToConnectOption() 346 AUTH_LOGE(AUTH_CONN, "copy bleMac/deviceIdHash fail"); in ConvertToConnectOption() 406 memcpy_s(connInfo->info.bleInfo.deviceIdHash, UDID_HASH_LEN, info->bleInfo.deviceIdHash, in ConvertToAuthConnInfo() 408 AUTH_LOGE(AUTH_CONN, "copy bleMac/deviceIdHash fail"); in ConvertToAuthConnInfo() 547 (const unsigned char *)connInfo->info.bleInfo.deviceIdHash, UDID_HASH_LEN) != SOFTBUS_OK) { in PrintAuthConnInfo()
|
/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_device_profile_test.cpp | 104 const char *deviceIdHash = nullptr; in HWTEST_F() local 105 bool ret = IsPotentialTrustedDeviceDp(deviceIdHash); in HWTEST_F() 107 deviceIdHash = "dev/ice%Id()Hash()"; in HWTEST_F() 108 ret = IsPotentialTrustedDeviceDp(deviceIdHash); in HWTEST_F()
|
H A D | auth_test_enhance.cpp | 325 ASSERT_TRUE(memcpy_s(info.connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN, udidHash, in HWTEST_F() 327 ASSERT_TRUE(memcpy_s(connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN, udidHash, in HWTEST_F() 363 ASSERT_TRUE(memcpy_s(info.connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN, udidHash, in HWTEST_F() 365 ASSERT_TRUE(memcpy_s(connInfo.info.bleInfo.deviceIdHash, UDID_HASH_LEN, udidHash, in HWTEST_F()
|
/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | trust_device_profile_test.cpp | 91 std::string deviceIdHash = "deviceIdHash"; in HWTEST_F() local 93 trustDeviceProfile.SetDeviceIdHash(deviceIdHash); in HWTEST_F() 95 EXPECT_EQ(deviceIdHash, ret); in HWTEST_F()
|
/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()
|
/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()
|
/foundation/communication/dsoftbus/core/authentication/include/ |
H A D | auth_deviceprofile.h | 27 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash);
|
/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_distributed_hardware_load.cpp | 92 char deviceIdHash[DM_MAX_DEVICE_ID_LEN] = {0}; in HWTEST_F() local 93 auto ret = Crypto::GetUdidHash(deviceId, reinterpret_cast<uint8_t *>(deviceIdHash)); in HWTEST_F()
|
/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() 160 LNN_LOGE(LNN_LANE, "memcpy deviceIdHash fail"); in CocInfoProc()
|
/foundation/communication/dsoftbus/tests/core/connection/ble/ |
H A D | connection_ble_manager_test.cpp | 328 .bleOption.deviceIdHash = "", in HWTEST_F() 335 ret = memcpy_s(option.bleOption.deviceIdHash, UDID_HASH_LEN, deviceId, UDID_HASH_LEN); in HWTEST_F() 398 .bleOption.deviceIdHash = "", in HWTEST_F() 524 int32_t ret = memcpy_s(option.bleOption.deviceIdHash, sizeof(udid), udid, sizeof(udid)); in HWTEST_F() 529 hashStr, HEXIFY_LEN(SHORT_UDID_HASH_LEN), (unsigned char *)option.bleOption.deviceIdHash, SHORT_UDID_HASH_LEN); in HWTEST_F() 613 .bleOption.deviceIdHash = "", in HWTEST_F() 620 ret = memcpy_s(option.bleOption.deviceIdHash, UDID_HASH_LEN, deviceId, UDID_HASH_LEN); in HWTEST_F() 650 .bleOption.deviceIdHash = "", in HWTEST_F() 657 ret = memcpy_s(option.bleOption.deviceIdHash, UDID_HASH_LEN, deviceId, UDID_HASH_LEN); in HWTEST_F() 688 .bleOption.deviceIdHash in HWTEST_F() [all...] |
/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);
|
/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() 88 LNN_LOGE(LNN_STATE, "copy ble deviceIdHash to addr fail"); in LnnConvertAddrToOption() 132 if (memcpy_s(addr->info.ble.udidHash, UDID_HASH_LEN, (int8_t *)option->bleOption.deviceIdHash, in LnnConvertOptionToAddr() 134 LNN_LOGE(LNN_STATE, "copy ble deviceIdHash to udidHash fail"); 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) != EOK) { in LnnConvertAddrToAuthConnInfo()
|
/foundation/communication/dsoftbus/core/connection/interface/ |
H A D | softbus_conn_interface.h | 107 char deviceIdHash[UDID_HASH_LEN]; member 174 char deviceIdHash[UDID_HASH_LEN]; member
|
/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
|
H A D | lnn_lane_interface.h | 90 char deviceIdHash[UDID_HASH_LEN]; member
|
/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
|
/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_OK) { 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() != ACTIVE) { in GetDeviceAclParam() 442 profile.SetDeviceIdHash(aclInfo.deviceIdHash); in PutAccessControlList()
|
/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()
|
/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()"); in HWTEST_F() 404 (void)strcpy_s(connInfo.bleInfo.deviceIdHash, UDID_HASH_LEN, "dev/ice%Id()Hash()"); in HWTEST_F()
|
/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 }; in HWTEST_F() local 326 AssembleTLV(&broadcastData, TLV_TYPE_DEVICE_ID_HASH, (const void *)deviceIdHash, SHORT_DEVICE_ID_HASH_LENGTH); in HWTEST_F()
|
/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()
|