/system/bt/gd/security/ |
D | pairing_handler_le.cc | 51 …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 …]
|
D | pairing_handler_le_secure_connections.cc | 28 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 …]
|
D | pairing_handler_le.h | 85 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 …]
|
D | pairing_failure.h | 29 struct PairingFailure { struct 46 PairingFailure(/*const base::Location& location, */ const std::string& message) in PairingFailure() argument 49 …PairingFailure(/*const base::Location& location, */ const std::string& message, Code received_code) in PairingFailure() argument 52 …PairingFailure(/*const base::Location& location, */ const std::string& message, PairingFailedReaso… in PairingFailure() function
|
D | pairing_handler_le_legacy.cc | 104 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 …]
|
D | security_manager_listener.h | 54 …virtual void OnDeviceBondFailed(bluetooth::hci::AddressWithType device, PairingFailure status) = 0;
|
D | initial_informations.h | 64 using PairingResultOrFailure = std::variant<PairingResult, PairingFailure>;
|
D | pairing_handler_le_unittest.cc | 167 EXPECT_CALL(*pairingResult, OnPairingFinished(VariantWith<PairingFailure>(_))).Times(1); in TEST_F()
|
D | facade.cc | 510 void OnDeviceBondFailed(hci::AddressWithType peer, PairingFailure status) override { in OnDeviceBondFailed()
|
/system/bt/gd/security/internal/ |
D | security_manager_impl.cc | 141 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()
|
D | security_manager_impl.h | 212 void NotifyDeviceBondFailed(hci::AddressWithType device, PairingFailure status);
|
/system/bt/gd/security/test/ |
D | pairing_handler_le_pair_test.cc | 108 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/ |
D | classic_pairing_handler.cc | 161 result = PairingFailure(hci::ErrorCodeText(last_status_)); in Cancel()
|
/system/bt/gd/hci/acl_manager/ |
D | classic_impl.h | 640 …void OnDeviceBondFailed(bluetooth::hci::AddressWithType device, security::PairingFailure status) o… in OnDeviceBondFailed()
|
/system/bt/main/shim/ |
D | btm_api.cc | 496 bluetooth::security::PairingFailure status) override { in OnDeviceBondFailed()
|