Home
last modified time | relevance | path

Searched refs:remotePtk (Results 1 - 17 of 17) sorted by relevance

/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_ptk_info_virtual.c68 int32_t LnnGetRemoteDefaultPtkByUuid(const char *uuid, char *remotePtk, uint32_t len) in LnnGetRemoteDefaultPtkByUuid() argument
71 (void)remotePtk; in LnnGetRemoteDefaultPtkByUuid()
H A Dlnn_data_cloud_sync.c782 *cacheInfo->remotePtk, AnonymizeWrapper(anonyDeviceVersion)); in PrintSyncNodeInfo()
874 if (memcpy_s(oldInfo->remotePtk, PTK_DEFAULT_LEN, newInfo->remotePtk, PTK_DEFAULT_LEN) != EOK) { in LnnUpdateOldCacheInfo()
875 LNN_LOGE(LNN_LEDGER, "memcpy_s remotePtk to cache info fail"); in LnnUpdateOldCacheInfo()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_data_cloud_sync.h58 char remotePtk[PTK_DEFAULT_LEN]; member
H A Dlnn_p2p_info.h66 int32_t LnnGetRemoteDefaultPtkByUuid(const char *uuid, char *remotePtk, uint32_t len);
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_node_info.c553 int32_t LnnSetPtk(NodeInfo *info, const char *remotePtk) in LnnSetPtk() argument
555 if (info == NULL || remotePtk == NULL) { in LnnSetPtk()
559 if (memcpy_s(info->remotePtk, PTK_DEFAULT_LEN, remotePtk, PTK_DEFAULT_LEN) != EOK) { in LnnSetPtk()
H A Dlnn_net_ledger.c736 char remotePtk[PTK_DEFAULT_LEN] = {0}; in SoftbusDumpPrintRemotePtk() local
738 (uint8_t *)&remotePtk, PTK_DEFAULT_LEN) != SOFTBUS_OK) { in SoftbusDumpPrintRemotePtk()
744 (unsigned char *)remotePtk, PTK_DEFAULT_LEN) != SOFTBUS_OK) { in SoftbusDumpPrintRemotePtk()
745 LNN_LOGE(LNN_LEDGER, "convert remotePtk to string fail."); in SoftbusDumpPrintRemotePtk()
746 (void)memset_s(remotePtk, PTK_DEFAULT_LEN, 0, PTK_DEFAULT_LEN); in SoftbusDumpPrintRemotePtk()
753 (void)memset_s(remotePtk, PTK_DEFAULT_LEN, 0, PTK_DEFAULT_LEN); in SoftbusDumpPrintRemotePtk()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h185 char remotePtk[PTK_DEFAULT_LEN]; member
251 int32_t LnnSetPtk(NodeInfo *info, const char *remotePtk);
/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_net_ledger_mock.cpp184 bool LnnSetDlPtk(const char *networkId, const char *remotePtk) in LnnSetDlPtk() argument
186 return GetNetLedgerInterface()->LnnSetDlPtk(networkId, remotePtk); in LnnSetDlPtk()
H A Dauth_net_ledger_mock.h66 virtual bool LnnSetDlPtk(const char *networkId, const char *remotePtk) = 0;
H A Dauth_session_message_test.cpp448 ASSERT_TRUE(memcpy_s(info.remotePtk, PTK_DEFAULT_LEN, REMOTE_PTK, strlen(REMOTE_PTK)) == EOK); in HWTEST_F()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c243 if (memcpy_s(buf, len, info->remotePtk, PTK_DEFAULT_LEN) != EOK) { in DlGetRemotePtk()
1103 bool LnnSetDlPtk(const char *networkId, const char *remotePtk) in LnnSetDlPtk() argument
1106 if (networkId == NULL || remotePtk == NULL) { in LnnSetDlPtk()
1120 LnnDumpRemotePtk(node->remotePtk, remotePtk, "set remote ptk"); in LnnSetDlPtk()
1121 if (LnnSetPtk(node, remotePtk) != SOFTBUS_OK) { in LnnSetDlPtk()
1140 if (memcmp(cacheInfo.remotePtk, remotePtk, PTK_DEFAULT_LEN) == 0) { in LnnSetDlPtk()
1144 if (memcpy_s(cacheInfo.remotePtk, PTK_DEFAULT_LEN, remotePtk, PTK_DEFAULT_LE in LnnSetDlPtk()
[all...]
H A Dlnn_distributed_net_ledger.c735 LnnDumpRemotePtk(oldInfo->remotePtk, newInfo->remotePtk, "update node info"); in LnnUpdateNodeInfo()
736 if (memcpy_s(oldInfo->remotePtk, PTK_DEFAULT_LEN, newInfo->remotePtk, PTK_DEFAULT_LEN) != EOK) { in LnnUpdateNodeInfo()
959 LnnDumpRemotePtk(deviceInfo->remotePtk, info->remotePtk, "get and save remote device info"); in GetAndSaveRemoteDeviceInfo()
960 if (memcpy_s(deviceInfo->remotePtk, PTK_DEFAULT_LEN, info->remotePtk, PTK_DEFAULT_LEN) != EOK) { in GetAndSaveRemoteDeviceInfo()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/include/
H A Dlnn_distributed_net_ledger.h96 bool LnnSetDlPtk(const char *networkId, const char *remotePtk);
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_mock.cpp176 int32_t LnnGetRemoteDefaultPtkByUuid(const char *uuid, char *remotePtk, uint32_t len) in LnnGetRemoteDefaultPtkByUuid() argument
178 return OHOS::SoftBus::WifiDirectInterfaceMock::GetMock()->LnnGetRemoteDefaultPtkByUuid(uuid, remotePtk, len); in LnnGetRemoteDefaultPtkByUuid()
H A Dwifi_direct_mock.h75 virtual int32_t LnnGetRemoteDefaultPtkByUuid(const char *uuid, char *remotePtk, uint32_t len) = 0;
160 MOCK_METHOD3(LnnGetRemoteDefaultPtkByUuid, int32_t (const char *uuid, char *remotePtk, uint32_t len));
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1484 static void UnpackPtk(char *remotePtk, char *decodePtk) in UnpackPtk() argument
1487 if (SoftBusBase64Decode((unsigned char *)remotePtk, PTK_DEFAULT_LEN, &len, in UnpackPtk()
1492 LnnDumpRemotePtk(NULL, remotePtk, "unpack wifi direct info"); in UnpackPtk()
1525 UnpackPtk(info->remotePtk, encodePtk); in UnpackWifiDirectInfo()
H A Dauth_manager.c974 if (!LnnSetDlPtk(info->nodeInfo.networkId, info->nodeInfo.remotePtk)) { in AuthManagerSetAuthPassed()

Completed in 23 milliseconds