Home
last modified time | relevance | path

Searched refs:deviceIdHash (Results 1 - 25 of 48) sorted by relevance

12

/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_deviceprofile.cpp49 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 Dauth_deviceprofile_virtual.cpp18 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash) in IsPotentialTrustedDeviceDp() argument
20 (void)deviceIdHash; in IsPotentialTrustedDeviceDp()
H A Dauth_common.c283 (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 Dauth_device_profile_test.cpp104 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 Dauth_test_enhance.cpp325 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 Dtrust_device_profile_test.cpp91 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 Ddevice_profile_connector_fuzzer.cpp38 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 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()
/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_deviceprofile.h27 bool IsPotentialTrustedDeviceDp(const char *deviceIdHash);
/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_distributed_hardware_load.cpp92 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 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()
160 LNN_LOGE(LNN_LANE, "memcpy deviceIdHash fail"); in CocInfoProc()
/foundation/communication/dsoftbus/tests/core/connection/ble/
H A Dconnection_ble_manager_test.cpp328 .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 Dtrust_device_profile.h41 void SetDeviceIdHash(const std::string& deviceIdHash);
H A Daccess_control_profile.h63 void SetDeviceIdHash(const std::string& deviceIdHash);
/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()
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 Dsoftbus_conn_interface.h107 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 Dlnn_lane_link.h84 char deviceIdHash[UDID_HASH_LEN]; member
H A Dlnn_lane_interface.h90 char deviceIdHash[UDID_HASH_LEN]; member
/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
/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_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 Dtrans_auth_negotiation.c291 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 Dtrans_auth_negotiation_test.cpp350 (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 Ddisc_ble_utils_test.cpp324 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 Dsoftbus_server.cpp133 if (memcpy_s(connOpt.bleOption.deviceIdHash, sizeof(connOpt.bleOption.deviceIdHash), in OpenAuthSession()

Completed in 15 milliseconds

12