Home
last modified time | relevance | path

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

/ohos5.0/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.c779 *cacheInfo->rpaInfo.publicAddress, *cacheInfo->remotePtk, anonyDeviceVersion); in PrintSyncNodeInfo()
870 if (memcpy_s(oldInfo->remotePtk, PTK_DEFAULT_LEN, newInfo->remotePtk, PTK_DEFAULT_LEN) != EOK) { in LnnUpdateOldCacheInfo()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_node_info.c569 int32_t LnnSetPtk(NodeInfo *info, const char *remotePtk) in LnnSetPtk() argument
571 if (info == NULL || remotePtk == NULL) { in LnnSetPtk()
575 if (memcpy_s(info->remotePtk, PTK_DEFAULT_LEN, remotePtk, PTK_DEFAULT_LEN) != EOK) { in LnnSetPtk()
H A Dlnn_net_ledger.c694 char remotePtk[PTK_DEFAULT_LEN] = {0}; in SoftbusDumpPrintRemotePtk() local
696 (uint8_t *)&remotePtk, PTK_DEFAULT_LEN) != SOFTBUS_OK) { in SoftbusDumpPrintRemotePtk()
702 (unsigned char *)remotePtk, PTK_DEFAULT_LEN) != SOFTBUS_OK) { in SoftbusDumpPrintRemotePtk()
/ohos5.0/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);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c221 if (memcpy_s(buf, len, info->remotePtk, PTK_DEFAULT_LEN) != EOK) { in DlGetRemotePtk()
1082 bool LnnSetDlPtk(const char *networkId, const char *remotePtk) in LnnSetDlPtk() argument
1085 if (networkId == NULL || remotePtk == NULL) { in LnnSetDlPtk()
1099 LnnDumpRemotePtk(node->remotePtk, remotePtk, "set remote ptk"); in LnnSetDlPtk()
1100 if (LnnSetPtk(node, remotePtk) != SOFTBUS_OK) { in LnnSetDlPtk()
1119 if (memcmp(cacheInfo.remotePtk, remotePtk, PTK_DEFAULT_LEN) == 0) { in LnnSetDlPtk()
1123 if (memcpy_s(cacheInfo.remotePtk, PTK_DEFAULT_LEN, remotePtk, PTK_DEFAULT_LEN) != EOK) { in LnnSetDlPtk()
H A Dlnn_distributed_net_ledger.c733 LnnDumpRemotePtk(oldInfo->remotePtk, newInfo->remotePtk, "update node info"); in LnnUpdateNodeInfo()
734 if (memcpy_s(oldInfo->remotePtk, PTK_DEFAULT_LEN, newInfo->remotePtk, PTK_DEFAULT_LEN) != EOK) { in LnnUpdateNodeInfo()
967 LnnDumpRemotePtk(deviceInfo->remotePtk, info->remotePtk, "get and save remote device info"); in GetAndSaveRemoteDeviceInfo()
968 if (memcpy_s(deviceInfo->remotePtk, PTK_DEFAULT_LEN, info->remotePtk, PTK_DEFAULT_LEN) != EOK) { in GetAndSaveRemoteDeviceInfo()
/ohos5.0/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);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h185 char remotePtk[PTK_DEFAULT_LEN]; member
252 int32_t LnnSetPtk(NodeInfo *info, const char *remotePtk);
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_mock.h74 … virtual int32_t LnnGetRemoteDefaultPtkByUuid(const char *uuid, char *remotePtk, uint32_t len) = 0;
156 …MOCK_METHOD3(LnnGetRemoteDefaultPtkByUuid, int32_t (const char *uuid, char *remotePtk, uint32_t le…
H A Dwifi_direct_mock.cpp162 int32_t LnnGetRemoteDefaultPtkByUuid(const char *uuid, char *remotePtk, uint32_t len) in LnnGetRemoteDefaultPtkByUuid() argument
164 …S::SoftBus::WifiDirectInterfaceMock::GetMock()->LnnGetRemoteDefaultPtkByUuid(uuid, remotePtk, len); in LnnGetRemoteDefaultPtkByUuid()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/include/
H A Dlnn_distributed_net_ledger.h97 bool LnnSetDlPtk(const char *networkId, const char *remotePtk);
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1469 static void UnpackPtk(char *remotePtk, char *decodePtk) in UnpackPtk() argument
1472 if (SoftBusBase64Decode((unsigned char *)remotePtk, PTK_DEFAULT_LEN, &len, in UnpackPtk()
1477 LnnDumpRemotePtk(NULL, remotePtk, "unpack wifi direct info"); in UnpackPtk()
1510 UnpackPtk(info->remotePtk, encodePtk); in UnpackWifiDirectInfo()
H A Dauth_manager.c972 if (!LnnSetDlPtk(info->nodeInfo.networkId, info->nodeInfo.remotePtk)) { in AuthManagerSetAuthPassed()