Home
last modified time | relevance | path

Searched refs:PairingFailure (Results 1 – 15 of 15) sorted by relevance

/system/bt/gd/security/
Dpairing_handler_le.cc51 …i.OnPairingFinished(PairingFailure("User either did not accept the remote pairing, or the prompt t… in PairingMain()
60 if (std::holds_alternative<PairingFailure>(phase_1_result)) { in PairingMain()
65 i.OnPairingFinished(std::get<PairingFailure>(phase_1_result)); in PairingMain()
76 …i.OnPairingFinished(PairingFailure("Resulting key size is bad", PairingFailedReason::ENCRYPTION_KE… in PairingMain()
102 if (std::holds_alternative<PairingFailure>(key_exchange_result)) { in PairingMain()
104 i.OnPairingFinished(std::get<PairingFailure>(key_exchange_result)); in PairingMain()
112 if (std::holds_alternative<PairingFailure>(stage1result)) { in PairingMain()
113 i.OnPairingFinished(std::get<PairingFailure>(stage1result)); in PairingMain()
119 if (std::holds_alternative<PairingFailure>(stage_2_result)) { in PairingMain()
120 i.OnPairingFinished(std::get<PairingFailure>(stage_2_result)); in PairingMain()
[all …]
Dpairing_handler_le_secure_connections.cc28 std::variant<PairingFailure, KeyExchangeResult> PairingHandlerLe::ExchangePublicKeys(const InitialI… in ExchangePublicKeys()
40 return PairingFailure("Can't validate my own public key"); in ExchangePublicKeys()
52 if (std::holds_alternative<PairingFailure>(response)) { in ExchangePublicKeys()
53 return std::get<PairingFailure>(response); in ExchangePublicKeys()
64 return PairingFailure("Remote and local public keys match"); in ExchangePublicKeys()
74 return PairingFailure("Can't validate remote public key"); in ExchangePublicKeys()
188 if (std::holds_alternative<PairingFailure>(response)) { in DoSecureConnectionsStage2()
189 return std::get<PairingFailure>(response); in DoSecureConnectionsStage2()
195 return PairingFailure("Ea != Eb"); in DoSecureConnectionsStage2()
199 if (std::holds_alternative<PairingFailure>(response)) { in DoSecureConnectionsStage2()
[all …]
Dpairing_handler_le.h85 using CommandViewOrFailure = std::variant<CommandView, PairingFailure>;
87 using Phase1ResultOrFailure = std::variant<PairingFailure, Phase1Result>;
91 using Stage1ResultOrFailure = std::variant<PairingFailure, Stage1Result>;
92 using Stage2ResultOrFailure = std::variant<PairingFailure, Octet16 /* LTK */>;
93 using DistributedKeysOrFailure = std::variant<PairingFailure, DistributedKeys, std::monostate>;
96 using LegacyStage1ResultOrFailure = std::variant<PairingFailure, LegacyStage1Result>;
97 using StkOrFailure = std::variant<PairingFailure, Octet16 /* STK */>;
154 …std::variant<PairingFailure, EncryptionChangeView, EncryptionKeyRefreshCompleteView> WaitEncryptio… in WaitEncryptionChanged()
156 …if (e.type != PairingEvent::HCI_EVENT) return PairingFailure("Was expecting HCI event but received… in WaitEncryptionChanged()
158 if (!e.hci_event->IsValid()) return PairingFailure("Received invalid HCI event"); in WaitEncryptionChanged()
[all …]
Dpairing_failure.h29 struct PairingFailure { struct
46 PairingFailure(/*const base::Location& location, */ const std::string& message) in PairingFailure() argument
49PairingFailure(/*const base::Location& location, */ const std::string& message, Code received_code) in PairingFailure() function
52PairingFailure(/*const base::Location& location, */ const std::string& message, PairingFailedReaso… in PairingFailure() function
Dpairing_handler_le_legacy.cc104 if (!response) return PairingFailure("Passkey did not arrive!"); in LegacyPasskeyEntry()
155 if (std::holds_alternative<PairingFailure>(sconfirm_pkt)) { in DoLegacyStage2()
156 return std::get<PairingFailure>(sconfirm_pkt); in DoLegacyStage2()
165 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
166 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
186 return PairingFailure("sconfirm does not match generated value"); in DoLegacyStage2()
206 if (std::holds_alternative<PairingFailure>(mconfirm_pkt)) { in DoLegacyStage2()
207 return std::get<PairingFailure>(mconfirm_pkt); in DoLegacyStage2()
216 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
217 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
[all …]
Dsecurity_manager_listener.h54 …virtual void OnDeviceBondFailed(bluetooth::hci::AddressWithType device, PairingFailure status) = 0;
Dinitial_informations.h64 using PairingResultOrFailure = std::variant<PairingResult, PairingFailure>;
Dpairing_handler_le_unittest.cc167 EXPECT_CALL(*pairingResult, OnPairingFinished(VariantWith<PairingFailure>(_))).Times(1); in TEST_F()
Dfacade.cc510 void OnDeviceBondFailed(hci::AddressWithType peer, PairingFailure status) override { in OnDeviceBondFailed()
/system/bt/gd/security/internal/
Dsecurity_manager_impl.cc141 NotifyDeviceBondFailed(address, PairingFailure("Already bonded")); in CreateBondLe()
228 void SecurityManagerImpl::NotifyDeviceBondFailed(hci::AddressWithType device, PairingFailure status… in NotifyDeviceBondFailed()
436 if (!std::holds_alternative<PairingFailure>(status)) { in OnPairingHandlerComplete()
439 NotifyDeviceBondFailed(remote, std::get<PairingFailure>(status)); in OnPairingHandlerComplete()
650 NotifyDeviceBondFailed(address, PairingFailure("Connection closed")); in OnConnectionClosedLe()
660 …NotifyDeviceBondFailed(pending_le_pairing_.address_, PairingFailure("Connection establishment fail… in OnConnectionFailureLe()
700 if (std::holds_alternative<PairingFailure>(pairing_result)) { in OnPairingFinished()
701 PairingFailure failure = std::get<PairingFailure>(pairing_result); in OnPairingFinished()
Dsecurity_manager_impl.h212 void NotifyDeviceBondFailed(hci::AddressWithType device, PairingFailure status);
/system/bt/gd/security/test/
Dpairing_handler_le_pair_test.cc108 LOG_INFO("pairing with ... failed: %s", std::get<PairingFailure>(r).message.c_str()); in OnPairingFinishedCentral()
117 LOG_INFO("pairing with ... failed: %s", std::get<PairingFailure>(r).message.c_str()); in OnPairingFinishedPeripheral()
/system/bt/gd/security/pairing/
Dclassic_pairing_handler.cc161 result = PairingFailure(hci::ErrorCodeText(last_status_)); in Cancel()
/system/bt/gd/hci/acl_manager/
Dclassic_impl.h640 …void OnDeviceBondFailed(bluetooth::hci::AddressWithType device, security::PairingFailure status) o… in OnDeviceBondFailed()
/system/bt/main/shim/
Dbtm_api.cc496 bluetooth::security::PairingFailure status) override { in OnDeviceBondFailed()