Lines Matching refs:bt_smp

44 LOG_MODULE_REGISTER(bt_smp);
143 struct bt_smp { struct
281 static struct bt_smp bt_smp_pool[CONFIG_BT_MAX_CONN];
320 static const struct bt_conn_auth_cb *latch_auth_cb(struct bt_smp *smp) in latch_auth_cb()
328 static bool latch_bondable(struct bt_smp *smp) in latch_bondable()
335 static uint8_t get_io_capa(struct bt_smp *smp) in get_io_capa()
378 static uint8_t legacy_get_pair_method(struct bt_smp *smp, uint8_t remote_io);
417 static uint8_t get_pair_method(struct bt_smp *smp, uint8_t remote_io) in get_pair_method()
570 static struct net_buf *smp_create_pdu(struct bt_smp *smp, uint8_t op, size_t len) in smp_create_pdu()
601 static uint8_t get_encryption_key_size(struct bt_smp *smp) in get_encryption_key_size()
619 static bool update_keys_check(struct bt_smp *smp, struct bt_keys *keys) in update_keys_check()
664 static bool update_debug_keys_check(struct bt_smp *smp) in update_debug_keys_check()
688 static void smp_pairing_complete(struct bt_smp *smp, uint8_t status);
698 struct bt_smp *smp; in smp_check_complete()
703 smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in smp_check_complete()
752 static void sc_derive_link_key(struct bt_smp *smp) in sc_derive_link_key()
1717 static void smp_reset(struct bt_smp *smp) in smp_reset()
1769 static void smp_pairing_complete(struct bt_smp *smp, uint8_t status) in smp_pairing_complete()
1858 struct bt_smp *smp = CONTAINER_OF(dwork, struct bt_smp, work); in smp_timeout()
1870 static void smp_send(struct bt_smp *smp, struct net_buf *buf, in smp_send()
1889 static int smp_error(struct bt_smp *smp, uint8_t reason) in smp_error()
1937 static uint8_t smp_send_pairing_random(struct bt_smp *smp) in smp_send_pairing_random()
2002 static uint8_t smp_send_pairing_confirm(struct bt_smp *smp) in smp_send_pairing_confirm()
2057 static void legacy_distribute_keys(struct bt_smp *smp) in legacy_distribute_keys()
2123 static uint8_t bt_smp_distribute_keys(struct bt_smp *smp) in bt_smp_distribute_keys()
2204 static uint8_t send_pairing_rsp(struct bt_smp *smp) in send_pairing_rsp()
2223 static uint8_t smp_pairing_accept_query(struct bt_smp *smp, struct bt_smp_pairing *pairing) in smp_pairing_accept_query()
2264 static uint8_t legacy_get_pair_method(struct bt_smp *smp, uint8_t remote_io) in legacy_get_pair_method()
2302 static uint8_t legacy_request_tk(struct bt_smp *smp) in legacy_request_tk()
2373 static uint8_t legacy_send_pairing_confirm(struct bt_smp *smp) in legacy_send_pairing_confirm()
2400 static uint8_t legacy_pairing_req(struct bt_smp *smp) in legacy_pairing_req()
2427 static uint8_t legacy_pairing_random(struct bt_smp *smp) in legacy_pairing_random()
2504 static uint8_t legacy_pairing_confirm(struct bt_smp *smp) in legacy_pairing_confirm()
2527 static void legacy_user_tk_entry(struct bt_smp *smp) in legacy_user_tk_entry()
2550 static void legacy_passkey_entry(struct bt_smp *smp, unsigned int passkey) in legacy_passkey_entry()
2558 static uint8_t smp_encrypt_info(struct bt_smp *smp, struct net_buf *buf) in smp_encrypt_info()
2581 static uint8_t smp_central_ident(struct bt_smp *smp, struct net_buf *buf) in smp_central_ident()
2627 static uint8_t legacy_pairing_rsp(struct bt_smp *smp) in legacy_pairing_rsp()
2660 static uint8_t smp_encrypt_info(struct bt_smp *smp, struct net_buf *buf) in smp_encrypt_info()
2665 static uint8_t smp_central_ident(struct bt_smp *smp, struct net_buf *buf) in smp_central_ident()
2671 static int smp_init(struct bt_smp *smp) in smp_init()
2676 (void)memset(smp, 0, offsetof(struct bt_smp, chan)); in smp_init()
2714 static uint8_t get_auth(struct bt_smp *smp, uint8_t auth) in get_auth()
2751 static uint8_t remote_sec_level_reachable(struct bt_smp *smp) in remote_sec_level_reachable()
2787 static bool sec_level_reachable(struct bt_smp *smp) in sec_level_reachable()
2806 static struct bt_smp *smp_chan_get(struct bt_conn *conn) in smp_chan_get()
2816 return CONTAINER_OF(chan, struct bt_smp, chan.chan); in smp_chan_get()
2821 struct bt_smp *smp; in bt_smp_request_ltk()
2907 struct bt_smp *smp; in smp_send_security_req()
2970 static uint8_t smp_pairing_req(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_req()
3112 static uint8_t smp_pairing_req(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_req()
3118 static uint8_t sc_send_public_key(struct bt_smp *smp) in sc_send_public_key()
3145 struct bt_smp *smp; in smp_send_pairing_req()
3242 static uint8_t smp_pairing_rsp(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_rsp()
3356 static uint8_t smp_pairing_rsp(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_rsp()
3362 static uint8_t smp_pairing_confirm(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_confirm()
3408 static uint8_t sc_smp_send_dhkey_check(struct bt_smp *smp, const uint8_t *e) in sc_smp_send_dhkey_check()
3429 static uint8_t compute_and_send_central_dhcheck(struct bt_smp *smp) in compute_and_send_central_dhcheck()
3473 static uint8_t compute_and_check_and_send_periph_dhcheck(struct bt_smp *smp) in compute_and_check_and_send_periph_dhcheck()
3546 static uint8_t smp_dhkey_generate(struct bt_smp *smp) in smp_dhkey_generate()
3562 static uint8_t smp_dhkey_ready(struct bt_smp *smp, const uint8_t *dhkey) in smp_dhkey_ready()
3599 static struct bt_smp *smp_find(int flag) in smp_find()
3615 struct bt_smp *smp = smp_find(SMP_FLAG_DHKEY_GEN); in bt_smp_dhkey_ready()
3636 static uint8_t sc_smp_check_confirm(struct bt_smp *smp) in sc_smp_check_confirm()
3680 static bool le_sc_oob_data_req_check(struct bt_smp *smp) in le_sc_oob_data_req_check()
3687 static bool le_sc_oob_data_rsp_check(struct bt_smp *smp) in le_sc_oob_data_rsp_check()
3694 __maybe_unused static void le_sc_oob_config_set(struct bt_smp *smp, in le_sc_oob_config_set()
3725 static uint8_t smp_pairing_random(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_random()
3870 static uint8_t smp_pairing_failed(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_failed()
3891 static uint8_t smp_ident_info(struct bt_smp *smp, struct net_buf *buf) in smp_ident_info()
3914 static uint8_t smp_id_add_replace(struct bt_smp *smp, struct bt_keys *new_bond) in smp_id_add_replace()
3968 static uint8_t smp_ident_addr_info(struct bt_smp *smp, struct net_buf *buf) in smp_ident_addr_info()
4070 static uint8_t smp_signing_info(struct bt_smp *smp, struct net_buf *buf) in smp_signing_info()
4110 static uint8_t smp_signing_info(struct bt_smp *smp, struct net_buf *buf) in smp_signing_info()
4117 static uint8_t smp_security_request(struct bt_smp *smp, struct net_buf *buf) in smp_security_request()
4218 static uint8_t smp_security_request(struct bt_smp *smp, struct net_buf *buf) in smp_security_request()
4224 __maybe_unused static uint8_t generate_dhkey(struct bt_smp *smp) in generate_dhkey()
4238 __maybe_unused static uint8_t display_passkey(struct bt_smp *smp) in display_passkey()
4267 static uint8_t smp_public_key_periph(struct bt_smp *smp) in smp_public_key_periph()
4324 static uint8_t smp_public_key(struct bt_smp *smp, struct net_buf *buf) in smp_public_key()
4329 static uint8_t smp_public_key(struct bt_smp *smp, struct net_buf *buf) in smp_public_key()
4446 static uint8_t smp_dhkey_check(struct bt_smp *smp, struct net_buf *buf) in smp_dhkey_check()
4539 static uint8_t smp_keypress_notif(struct bt_smp *smp, struct net_buf *buf) in smp_keypress_notif()
4571 static uint8_t smp_keypress_notif(struct bt_smp *smp, struct net_buf *buf) in smp_keypress_notif()
4585 uint8_t (*func)(struct bt_smp *smp, struct net_buf *buf);
4605 static bool is_in_pairing_procedure(struct bt_smp *smp) in is_in_pairing_procedure()
4612 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_recv()
4704 struct bt_smp *smp = &bt_smp_pool[i]; in bt_smp_pkey_ready()
4734 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_connected()
4748 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_disconnected()
4783 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_encrypt_change()
5500 struct bt_smp *smp; in bt_conn_set_bondable()
5532 struct bt_smp *smp; in bt_smp_auth_cb_overlay()
5547 static int smp_send_keypress_notif(struct bt_smp *smp, uint8_t type) in smp_send_keypress_notif()
5569 struct bt_smp *smp; in bt_smp_auth_keypress_notify()
5595 struct bt_smp *smp; in bt_smp_auth_passkey_entry()
5642 struct bt_smp *smp; in bt_smp_auth_passkey_confirm()
5692 struct bt_smp *smp; in bt_smp_le_oob_set_tk()
5791 static bool le_sc_oob_data_check(struct bt_smp *smp, bool oobd_local_present, in le_sc_oob_data_check()
5813 static int le_sc_oob_pairing_continue(struct bt_smp *smp) in le_sc_oob_pairing_continue()
5847 struct bt_smp *smp; in bt_smp_le_oob_set_sc_data()
5873 struct bt_smp *smp; in bt_smp_le_oob_get_sc_data()
5898 struct bt_smp *smp; in bt_smp_auth_cancel()
5931 struct bt_smp *smp; in bt_smp_auth_pairing_confirm()
6006 struct bt_smp *smp; in bt_smp_start_security()
6053 struct bt_smp *smp; in bt_smp_update_keys()
6149 struct bt_smp *smp = &bt_smp_pool[i]; in bt_smp_accept()