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 …std::min(pairing_request.GetMaximumEncryptionKeySize(), pairing_response.GetMaximumEncryptionKeySi… in PairingMain()
84 …bool isSecureConnections = pairing_request.GetAuthReq() & pairing_response.GetAuthReq() & AuthReqM… in PairingMain()
99 IAmCentral(i) ? pairing_response.GetOobDataFlag() : pairing_request.GetOobDataFlag(); in PairingMain()
111 …Stage1ResultOrFailure stage1result = DoSecureConnectionsStage1(i, PKa, PKb, pairing_request, pairi… in PairingMain()
117 …Stage2ResultOrFailure stage_2_result = DoSecureConnectionsStage2(i, PKa, PKb, pairing_request, pai… in PairingMain()
139 LegacyStage1ResultOrFailure stage1result = DoLegacyStage1(i, pairing_request, pairing_response); in PairingMain()
147 StkOrFailure stage2result = DoLegacyStage2(i, pairing_request, pairing_response, tk); in PairingMain()
235 auto pairing_request = PairingRequestView::Create(temp_cmd_view); in ExchangePairingFeature() local
236 ASSERT(pairing_request.IsValid()); 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()
123 …gHandlerLe::DoLegacyStage2(const InitialInformations& i, const PairingRequestView& pairing_request, in DoLegacyStage2() argument
126 std::vector<uint8_t> preq(pairing_request.begin(), pairing_request.end()); in DoLegacyStage2()
191 std::vector<uint8_t> preq(pairing_request.begin(), pairing_request.end()); in DoLegacyStage2()
Dpairing_handler_le_secure_connections.cc95 … const PairingRequestView& pairing_request, in DoSecureConnectionsStage1() argument
97 if (((pairing_request.GetAuthReq() & AuthReqMaskMitm) == 0) && in DoSecureConnectionsStage1()
103 if (pairing_request.GetOobDataFlag() == OobDataFlag::PRESENT || in DoSecureConnectionsStage1()
105 …emote_oob_flag = IAmCentral(i) ? pairing_response.GetOobDataFlag() : pairing_request.GetOobDataFla… in DoSecureConnectionsStage1()
106 …OobDataFlag my_oob_flag = IAmCentral(i) ? pairing_request.GetOobDataFlag() : pairing_response.GetO… in DoSecureConnectionsStage1()
110 const auto& iom = pairing_request.GetIoCapability(); in DoSecureConnectionsStage1()
134 … const PairingRequestView& pairing_request, in DoSecureConnectionsStage2() argument
163 std::array<uint8_t, 3> iocapA{static_cast<uint8_t>(pairing_request.GetIoCapability()), in DoSecureConnectionsStage2()
164 … static_cast<uint8_t>(pairing_request.GetOobDataFlag()), pairing_request.GetAuthReq()}; in DoSecureConnectionsStage2()
Dpairing_handler_le_unittest.cc163 std::optional<bluetooth::security::CommandView> pairing_request = WaitForOutgoingL2capPacket(); in TEST_F() local
164 EXPECT_TRUE(pairing_request.has_value()); in TEST_F()
165 EXPECT_EQ(pairing_request->GetCode(), Code::PAIRING_REQUEST); in TEST_F()
192 CommandView pairing_request = pairing_request_pkt.value(); in TEST_F() local
248 PairingRequestView preqv = PairingRequestView::Create(pairing_request); in TEST_F()
332 .pairing_request = PairingRequestView::Create(BuilderToView(PairingRequestBuilder::Create(
Dinitial_informations.h102 std::optional<PairingRequestView> pairing_request; member
Dpairing_handler_le.h216 … const EcdhPublicKey& PKb, const PairingRequestView& pairing_request,
234 … const EcdhPublicKey& PKb, const PairingRequestView& pairing_request,
244 …ltOrFailure DoLegacyStage1(const InitialInformations& i, const PairingRequestView& pairing_request,
250 …tkOrFailure DoLegacyStage2(const InitialInformations& i, const PairingRequestView& pairing_request,
/system/bt/gd/security/test/
Dpairing_handler_le_pair_test.cc328 peripheral_setup.pairing_request = PairingRequestView::Create(*first_pkt); in TEST_F()
465 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
508 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
560 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
603 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
632 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
661 peripheral_setup.pairing_request = PairingRequestView::Create(*first_command); in TEST_F()
/system/bt/gd/security/internal/
Dsecurity_manager_impl.cc519 PairingRequestView pairing_request = PairingRequestView::Create(temp_cmd_view); in OnSmpCommandLe() local
547 .pairing_request = pairing_request, in OnSmpCommandLe()
619 ….pairing_request = std::nullopt, // TODO: handle remotely initiated pairing in SecurityManager pr… in ConnectionIsReadyStartPairing()