Home
last modified time | relevance | path

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

/ohos5.0/foundation/communication/dsoftbus/core/adapter/bus_center/src/
H A Dlnn_ohos_account.cpp34 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 Dlnn_ohos_account_virtual.cpp19 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 Dlnn_coap_discovery_impl.c72 …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 Dhb_utils_test.cpp182 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 Dlnn_heartbeat_utils.c267 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 Dlnn_heartbeat_medium_mgr.c362 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 Dlnn_decision_db.c272 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 Dlnn_ohos_account.h25 int32_t LnnGetOhosAccountInfo(uint8_t *accountHash, uint32_t len);
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_interface.c652 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 Dbus_center_mock.h68 static inline uint8_t accountHash[] = { variable
H A Dbus_center_mock.cpp99 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 Dlnn_heartbeat_utils.h156 int32_t LnnGetShortAccountHash(uint8_t *accountHash, uint32_t len);
/ohos5.0/foundation/communication/dsoftbus/interfaces/kits/common/
H A Dsoftbus_common.h540 char accountHash[MAX_ACCOUNT_HASH_LEN]; member
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_net_ledger.c495 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 Ddisc_coap_parser.c147 (unsigned char *)device->accountHash); in DiscCoapParseHwAccountHash()
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/coap/common/unittest/
H A Ddisc_coap_parser_test.cpp217 EXPECT_STREQ(deviceInfo.accountHash,
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h154 char accountHash[SHA_256_HASH_LEN]; member
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_other_test.cpp1122 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 Ddisc_ble.c450 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 Ddisc_ble_utils.c405 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 Dlnn_net_builder.c383 … 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 Dlnn_distributed_net_ledger.c688 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 Dlnn_distributed_net_ledger_manager.c693 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 Dlnn_local_net_ledger.c272 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 Dlnn_net_builder_mock_test.cpp1885 EXPECT_EQ(EOK, strcpy_s(info.accountHash, SHA_256_HASH_LEN, ACCOUNT_HASH));