Home
last modified time | relevance | path

Searched refs:LinkKeyType (Results 1 – 24 of 24) sorted by relevance

/external/pigweed/pw_bluetooth_sapphire/host/sm/
Dtypes.cc35 bool IsEncryptedKey(hci_spec::LinkKeyType lk_type) { in IsEncryptedKey()
36 return (lk_type == hci_spec::LinkKeyType::kDebugCombination || in IsEncryptedKey()
37 lk_type == hci_spec::LinkKeyType::kUnauthenticatedCombination192 || in IsEncryptedKey()
38 lk_type == hci_spec::LinkKeyType::kUnauthenticatedCombination256 || in IsEncryptedKey()
39 lk_type == hci_spec::LinkKeyType::kAuthenticatedCombination192 || in IsEncryptedKey()
40 lk_type == hci_spec::LinkKeyType::kAuthenticatedCombination256); in IsEncryptedKey()
43 bool IsAuthenticatedKey(hci_spec::LinkKeyType lk_type) { in IsAuthenticatedKey()
44 return (lk_type == hci_spec::LinkKeyType::kAuthenticatedCombination192 || in IsAuthenticatedKey()
45 lk_type == hci_spec::LinkKeyType::kAuthenticatedCombination256); in IsAuthenticatedKey()
48 bool IsSecureConnectionsKey(hci_spec::LinkKeyType lk_type) { in IsSecureConnectionsKey()
[all …]
Dtypes_test.cc31 SecurityProperties props(hci_spec::LinkKeyType::kCombination); in TEST()
37 props = SecurityProperties(hci_spec::LinkKeyType::kLocalUnit); in TEST()
43 props = SecurityProperties(hci_spec::LinkKeyType::kRemoteUnit); in TEST()
49 props = SecurityProperties(hci_spec::LinkKeyType::kDebugCombination); in TEST()
56 SecurityProperties(hci_spec::LinkKeyType::kUnauthenticatedCombination192); in TEST()
63 SecurityProperties(hci_spec::LinkKeyType::kAuthenticatedCombination192); in TEST()
70 SecurityProperties(hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST()
77 SecurityProperties(hci_spec::LinkKeyType::kAuthenticatedCombination256); in TEST()
85 SecurityProperties props(hci_spec::LinkKeyType::kCombination); in TEST()
86 EXPECT_EQ(hci_spec::LinkKeyType::kCombination, props.GetLinkKeyType()); in TEST()
[all …]
Dsecurity_manager_test.cc4094 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST_F()
4124 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST_F()
4134 hci_spec::LinkKeyType::kAuthenticatedCombination256); in TEST_F()
4182 hci_spec::LinkKeyType::kAuthenticatedCombination256); in TEST_F()
4196 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST_F()
4234 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST_F()
4244 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST_F()
4302 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST_F()
4317 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST_F()
4334 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST_F()
[all …]
Dsecurity_manager.cc1396 hci_spec::LinkKeyType::kUnauthenticatedCombination256 || in IsBrEdrCrossTransportKeyDerivationAllowed()
1398 hci_spec::LinkKeyType::kAuthenticatedCombination256)) { in IsBrEdrCrossTransportKeyDerivationAllowed()
/external/pigweed/pw_bluetooth_sapphire/host/hci-spec/
Dutil_test.cc24 LinkKeyTypeToString(hci_spec::LinkKeyType::kCombination); in TEST()
27 link_key_type = LinkKeyTypeToString(hci_spec::LinkKeyType::kLocalUnit); in TEST()
30 link_key_type = LinkKeyTypeToString(hci_spec::LinkKeyType::kRemoteUnit); in TEST()
33 link_key_type = LinkKeyTypeToString(hci_spec::LinkKeyType::kDebugCombination); in TEST()
37 hci_spec::LinkKeyType::kUnauthenticatedCombination192); in TEST()
41 LinkKeyTypeToString(hci_spec::LinkKeyType::kAuthenticatedCombination192); in TEST()
45 LinkKeyTypeToString(hci_spec::LinkKeyType::kChangedCombination); in TEST()
49 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST()
53 LinkKeyTypeToString(hci_spec::LinkKeyType::kAuthenticatedCombination256); in TEST()
57 link_key_type = LinkKeyTypeToString(static_cast<hci_spec::LinkKeyType>(0xFF)); in TEST()
Dutil.cc150 const char* LinkKeyTypeToString(hci_spec::LinkKeyType key_type) { in LinkKeyTypeToString()
152 case hci_spec::LinkKeyType::kCombination: in LinkKeyTypeToString()
154 case hci_spec::LinkKeyType::kLocalUnit: in LinkKeyTypeToString()
156 case hci_spec::LinkKeyType::kRemoteUnit: in LinkKeyTypeToString()
158 case hci_spec::LinkKeyType::kDebugCombination: in LinkKeyTypeToString()
160 case hci_spec::LinkKeyType::kUnauthenticatedCombination192: in LinkKeyTypeToString()
162 case hci_spec::LinkKeyType::kAuthenticatedCombination192: in LinkKeyTypeToString()
164 case hci_spec::LinkKeyType::kChangedCombination: in LinkKeyTypeToString()
166 case hci_spec::LinkKeyType::kUnauthenticatedCombination256: in LinkKeyTypeToString()
168 case hci_spec::LinkKeyType::kAuthenticatedCombination256: in LinkKeyTypeToString()
/external/pigweed/pw_bluetooth_sapphire/host/gap/
Dtypes_test.cc22 std::array<hci_spec::LinkKeyType, 5> kUnauthenticatedNoScKeyTypes = { in TEST()
23 hci_spec::LinkKeyType::kCombination, in TEST()
24 hci_spec::LinkKeyType::kLocalUnit, in TEST()
25 hci_spec::LinkKeyType::kRemoteUnit, in TEST()
26 hci_spec::LinkKeyType::kDebugCombination, in TEST()
27 hci_spec::LinkKeyType::kUnauthenticatedCombination192}; in TEST()
50 hci_spec::LinkKeyType::kAuthenticatedCombination192); in TEST()
69 hci_spec::LinkKeyType::kUnauthenticatedCombination256); in TEST()
88 hci_spec::LinkKeyType::kAuthenticatedCombination256); in TEST()
Dlegacy_pairing_state.cc107 link_->set_link_key(link_key_.value(), hci_spec::LinkKeyType::kCombination); in BuildEstablishedLink()
246 const hci_spec::LinkKeyType link_key_type = in OnLinkKeyRequest()
382 hci_spec::LinkKeyType key_type) { in OnLinkKeyNotification()
392 if (key_type != hci_spec::LinkKeyType::kCombination) { in OnLinkKeyNotification()
700 sm::SecurityProperties(hci_spec::LinkKeyType::kCombination); in CompletePairingRequests()
Dsecure_simple_pairing_state.cc497 hci_spec::LinkKeyType key_type, in OnLinkKeyNotification()
502 PW_CHECK(key_type != hci_spec::LinkKeyType::kDebugCombination, in OnLinkKeyNotification()
509 if (!is_pairing() && key_type == hci_spec::LinkKeyType::kChangedCombination) { in OnLinkKeyNotification()
Dpairing_state_manager.cc178 hci_spec::LinkKeyType key_type, in OnLinkKeyNotification()
Dbredr_connection_manager_test.cc118 sm::SecurityProperties(hci_spec::LinkKeyType::kAuthenticatedCombination192),
430 DynamicByteBuffer MakeLinkKeyNotification(hci_spec::LinkKeyType key_type) { in MakeLinkKeyNotification()
436 TEST_DEV_ADDR, kLegacyKey.value(), hci_spec::LinkKeyType::kCombination);
439 hci_spec::LinkKeyType::kAuthenticatedCombination192);
450 hci_spec::LinkKeyType::kChangedCombination);
832 hci_spec::LinkKeyType key_type = in QueueSuccessfulPairing()
833 hci_spec::LinkKeyType::kAuthenticatedCombination192) { in QueueSuccessfulPairing()
871 hci_spec::LinkKeyType key_type = in QueueSuccessfulUnauthenticatedPairing()
872 hci_spec::LinkKeyType::kUnauthenticatedCombination192) { in QueueSuccessfulUnauthenticatedPairing()
5341 hci_spec::LinkKeyType::kAuthenticatedCombination256); in TEST_F()
[all …]
Dlegacy_pairing_state_test.cc63 const hci_spec::LinkKeyType kTestLegacyLinkKeyType =
64 hci_spec::LinkKeyType::kCombination;
66 hci_spec::LinkKeyType::kUnauthenticatedCombination192;
Dbredr_connection_manager.cc1520 sm::SecurityProperties(static_cast<hci_spec::LinkKeyType>(key_type)); in OnLinkKeyNotification()
1546 key_value, static_cast<hci_spec::LinkKeyType>(key_type)); in OnLinkKeyNotification()
1550 hci_key, static_cast<hci_spec::LinkKeyType>(key_type)); in OnLinkKeyNotification()
1553 static_cast<hci_spec::LinkKeyType>(key_type), in OnLinkKeyNotification()
Dsecure_simple_pairing_state_test.cc83 hci_spec::LinkKeyType::kUnauthenticatedCombination192;
85 hci_spec::LinkKeyType::kAuthenticatedCombination192;
87 hci_spec::LinkKeyType::kUnauthenticatedCombination256;
88 const auto kTestLegacyLinkKeyType = hci_spec::LinkKeyType::kCombination;
89 const auto kTestChangedLinkKeyType = hci_spec::LinkKeyType::kChangedCombination;
/external/pigweed/pw_bluetooth_sapphire/host/hci/public/pw_bluetooth_sapphire/internal/host/hci/
Dbredr_connection.h38 hci_spec::LinkKeyType type) { in set_link_key()
43 const std::optional<hci_spec::LinkKeyType>& ltk_type() { return ltk_type_; } in ltk_type()
54 std::optional<hci_spec::LinkKeyType> ltk_type_;
/external/pigweed/pw_bluetooth_sapphire/host/hci-spec/public/pw_bluetooth_sapphire/internal/host/hci-spec/
Dutil.h35 const char* LinkKeyTypeToString(hci_spec::LinkKeyType key_type);
Dconstants.h821 enum class LinkKeyType : uint8_t { enum
/external/pigweed/pw_bluetooth_sapphire/host/sm/public/pw_bluetooth_sapphire/internal/host/sm/
Dtypes.h159 explicit SecurityProperties(hci_spec::LinkKeyType lk_type);
184 hci_spec::LinkKeyType GetLinkKeyType() const;
/external/pigweed/pw_bluetooth_sapphire/host/gap/public/pw_bluetooth_sapphire/internal/host/gap/
Dpairing_state_manager.h165 hci_spec::LinkKeyType key_type,
Dlegacy_pairing_state.h134 hci_spec::LinkKeyType key_type);
Dsecure_simple_pairing_state.h278 hci_spec::LinkKeyType key_type,
/external/pigweed/pw_bluetooth_sapphire/host/testing/public/pw_bluetooth_sapphire/internal/host/testing/
Dtest_packets.h189 hci_spec::LinkKeyType key_type);
/external/pigweed/pw_bluetooth_sapphire/host/hci/
Dconnection_test.cc42 constexpr hci_spec::LinkKeyType kLinkKeyType =
43 hci_spec::LinkKeyType::kAuthenticatedCombination256;
/external/pigweed/pw_bluetooth_sapphire/host/testing/
Dtest_packets.cc720 hci_spec::LinkKeyType key_type) { in LinkKeyNotificationPacket()