/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_ptk_info_virtual.c | 68 int32_t LnnGetRemoteDefaultPtkByUuid(const char *uuid, char *remotePtk, uint32_t len) in LnnGetRemoteDefaultPtkByUuid() argument 71 (void)remotePtk; in LnnGetRemoteDefaultPtkByUuid()
|
H A D | lnn_data_cloud_sync.c | 782 *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 D | lnn_data_cloud_sync.h | 58 char remotePtk[PTK_DEFAULT_LEN]; member
|
H A D | lnn_p2p_info.h | 66 int32_t LnnGetRemoteDefaultPtkByUuid(const char *uuid, char *remotePtk, uint32_t len);
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/ |
H A D | lnn_node_info.c | 553 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 D | lnn_net_ledger.c | 736 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 D | lnn_node_info.h | 185 char remotePtk[PTK_DEFAULT_LEN]; member 251 int32_t LnnSetPtk(NodeInfo *info, const char *remotePtk);
|
/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_net_ledger_mock.cpp | 184 bool LnnSetDlPtk(const char *networkId, const char *remotePtk) in LnnSetDlPtk() argument 186 return GetNetLedgerInterface()->LnnSetDlPtk(networkId, remotePtk); in LnnSetDlPtk()
|
H A D | auth_net_ledger_mock.h | 66 virtual bool LnnSetDlPtk(const char *networkId, const char *remotePtk) = 0;
|
H A D | auth_session_message_test.cpp | 448 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 D | lnn_distributed_net_ledger_manager.c | 243 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 D | lnn_distributed_net_ledger.c | 735 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 D | lnn_distributed_net_ledger.h | 96 bool LnnSetDlPtk(const char *networkId, const char *remotePtk);
|
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_mock.cpp | 176 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 D | wifi_direct_mock.h | 75 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 D | auth_session_json.c | 1484 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 D | auth_manager.c | 974 if (!LnnSetDlPtk(info->nodeInfo.networkId, info->nodeInfo.remotePtk)) { in AuthManagerSetAuthPassed()
|