Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/gd/security/
Dpairing_handler_le.cc56 …i.OnPairingFinished(PairingFailure("User either did not accept the remote pairing, or the prompt t… in PairingMain()
65 if (std::holds_alternative<PairingFailure>(phase_1_result)) { in PairingMain()
70 i.OnPairingFinished(std::get<PairingFailure>(phase_1_result)); in PairingMain()
81 …i.OnPairingFinished(PairingFailure("Resulting key size is bad", PairingFailedReason::ENCRYPTION_KE… in PairingMain()
107 if (std::holds_alternative<PairingFailure>(key_exchange_result)) { in PairingMain()
109 i.OnPairingFinished(std::get<PairingFailure>(key_exchange_result)); in PairingMain()
117 if (std::holds_alternative<PairingFailure>(stage1result)) { in PairingMain()
118 i.OnPairingFinished(std::get<PairingFailure>(stage1result)); in PairingMain()
124 if (std::holds_alternative<PairingFailure>(stage_2_result)) { in PairingMain()
125 i.OnPairingFinished(std::get<PairingFailure>(stage_2_result)); in PairingMain()
[all …]
Dpairing_handler_le_secure_connections.cc32 std::variant<PairingFailure, KeyExchangeResult> PairingHandlerLe::ExchangePublicKeys(const InitialI… in ExchangePublicKeys()
44 return PairingFailure("Can't validate my own public key"); in ExchangePublicKeys()
56 if (std::holds_alternative<PairingFailure>(response)) { in ExchangePublicKeys()
57 return std::get<PairingFailure>(response); in ExchangePublicKeys()
68 return PairingFailure("Remote and local public keys match"); in ExchangePublicKeys()
78 return PairingFailure("Can't validate remote public key"); in ExchangePublicKeys()
194 if (std::holds_alternative<PairingFailure>(response)) { in DoSecureConnectionsStage2()
195 return std::get<PairingFailure>(response); in DoSecureConnectionsStage2()
201 return PairingFailure("Ea != Eb"); in DoSecureConnectionsStage2()
205 if (std::holds_alternative<PairingFailure>(response)) { in DoSecureConnectionsStage2()
[all …]
Dpairing_handler_le.h81 using CommandViewOrFailure = std::variant<CommandView, PairingFailure>;
83 using Phase1ResultOrFailure = std::variant<PairingFailure, Phase1Result>;
87 using Stage1ResultOrFailure = std::variant<PairingFailure, Stage1Result>;
88 using Stage2ResultOrFailure = std::variant<PairingFailure, hci::Octet16 /* LTK */>;
89 using DistributedKeysOrFailure = std::variant<PairingFailure, DistributedKeys, std::monostate>;
92 using LegacyStage1ResultOrFailure = std::variant<PairingFailure, LegacyStage1Result>;
93 using StkOrFailure = std::variant<PairingFailure, hci::Octet16 /* STK */>;
155 …std::variant<PairingFailure, EncryptionChangeView, EncryptionKeyRefreshCompleteView> WaitEncryptio… in WaitEncryptionChanged()
157 …if (e.type != PairingEvent::HCI_EVENT) return PairingFailure("Was expecting HCI event but received… in WaitEncryptionChanged()
159 if (!e.hci_event->IsValid()) return PairingFailure("Received invalid HCI event"); in WaitEncryptionChanged()
[all …]
Dpairing_handler_le_legacy.cc109 if (!response) return PairingFailure("Passkey did not arrive!"); in LegacyPasskeyEntry()
161 if (std::holds_alternative<PairingFailure>(sconfirm_pkt)) { in DoLegacyStage2()
162 return std::get<PairingFailure>(sconfirm_pkt); in DoLegacyStage2()
171 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
172 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
192 return PairingFailure("sconfirm does not match generated value"); in DoLegacyStage2()
212 if (std::holds_alternative<PairingFailure>(mconfirm_pkt)) { in DoLegacyStage2()
213 return std::get<PairingFailure>(mconfirm_pkt); in DoLegacyStage2()
222 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
223 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
[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() argument
Dsecurity_manager_listener.h52 …virtual void OnDeviceBondFailed(bluetooth::hci::AddressWithType device, PairingFailure status) = 0;
Dinitial_informations.h60 using PairingResultOrFailure = std::variant<PairingResult, PairingFailure>;
Dpairing_handler_le_unittest.cc170 EXPECT_CALL(*pairingResult, OnPairingFinished(VariantWith<PairingFailure>(_))).Times(1); in TEST_F()
Dfacade.cc621 void OnDeviceBondFailed(hci::AddressWithType peer, PairingFailure status) override { in OnDeviceBondFailed()
/packages/modules/Bluetooth/system/gd/security/internal/
Dsecurity_manager_impl.cc157 NotifyDeviceBondFailed(address, PairingFailure("Already bonded")); in CreateBondLe()
244 void SecurityManagerImpl::NotifyDeviceBondFailed(hci::AddressWithType device, PairingFailure status… in NotifyDeviceBondFailed()
451 if (!std::holds_alternative<PairingFailure>(status)) { in OnPairingHandlerComplete()
454 NotifyDeviceBondFailed(remote, std::get<PairingFailure>(status)); in OnPairingHandlerComplete()
667 NotifyDeviceBondFailed(address, PairingFailure("Connection closed")); in OnConnectionClosedLe()
677 …NotifyDeviceBondFailed(pending_le_pairing_.address_, PairingFailure("Connection establishment fail… in OnConnectionFailureLe()
719 if (std::holds_alternative<PairingFailure>(pairing_result)) { in OnPairingFinished()
720 PairingFailure failure = std::get<PairingFailure>(pairing_result); in OnPairingFinished()
Dsecurity_manager_impl.h217 void NotifyDeviceBondFailed(hci::AddressWithType device, PairingFailure status);
/packages/modules/Bluetooth/system/gd/security/test/
Dpairing_handler_le_pair_test.cc111 log::info("pairing with ... failed: {}", std::get<PairingFailure>(r).message); in OnPairingFinishedCentral()
121 log::info("pairing with ... failed: {}", std::get<PairingFailure>(r).message); in OnPairingFinishedPeripheral()
/packages/modules/Bluetooth/system/gd/security/pairing/
Dclassic_pairing_handler.cc174 result = PairingFailure(hci::ErrorCodeText(last_status_)); in Cancel()