Home
last modified time | relevance | path

Searched refs:pairing_request (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Bluetooth/system/gd/security/
Dpairing_handler_le.cc74 auto [pairing_request, pairing_response] = std::get<Phase1Result>(phase_1_result); in PairingMain()
77 …std::min(pairing_request.GetMaximumEncryptionKeySize(), pairing_response.GetMaximumEncryptionKeySi… in PairingMain()
89 …bool isSecureConnections = pairing_request.GetAuthReq() & pairing_response.GetAuthReq() & AuthReqM… in PairingMain()
104 IAmCentral(i) ? pairing_response.GetOobDataFlag() : pairing_request.GetOobDataFlag(); in PairingMain()
116 …Stage1ResultOrFailure stage1result = DoSecureConnectionsStage1(i, PKa, PKb, pairing_request, pairi… in PairingMain()
122 …Stage2ResultOrFailure stage_2_result = DoSecureConnectionsStage2(i, PKa, PKb, pairing_request, pai… in PairingMain()
144 LegacyStage1ResultOrFailure stage1result = DoLegacyStage1(i, pairing_request, pairing_response); in PairingMain()
152 StkOrFailure stage2result = DoLegacyStage2(i, pairing_request, pairing_response, tk); in PairingMain()
240 auto pairing_request = PairingRequestView::Create(temp_cmd_view); in ExchangePairingFeature() local
241 log::assert_that(pairing_request.IsValid(), "assert failed: pairing_request.IsValid()"); in ExchangePairingFeature()
[all …]
Dpairing_handler_le_legacy.cc33 … const PairingRequestView& pairing_request, in DoLegacyStage1() argument
35 if (((pairing_request.GetAuthReq() | pairing_response.GetAuthReq()) & AuthReqMaskMitm) == 0) { in DoLegacyStage1()
40 if (pairing_request.GetOobDataFlag() == OobDataFlag::PRESENT && in DoLegacyStage1()
48 const auto& iom = pairing_request.GetIoCapability(); in DoLegacyStage1()
128 …gHandlerLe::DoLegacyStage2(const InitialInformations& i, const PairingRequestView& pairing_request, in DoLegacyStage2() argument
131 std::vector<uint8_t> preq(pairing_request.begin(), pairing_request.end()); in DoLegacyStage2()
197 std::vector<uint8_t> preq(pairing_request.begin(), pairing_request.end()); in DoLegacyStage2()
Dpairing_handler_le_secure_connections.cc99 … const PairingRequestView& pairing_request, in DoSecureConnectionsStage1() argument
101 if (((pairing_request.GetAuthReq() & AuthReqMaskMitm) == 0) && in DoSecureConnectionsStage1()
107 if (pairing_request.GetOobDataFlag() == OobDataFlag::PRESENT || in DoSecureConnectionsStage1()
109 …emote_oob_flag = IAmCentral(i) ? pairing_response.GetOobDataFlag() : pairing_request.GetOobDataFla… in DoSecureConnectionsStage1()
110 …OobDataFlag my_oob_flag = IAmCentral(i) ? pairing_request.GetOobDataFlag() : pairing_response.GetO… in DoSecureConnectionsStage1()
114 const auto& iom = pairing_request.GetIoCapability(); in DoSecureConnectionsStage1()
140 const PairingRequestView& pairing_request, in DoSecureConnectionsStage2() argument
169 std::array<uint8_t, 3> iocapA{static_cast<uint8_t>(pairing_request.GetIoCapability()), in DoSecureConnectionsStage2()
170 … static_cast<uint8_t>(pairing_request.GetOobDataFlag()), pairing_request.GetAuthReq()}; in DoSecureConnectionsStage2()
Dpairing_handler_le_unittest.cc166 std::optional<bluetooth::security::CommandView> pairing_request = WaitForOutgoingL2capPacket(); in TEST_F() local
167 EXPECT_TRUE(pairing_request.has_value()); in TEST_F()
168 EXPECT_EQ(pairing_request->GetCode(), Code::PAIRING_REQUEST); in TEST_F()
195 CommandView pairing_request = pairing_request_pkt.value(); in TEST_F() local
251 PairingRequestView preqv = PairingRequestView::Create(pairing_request); in TEST_F()
335 .pairing_request = PairingRequestView::Create(BuilderToView(PairingRequestBuilder::Create(
Dpairing_handler_le.h217 … const EcdhPublicKey& PKb, const PairingRequestView& pairing_request,
235 … const EcdhPublicKey& PKb, const PairingRequestView& pairing_request,
245 …ltOrFailure DoLegacyStage1(const InitialInformations& i, const PairingRequestView& pairing_request,
253 const PairingRequestView& pairing_request,
Dinitial_informations.h98 std::optional<PairingRequestView> pairing_request; member
/packages/modules/Bluetooth/system/gd/security/test/
Dpairing_handler_le_pair_test.cc335 peripheral_setup.pairing_request = PairingRequestView::Create(*first_pkt); in TEST_F()
475 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
518 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
570 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
613 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
642 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
671 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
/packages/modules/Bluetooth/system/gd/security/internal/
Dsecurity_manager_impl.cc535 PairingRequestView pairing_request = PairingRequestView::Create(temp_cmd_view); in OnSmpCommandLe() local
563 .pairing_request = pairing_request, in OnSmpCommandLe()
635 ….pairing_request = std::nullopt, // TODO: handle remotely initiated pairing in SecurityManager pr… in ConnectionIsReadyStartPairing()