/ohos5.0/foundation/communication/dsoftbus/core/adapter/bus_center/src/ |
H A D | lnn_ohos_account.cpp | 34 int32_t LnnGetOhosAccountInfo(uint8_t *accountHash, uint32_t len) in LnnGetOhosAccountInfo() argument 36 if (accountHash == nullptr || len != SHA_256_HASH_LEN) { in LnnGetOhosAccountInfo() 41 (void)memset_s(accountHash, len, 0, len); in LnnGetOhosAccountInfo() 60 reinterpret_cast<unsigned char *>(accountHash)) != SOFTBUS_OK) { in LnnGetOhosAccountInfo() 72 uint8_t accountHash[SHA_256_HASH_LEN] = {0}; in LnnInitOhosAccount() local 85 accountHash[0], accountHash[1]); in LnnInitOhosAccount() 92 uint8_t accountHash[SHA_256_HASH_LEN] = {0}; in LnnUpdateOhosAccount() local 112 accountHash[0], accountHash[1]); in LnnUpdateOhosAccount() 120 localAccountHash[0], localAccountHash[1], accountHash[0], accountHash[1]); in LnnUpdateOhosAccount() 133 uint8_t accountHash[SHA_256_HASH_LEN] = {0}; in LnnOnOhosAccountLogout() local [all …]
|
H A D | lnn_ohos_account_virtual.cpp | 19 int32_t LnnGetOhosAccountInfo(uint8_t *accountHash, uint32_t len) in LnnGetOhosAccountInfo() argument 21 (void)accountHash; in LnnGetOhosAccountInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/disc_mgr/src/ |
H A D | lnn_coap_discovery_impl.c | 72 …if (memcpy_s(addr->peerUid, MAX_ACCOUNT_HASH_LEN, device->accountHash, MAX_ACCOUNT_HASH_LEN) != EO… in GetConnectDeviceInfo() 99 …accountHash=%{public}02X%{public}02X", anonyDevId, device->accountHash[0], device->accountHash[1]); in DeviceFound()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/heartbeat/ |
H A D | hb_utils_test.cpp | 182 uint8_t accountHash = 0; variable 186 ret = LnnGetShortAccountHash(&accountHash, 0); 188 ret = LnnGetShortAccountHash(&accountHash, SHA_256_HEX_HASH_LEN);
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
H A D | lnn_heartbeat_utils.c | 267 int32_t LnnGetShortAccountHash(uint8_t *accountHash, uint32_t len) in LnnGetShortAccountHash() argument 271 if (accountHash == NULL || len < HB_SHORT_ACCOUNT_HASH_LEN || len > SHA_256_HASH_LEN) { in LnnGetShortAccountHash() 279 if (memcpy_s(accountHash, len, localAccountHash, len) != EOK) { in LnnGetShortAccountHash() 283 …LNN_HEART_BEAT, "HB get accountHash=[%{public}02x, %{public}02x]", accountHash[0], accountHash[1]); in LnnGetShortAccountHash()
|
H A D | lnn_heartbeat_medium_mgr.c | 362 nodeInfo->accountHash[0], nodeInfo->accountHash[1], newAccountHash[0], newAccountHash[1]); in HbIsNeedReAuth() 364 return memcmp(nodeInfo->accountHash, newAccountHash, HB_SHORT_ACCOUNT_HASH_LEN) != 0; in HbIsNeedReAuth() 377 …anonyUdid, device->accountHash[0], device->accountHash[1], hbType, devTypeStr != NULL ? devTypeStr… in HbDumpRecvDeviceInfo() 933 if (!HbIsNeedReAuth(&nodeInfo, device->accountHash) && in HbNotifyReceiveDevice() 959 anonyUdid, device->accountHash[0], device->accountHash[1]); in HbMediumMgrRecvProcess()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/decision_db/src/ |
H A D | lnn_decision_db.c | 272 uint8_t accountHash[SHA_256_HASH_LEN] = {0}; in BuildTrustedDevInfoRecord() local 279 if (LnnGetLocalByteInfo(BYTE_KEY_ACCOUNT_HASH, accountHash, SHA_256_HASH_LEN) != SOFTBUS_OK) { in BuildTrustedDevInfoRecord() 287 …if (ConvertBytesToHexString(accountHexHash, SHA_256_HEX_HASH_LEN, accountHash, SHA_256_HASH_LEN) !… in BuildTrustedDevInfoRecord() 553 uint8_t accountHash[SHA_256_HASH_LEN] = {0}; in GetLocalAccountHexHash() local 554 if (LnnGetLocalByteInfo(BYTE_KEY_ACCOUNT_HASH, accountHash, SHA_256_HASH_LEN) != SOFTBUS_OK) { in GetLocalAccountHexHash() 558 …if (ConvertBytesToHexString(accountHexHash, SHA_256_HEX_HASH_LEN, accountHash, SHA_256_HASH_LEN) !… in GetLocalAccountHexHash()
|
/ohos5.0/foundation/communication/dsoftbus/core/adapter/bus_center/include/ |
H A D | lnn_ohos_account.h | 25 int32_t LnnGetOhosAccountInfo(uint8_t *accountHash, uint32_t len);
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_interface.c | 652 if (memcmp(device->accountHash, defaultInfo.accountHash, SHORT_ACCOUNT_HASH_LEN) == 0) { in AuthIsPotentialTrusted() 660 …if (memcmp(localAccountHash, device->accountHash, SHORT_ACCOUNT_HASH_LEN) == 0 && !LnnIsDefaultOho… in AuthIsPotentialTrusted() 662 device->accountHash[0], device->accountHash[1]); in AuthIsPotentialTrusted() 685 …if (memcmp(localAccountHash, device->accountHash, SHORT_ACCOUNT_HASH_LEN) == 0 && !LnnIsDefaultOho… in IsSameAccountDevice()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/ble/softbus_ble_mock/ |
H A D | bus_center_mock.h | 68 static inline uint8_t accountHash[] = { variable
|
H A D | bus_center_mock.cpp | 99 if (memcpy_s(out, outSize, accountHash, SHA_256_HASH_LEN) != EOK) { in ActionOfLnnGetLocalByteInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/include/ |
H A D | lnn_heartbeat_utils.h | 156 int32_t LnnGetShortAccountHash(uint8_t *accountHash, uint32_t len);
|
/ohos5.0/foundation/communication/dsoftbus/interfaces/kits/common/ |
H A D | softbus_common.h | 540 char accountHash[MAX_ACCOUNT_HASH_LEN]; member
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/ |
H A D | lnn_net_ledger.c | 495 char accountHash[SHA_256_HASH_LEN] = {0}; in SoftbusDumpPrintAccountId() local 497 (uint8_t *)&accountHash, SHA_256_HASH_LEN) != SOFTBUS_OK) { in SoftbusDumpPrintAccountId() 503 (unsigned char *)accountHash, SHA_256_HASH_LEN) != SOFTBUS_OK) { in SoftbusDumpPrintAccountId()
|
/ohos5.0/foundation/communication/dsoftbus/core/discovery/coap/common/src/ |
H A D | disc_coap_parser.c | 147 (unsigned char *)device->accountHash); in DiscCoapParseHwAccountHash()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/coap/common/unittest/ |
H A D | disc_coap_parser_test.cpp | 217 EXPECT_STREQ(deviceInfo.accountHash,
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/ |
H A D | lnn_node_info.h | 154 char accountHash[SHA_256_HASH_LEN]; member
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_other_test.cpp | 1122 uint8_t accountHash[SHA_256_HASH_LEN] = "accounthashtest"; variable 1123 …EXPECT_TRUE(LnnSetLocalByteInfo(BYTE_KEY_ACCOUNT_HASH, accountHash, SHA_256_HASH_LEN) == SOFTBUS_O… 1125 DeviceInfo device = { .devId = "testId", .accountHash = "accounthashtest", };
|
/ohos5.0/foundation/communication/dsoftbus/core/discovery/ble/softbus_ble/src/ |
H A D | disc_ble.c | 450 if (memcmp(accountIdHash, foundInfo->accountHash, SHORT_USER_ID_HASH_LEN) == 0) { in ProcessHashAccount() 714 (void)memset_s(info->accountHash, MAX_ACCOUNT_HASH_LEN, 0x0, MAX_ACCOUNT_HASH_LEN); in GetConDeviceInfo() 717 DiscBleGetShortUserIdHash((uint8_t *)info->accountHash, SHORT_USER_ID_HASH_LEN); in GetConDeviceInfo() 870 info->accountHash, SHORT_USER_ID_HASH_LEN); in AssembleBroadcastData() 2022 Anonymize(g_bleAdvertiser[i].deviceInfo.accountHash, &anonymizedInfo); in BleAdvertiserDump()
|
H A D | disc_ble_utils.c | 405 errno_t retMem = memcpy_s(device->info->accountHash, SHORT_USER_ID_HASH_LEN, in GetDeviceInfoFromDisAdvData()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_net_builder.c | 383 … anonyNetworkId, info.accountHash[0], info.accountHash[1], newAccountHash[0], newAccountHash[1]); in IsNeedWifiReauth() 403 return memcmp(info.accountHash, newAccountHash, HB_SHORT_ACCOUNT_HASH_LEN) != 0; in IsNeedWifiReauth()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/ |
H A D | lnn_distributed_net_ledger.c | 688 strlen(accountString), (unsigned char *)info->accountHash); in UpdateNewNodeAccountHash() 728 …if (memcpy_s(oldInfo->accountHash, SHA_256_HASH_LEN, newInfo->accountHash, SHA_256_HASH_LEN) != EO… in LnnUpdateNodeInfo()
|
H A D | lnn_distributed_net_ledger_manager.c | 693 if (memcpy_s(buf, len, info->accountHash, SHA_256_HASH_LEN) != EOK) { in DlGetAccountHash()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/ |
H A D | lnn_local_net_ledger.c | 272 if (memcpy_s(buf, len, info->accountHash, SHA_256_HASH_LEN) != EOK) { in LlGetAccount() 286 if (memcpy_s(info->accountHash, SHA_256_HASH_LEN, buf, SHA_256_HASH_LEN) != EOK) { in LlUpdateAccount()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_net_builder_mock_test.cpp | 1885 EXPECT_EQ(EOK, strcpy_s(info.accountHash, SHA_256_HASH_LEN, ACCOUNT_HASH));
|