commit | b8af69b7025638d7768c873135257af9586f9ddd | [log] [tgz] |
---|---|---|
author | Lucas Jenkins <lucasjenkins@google.com> | Thu Mar 26 00:44:44 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Thu Mar 26 00:44:44 2020 +0000 |
tree | abd06d3c76ced19a51d1164091a422fdce0f719b | |
parent | 9f67614eb5bdd364e3fb5203523571d4381f9034 [diff] |
[bt][sm] Add Phase 1 class of pairing Phase 1 is the first class to exist in an active pairing state machine. As an initiator, it is responsible for building and sending the Pairing Request. As a responder, it is responsible for parsing the peer's Pairing Request and sending a Pairing Response. As initiator or responder, it resolves the Pairing Request/Response into a higher-level set of pairing features. Bug: 46278 Test: Run with `fx run-test bluetooth-tests -t bt-host-unittests -- \ --gtest_filter="SMP_Phase1*" ` New Phase 1 tests have added: FeatureExchangeBothSupportSCFeaturesHaveSC, FeatureExchangeLocalSCRemoteNoSCFeaturesNoSc, FeatureExchangeResponderBothSupportSCFeaturesHaveSC, FeatureExchangeResponderLocalSCRemoteNoSCFeaturesNoSC, Phase1ResponderRejectsPairingRequest The rest have been translated from sm/bearer_unittest.cc: FeatureExchangeStartDefaultParams, FeatureExchangeStartCustomParams, FeatureExchangeInitiatorWithIdentityInfo, FeatureExchangePairingFailed, FeatureExchangeLocalRejectsUnsupportedInitiatorKeys, FeatureExchangeLocalRejectsUnsupportedResponderKeys, FeatureExchangeFailureAuthenticationRequirements, FeatureExchangePairingResponse[Legacy]JustWorks, FeatureExchangePairingResponse[Legacy]MITM, FeatureExchangeEncryptionKeySize, FeatureExchangeResponderErrorMaster (with a different ErrorCode), FeatureExchangeResponderMalformedRequest->FeatureExchange\ MalformedRequest, FeatureExchangeLocalResponderRespectsInitiator, FeatureExchangeResponderDistributesIdKey, FeatureExchangeResponderRespectsInitiatorForIdKey, FeatureExchangeResponderFailedAuthenticationRequirements, FeatureExchangeResponderJustWorks, FeatureExchangeResponderSendsOnlyRequestedKeys, FeatureExchangeResponderMITM, UnsupportedCommandDuringPairing, OnSecurityRequestWhilePairing, FeatureExchangeInitiatorReqBondResNoBond, FeatureExchangeInitiatorReqNoBondResBond, FeatureExchangeResponderReqBondResNoBond, FeatureExchangeResponderReqNoBondResNoBond, FeatureExchangeResponderReqNoBondWithKeys The list of tests from sm/bearer_unittest.cc not translated to phase_1_unittest.cc: PacketsWhileIdle (tested in IdlePhase), FeatureExchangeErrorSlave (tested by death tests), FeatureExchangeTimeout (now in Manager), Abort (now ActivePhase), FeatureExchangeResponderTimerRestarted (in Manager), StopTimer (in Manager), Confirm/Random value related tests (now in Phase 2), Identity/Identity Address related tests (now in Phase 3), OnSecurityRequest... (now in IdlePhase) Change-Id: I4f4414de57b1324797f5a821f10421440ef43354
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.