Home
last modified time | relevance | path

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

/system/bt/gd/security/
Dpairing_handler_le.cc69 auto [pairing_request, pairing_response] = std::get<Phase1Result>(phase_1_result); in PairingMain()
72 …bool isSecureConnections = pairing_request.GetAuthReq() & pairing_response.GetAuthReq() & AuthReqM… in PairingMain()
87 IAmMaster(i) ? pairing_response.GetOobDataFlag() : pairing_request.GetOobDataFlag(); in PairingMain()
99 …Stage1ResultOrFailure stage1result = DoSecureConnectionsStage1(i, PKa, PKb, pairing_request, pairi… in PairingMain()
105 …Stage2ResultOrFailure stage_2_result = DoSecureConnectionsStage2(i, PKa, PKb, pairing_request, pai… in PairingMain()
122 LegacyStage1ResultOrFailure stage1result = DoLegacyStage1(i, pairing_request, pairing_response); in PairingMain()
130 StkOrFailure stage2result = DoLegacyStage2(i, pairing_request, pairing_response, tk); in PairingMain()
212 auto pairing_request = PairingRequestView::Create(temp_cmd_view); in ExchangePairingFeature() local
213 ASSERT(pairing_request.IsValid()); in ExchangePairingFeature()
240 return Phase1Result{pairing_request, pairing_response}; in ExchangePairingFeature()
[all …]
Dpairing_handler_le_legacy.cc29 … const PairingRequestView& pairing_request, in DoLegacyStage1() argument
31 if (((pairing_request.GetAuthReq() | pairing_response.GetAuthReq()) & AuthReqMaskMitm) == 0) { in DoLegacyStage1()
36 if (pairing_request.GetOobDataFlag() == OobDataFlag::PRESENT && in DoLegacyStage1()
44 const auto& iom = pairing_request.GetIoCapability(); in DoLegacyStage1()
122 …gHandlerLe::DoLegacyStage2(const InitialInformations& i, const PairingRequestView& pairing_request, in DoLegacyStage2() argument
125 std::vector<uint8_t> preq(pairing_request.begin(), pairing_request.end()); in DoLegacyStage2()
190 std::vector<uint8_t> preq(pairing_request.begin(), pairing_request.end()); in DoLegacyStage2()
Dpairing_handler_le_secure_connections.cc90 … const PairingRequestView& pairing_request, in DoSecureConnectionsStage1() argument
92 if (((pairing_request.GetAuthReq() & AuthReqMaskMitm) == 0) && in DoSecureConnectionsStage1()
98 if (pairing_request.GetOobDataFlag() == OobDataFlag::PRESENT || in DoSecureConnectionsStage1()
100 …remote_oob_flag = IAmMaster(i) ? pairing_response.GetOobDataFlag() : pairing_request.GetOobDataFla… in DoSecureConnectionsStage1()
101 …OobDataFlag my_oob_flag = IAmMaster(i) ? pairing_request.GetOobDataFlag() : pairing_response.GetOo… in DoSecureConnectionsStage1()
105 const auto& iom = pairing_request.GetIoCapability(); in DoSecureConnectionsStage1()
129 … const PairingRequestView& pairing_request, in DoSecureConnectionsStage2() argument
158 std::array<uint8_t, 3> iocapA{static_cast<uint8_t>(pairing_request.GetIoCapability()), in DoSecureConnectionsStage2()
159 … static_cast<uint8_t>(pairing_request.GetOobDataFlag()), pairing_request.GetAuthReq()}; in DoSecureConnectionsStage2()
Dpairing_handler_le_unittest.cc160 std::optional<bluetooth::security::CommandView> pairing_request = WaitForOutgoingL2capPacket(); in TEST_F() local
161 EXPECT_TRUE(pairing_request.has_value()); in TEST_F()
162 EXPECT_EQ(pairing_request->GetCode(), Code::PAIRING_REQUEST); in TEST_F()
189 CommandView pairing_request = pairing_request_pkt.value(); in TEST_F() local
245 PairingRequestView preqv = PairingRequestView::Create(pairing_request); in TEST_F()
323 .pairing_request = PairingRequestView::Create(BuilderToView(
Dpairing_handler_le.h185 … const EcdhPublicKey& PKb, const PairingRequestView& pairing_request,
203 … const EcdhPublicKey& PKb, const PairingRequestView& pairing_request,
213 …ltOrFailure DoLegacyStage1(const InitialInformations& i, const PairingRequestView& pairing_request,
219 …tkOrFailure DoLegacyStage2(const InitialInformations& i, const PairingRequestView& pairing_request,
Dinitial_informations.h94 std::optional<PairingRequestView> pairing_request; member
/system/bt/gd/security/test/
Dpairing_handler_le_pair_test.cc311 slave_setup.pairing_request = PairingRequestView::Create(*first_pkt); in TEST_F()
432 slave_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
476 slave_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
530 slave_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
573 slave_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
602 slave_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
631 slave_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
/system/bt/gd/security/internal/
Dsecurity_manager_impl.cc440 PairingRequestView pairing_request = PairingRequestView::Create(temp_cmd_view); in OnSmpCommandLe() local
466 .pairing_request = pairing_request, in OnSmpCommandLe()
536 ….pairing_request = std::nullopt, // TODO: handle remotely initiated pairing in SecurityManager pr… in ConnectionIsReadyStartPairing()