Home
last modified time | relevance | path

Searched refs:link_key_type (Results 1 – 14 of 14) sorted by relevance

/btstack/test/btstack_link_key_db/
H A Dbtstack_link_key_db_memory_test.cpp36 link_key_type_t link_key_type; in TEST_GROUP() local
48 link_key_type = (link_key_type_t)4; in TEST_GROUP()
88 btstack_link_key_db_memory_instance()->put_link_key(addr1, link_key, link_key_type); in TEST()
91 CHECK(btstack_link_key_db_memory_instance()->get_link_key(addr1, link_key, &link_key_type)); in TEST()
94 CHECK(!btstack_link_key_db_memory_instance()->get_link_key(addr1, link_key, &link_key_type)); in TEST()
99 btstack_link_key_db_memory_instance()->put_link_key(addr1, link_key, link_key_type); in TEST()
102 btstack_link_key_db_memory_instance()->put_link_key(addr2, link_key, link_key_type); in TEST()
105 btstack_link_key_db_memory_instance()->put_link_key(addr3, link_key, link_key_type); in TEST()
108 CHECK(!btstack_link_key_db_memory_instance()->get_link_key(addr1, link_key, &link_key_type)); in TEST()
109 CHECK(btstack_link_key_db_memory_instance()->get_link_key(addr2, link_key, &link_key_type)); in TEST()
H A Dbtstack_link_key_db_fs_test.cpp18 link_key_type_t link_key_type; in TEST_GROUP() local
24 link_key_type = (link_key_type_t)4; in TEST_GROUP()
39 btstack_link_key_db_fs_instance()->put_link_key(bd_addr, link_key, link_key_type); in TEST()
/btstack/src/classic/
H A Dbtstack_link_key_db_static.c60 int link_key_type; member
104 …link_key_db_get_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type) { in link_key_db_get_link_key() argument
110 *link_key_type = (link_key_type_t) link_key_db[i].link_key_type; in link_key_db_get_link_key()
122 …id link_key_db_put_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t link_key_type){ in link_key_db_put_link_key() argument
125 UNUSED(link_key_type); in link_key_db_put_link_key()
127 …\"%s\", \"%s\", %u },\n", bd_addr_to_str(bd_addr), link_key_to_str(link_key), (int) link_key_type); in link_key_db_put_link_key()
139 …link_key_iterator_t * it, bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type){ in link_key_db_tlv_iterator_get_next() argument
146 *link_key_type = (link_key_type_t) link_key_db[i].link_key_type; in link_key_db_tlv_iterator_get_next()
H A Dbtstack_link_key_db_memory.c76 static int get_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type) { in get_link_key() argument
82 if (link_key_type) { in get_link_key()
83 *link_key_type = item->link_key_type; in get_link_key()
101 static void put_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t link_key_type){ in put_link_key() argument
126 record->link_key_type = link_key_type; in put_link_key()
135 …link_key_iterator_t * it, bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type){ in iterator_get_next() argument
142 *link_key_type = item->link_key_type; in iterator_get_next()
H A Dbtstack_link_key_db_tlv.c63 link_key_type_t link_key_type; member
88 …_key_db_tlv_get_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type) { in btstack_link_key_db_tlv_get_link_key() argument
99 *link_key_type = entry.link_key_type; in btstack_link_key_db_tlv_get_link_key()
119 …ink_key_db_tlv_put_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t link_key_type){ in btstack_link_key_db_tlv_put_link_key() argument
172 entry.link_key_type = link_key_type; in btstack_link_key_db_tlv_put_link_key()
186 …link_key_iterator_t * it, bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type){ in btstack_link_key_db_tlv_iterator_get_next() argument
196 *link_key_type = entry.link_key_type; in btstack_link_key_db_tlv_iterator_get_next()
H A Dbtstack_link_key_db_memory.h64 link_key_type_t link_key_type; member
/btstack/platform/wiced/
H A Dbtstack_link_key_db_wiced_dct.c63 link_key_type_t link_key_type; member
158 …link_key_db_get_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type) { in link_key_db_get_link_key() argument
167 if (link_key_type) { in link_key_db_get_link_key()
168 *link_key_type = item.link_key_type; in link_key_db_get_link_key()
184 …id link_key_db_put_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t link_key_type){ in link_key_db_put_link_key() argument
200 item.link_key_type = link_key_type; in link_key_db_put_link_key()
212 …link_key_iterator_t * it, bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type){ in link_key_db_tlv_iterator_get_next() argument
222 *link_key_type = item.link_key_type; in link_key_db_tlv_iterator_get_next()
/btstack/platform/posix/
H A Dbtstack_link_key_db_fs.c136 static void put_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t link_key_type){ in put_link_key() argument
139 char * link_key_type_str = link_key_type_to_str(link_key_type); in put_link_key()
151 static int read_link_key(const char * path, link_key_t link_key, link_key_type_t * link_key_type){ in read_link_key() argument
177 *link_key_type = (link_key_type_t) link_key_type_buffer; in read_link_key()
181 static int get_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type) { in get_link_key() argument
183 return read_link_key(keypath, link_key, link_key_type); in get_link_key()
/btstack/test/flash_tlv/
H A Dtlv_test.cpp321 link_key_type_t link_key_type; in TEST_GROUP() local
343 link_key_type = COMBINATION_KEY; in TEST_GROUP()
355 btstack_link_key_db->put_link_key(addr1, link_key1, link_key_type); in TEST()
367 btstack_link_key_db->put_link_key(addr1, link_key1, link_key_type); in TEST()
368 btstack_link_key_db->put_link_key(addr1, link_key2, link_key_type); in TEST()
381 btstack_link_key_db->put_link_key(addr1, link_key1, link_key_type); in TEST()
382 btstack_link_key_db->put_link_key(addr2, link_key1, link_key_type); in TEST()
383 btstack_link_key_db->put_link_key(addr3, link_key1, link_key_type); in TEST()
/btstack/platform/corefoundation/
H A Dbtstack_link_key_db_corefoundation.m141 static int get_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t * link_key_type) {
146 if (link_key_type){
147 *link_key_type = COMBINATION_KEY;
154 static void put_link_key(bd_addr_t bd_addr, link_key_t link_key, link_key_type_t link_key_type){
/btstack/src/
H A Dgap.h537 gap_security_level_t gap_security_level_for_link_key_type(link_key_type_t link_key_type);
542 bool gap_secure_connection_for_link_key_type(link_key_type_t link_key_type);
547 bool gap_authenticated_for_link_key_type(link_key_type_t link_key_type);
H A Dhci.c290 conn->link_key_type = INVALID_LINK_KEY; in hci_connection_init()
3996 if ((conn->link_key_type == INVALID_LINK_KEY) && (hci_stack->link_key_db != NULL)){ in event_handler()
3997 … hci_stack->link_key_db->get_link_key(conn->address, conn->link_key, &conn->link_key_type); in event_handler()
4016 link_key_type_t link_key_type = (link_key_type_t)packet[24]; in event_handler() local
4018 if (link_key_type != CHANGED_COMBINATION_KEY){ in event_handler()
4019 conn->link_key_type = link_key_type; in event_handler()
4030 if (conn->link_key_type != COMBINATION_KEY) { in event_handler()
4036 … if (gap_security_level_for_link_key_type(link_key_type) < conn->requested_security_level) break; in event_handler()
4037 gap_store_link_key_for_bd_addr(addr, &packet[8], conn->link_key_type); in event_handler()
4151 … bool sc_used_during_pairing = gap_secure_connection_for_link_key_type(conn->link_key_type); in event_handler()
[all …]
H A Dhci.h573 link_key_type_t link_key_type; member
/btstack/src/ble/
H A Dsm.c1697 link_key_type_t link_key_type; in sm_sc_cmac_done() local
1776 link_key_type = sm_conn->sm_connection_authenticated ? in sm_sc_cmac_done()
1778 log_info("Derived classic link key from LE using h6, type %u", (int) link_key_type); in sm_sc_cmac_done()
1779 gap_store_link_key_for_bd_addr(setup->sm_peer_address, setup->sm_t, link_key_type); in sm_sc_cmac_done()
2128 setup->sm_link_key_type = hci_connection->link_key_type; in sm_ctkd_fetch_br_edr_link_key()
2598 link_key_type_t link_key_type; in sm_ctkd_from_le() local
2599 …k_key = gap_get_link_key_for_bd_addr(setup->sm_peer_address, link_key, &link_key_type); in sm_ctkd_from_le()
2600 bool link_key_authenticated = gap_authenticated_for_link_key_type(link_key_type); in sm_ctkd_from_le()
2619 … if (gap_secure_connection_for_link_key_type(hci_connection->link_key_type) == false) return false; in sm_ctkd_from_classic()
2621 … bool link_key_authenticated = gap_authenticated_for_link_key_type(hci_connection->link_key_type); in sm_ctkd_from_classic()
[all …]