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];
314 static const struct bt_conn_auth_cb *latch_auth_cb(struct bt_smp *smp) in latch_auth_cb()
322 static bool latch_bondable(struct bt_smp *smp) in latch_bondable()
329 static uint8_t get_io_capa(struct bt_smp *smp) in get_io_capa()
372 static uint8_t legacy_get_pair_method(struct bt_smp *smp, uint8_t remote_io);
411 static uint8_t get_pair_method(struct bt_smp *smp, uint8_t remote_io) in get_pair_method()
564 static struct net_buf *smp_create_pdu(struct bt_smp *smp, uint8_t op, size_t len) in smp_create_pdu()
595 static uint8_t get_encryption_key_size(struct bt_smp *smp) in get_encryption_key_size()
613 static bool update_keys_check(struct bt_smp *smp, struct bt_keys *keys) in update_keys_check()
658 static bool update_debug_keys_check(struct bt_smp *smp) in update_debug_keys_check()
682 static void smp_pairing_complete(struct bt_smp *smp, uint8_t status);
692 struct bt_smp *smp; in smp_check_complete()
697 smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in smp_check_complete()
746 static void sc_derive_link_key(struct bt_smp *smp) in sc_derive_link_key()
1680 static void smp_reset(struct bt_smp *smp) in smp_reset()
1732 static void smp_pairing_complete(struct bt_smp *smp, uint8_t status) in smp_pairing_complete()
1821 struct bt_smp *smp = CONTAINER_OF(dwork, struct bt_smp, work); in smp_timeout()
1833 static void smp_send(struct bt_smp *smp, struct net_buf *buf, in smp_send()
1852 static int smp_error(struct bt_smp *smp, uint8_t reason) in smp_error()
1900 static uint8_t smp_send_pairing_random(struct bt_smp *smp) in smp_send_pairing_random()
1965 static uint8_t smp_send_pairing_confirm(struct bt_smp *smp) in smp_send_pairing_confirm()
2020 static void legacy_distribute_keys(struct bt_smp *smp) in legacy_distribute_keys()
2086 static uint8_t bt_smp_distribute_keys(struct bt_smp *smp) in bt_smp_distribute_keys()
2167 static uint8_t send_pairing_rsp(struct bt_smp *smp) in send_pairing_rsp()
2186 static uint8_t smp_pairing_accept_query(struct bt_smp *smp, struct bt_smp_pairing *pairing) in smp_pairing_accept_query()
2227 static uint8_t legacy_get_pair_method(struct bt_smp *smp, uint8_t remote_io) in legacy_get_pair_method()
2265 static uint8_t legacy_request_tk(struct bt_smp *smp) in legacy_request_tk()
2336 static uint8_t legacy_send_pairing_confirm(struct bt_smp *smp) in legacy_send_pairing_confirm()
2363 static uint8_t legacy_pairing_req(struct bt_smp *smp) in legacy_pairing_req()
2390 static uint8_t legacy_pairing_random(struct bt_smp *smp) in legacy_pairing_random()
2467 static uint8_t legacy_pairing_confirm(struct bt_smp *smp) in legacy_pairing_confirm()
2490 static void legacy_user_tk_entry(struct bt_smp *smp) in legacy_user_tk_entry()
2513 static void legacy_passkey_entry(struct bt_smp *smp, unsigned int passkey) in legacy_passkey_entry()
2521 static uint8_t smp_encrypt_info(struct bt_smp *smp, struct net_buf *buf) in smp_encrypt_info()
2544 static uint8_t smp_central_ident(struct bt_smp *smp, struct net_buf *buf) in smp_central_ident()
2590 static uint8_t legacy_pairing_rsp(struct bt_smp *smp) in legacy_pairing_rsp()
2623 static uint8_t smp_encrypt_info(struct bt_smp *smp, struct net_buf *buf) in smp_encrypt_info()
2628 static uint8_t smp_central_ident(struct bt_smp *smp, struct net_buf *buf) in smp_central_ident()
2634 static int smp_init(struct bt_smp *smp) in smp_init()
2639 (void)memset(smp, 0, offsetof(struct bt_smp, chan)); in smp_init()
2677 static uint8_t get_auth(struct bt_smp *smp, uint8_t auth) in get_auth()
2714 static uint8_t remote_sec_level_reachable(struct bt_smp *smp) in remote_sec_level_reachable()
2750 static bool sec_level_reachable(struct bt_smp *smp) in sec_level_reachable()
2769 static struct bt_smp *smp_chan_get(struct bt_conn *conn) in smp_chan_get()
2779 return CONTAINER_OF(chan, struct bt_smp, chan.chan); in smp_chan_get()
2784 struct bt_smp *smp; in bt_smp_request_ltk()
2870 struct bt_smp *smp; in smp_send_security_req()
2933 static uint8_t smp_pairing_req(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_req()
3075 static uint8_t smp_pairing_req(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_req()
3081 static uint8_t sc_send_public_key(struct bt_smp *smp) in sc_send_public_key()
3108 struct bt_smp *smp; in smp_send_pairing_req()
3205 static uint8_t smp_pairing_rsp(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_rsp()
3319 static uint8_t smp_pairing_rsp(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_rsp()
3325 static uint8_t smp_pairing_confirm(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_confirm()
3371 static uint8_t sc_smp_send_dhkey_check(struct bt_smp *smp, const uint8_t *e) in sc_smp_send_dhkey_check()
3392 static uint8_t compute_and_send_central_dhcheck(struct bt_smp *smp) in compute_and_send_central_dhcheck()
3436 static uint8_t compute_and_check_and_send_periph_dhcheck(struct bt_smp *smp) in compute_and_check_and_send_periph_dhcheck()
3509 static uint8_t smp_dhkey_generate(struct bt_smp *smp) in smp_dhkey_generate()
3525 static uint8_t smp_dhkey_ready(struct bt_smp *smp, const uint8_t *dhkey) in smp_dhkey_ready()
3562 static struct bt_smp *smp_find(int flag) in smp_find()
3578 struct bt_smp *smp = smp_find(SMP_FLAG_DHKEY_GEN); in bt_smp_dhkey_ready()
3599 static uint8_t sc_smp_check_confirm(struct bt_smp *smp) in sc_smp_check_confirm()
3643 static bool le_sc_oob_data_req_check(struct bt_smp *smp) in le_sc_oob_data_req_check()
3650 static bool le_sc_oob_data_rsp_check(struct bt_smp *smp) in le_sc_oob_data_rsp_check()
3657 __maybe_unused static void le_sc_oob_config_set(struct bt_smp *smp, in le_sc_oob_config_set()
3688 static uint8_t smp_pairing_random(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_random()
3833 static uint8_t smp_pairing_failed(struct bt_smp *smp, struct net_buf *buf) in smp_pairing_failed()
3854 static uint8_t smp_ident_info(struct bt_smp *smp, struct net_buf *buf) in smp_ident_info()
3877 static uint8_t smp_id_add_replace(struct bt_smp *smp, struct bt_keys *new_bond) in smp_id_add_replace()
3931 static uint8_t smp_ident_addr_info(struct bt_smp *smp, struct net_buf *buf) in smp_ident_addr_info()
4033 static uint8_t smp_signing_info(struct bt_smp *smp, struct net_buf *buf) in smp_signing_info()
4073 static uint8_t smp_signing_info(struct bt_smp *smp, struct net_buf *buf) in smp_signing_info()
4080 static uint8_t smp_security_request(struct bt_smp *smp, struct net_buf *buf) in smp_security_request()
4181 static uint8_t smp_security_request(struct bt_smp *smp, struct net_buf *buf) in smp_security_request()
4187 __maybe_unused static uint8_t generate_dhkey(struct bt_smp *smp) in generate_dhkey()
4201 __maybe_unused static uint8_t display_passkey(struct bt_smp *smp) in display_passkey()
4230 static uint8_t smp_public_key_periph(struct bt_smp *smp) in smp_public_key_periph()
4287 static uint8_t smp_public_key(struct bt_smp *smp, struct net_buf *buf) in smp_public_key()
4292 static uint8_t smp_public_key(struct bt_smp *smp, struct net_buf *buf) in smp_public_key()
4409 static uint8_t smp_dhkey_check(struct bt_smp *smp, struct net_buf *buf) in smp_dhkey_check()
4502 static uint8_t smp_keypress_notif(struct bt_smp *smp, struct net_buf *buf) in smp_keypress_notif()
4534 static uint8_t smp_keypress_notif(struct bt_smp *smp, struct net_buf *buf) in smp_keypress_notif()
4548 uint8_t (*func)(struct bt_smp *smp, struct net_buf *buf);
4568 static bool is_in_pairing_procedure(struct bt_smp *smp) in is_in_pairing_procedure()
4575 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_recv()
4652 struct bt_smp *smp = &bt_smp_pool[i]; in bt_smp_pkey_ready()
4682 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_connected()
4696 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_disconnected()
4731 struct bt_smp *smp = CONTAINER_OF(chan, struct bt_smp, chan.chan); in bt_smp_encrypt_change()
5448 struct bt_smp *smp; in bt_conn_set_bondable()
5475 struct bt_smp *smp; in bt_smp_auth_cb_overlay()
5490 static int smp_send_keypress_notif(struct bt_smp *smp, uint8_t type) in smp_send_keypress_notif()
5512 struct bt_smp *smp; in bt_smp_auth_keypress_notify()
5538 struct bt_smp *smp; in bt_smp_auth_passkey_entry()
5585 struct bt_smp *smp; in bt_smp_auth_passkey_confirm()
5635 struct bt_smp *smp; in bt_smp_le_oob_set_tk()
5702 static bool le_sc_oob_data_check(struct bt_smp *smp, bool oobd_local_present, in le_sc_oob_data_check()
5724 static int le_sc_oob_pairing_continue(struct bt_smp *smp) in le_sc_oob_pairing_continue()
5758 struct bt_smp *smp; in bt_smp_le_oob_set_sc_data()
5784 struct bt_smp *smp; in bt_smp_le_oob_get_sc_data()
5809 struct bt_smp *smp; in bt_smp_auth_cancel()
5842 struct bt_smp *smp; in bt_smp_auth_pairing_confirm()
5917 struct bt_smp *smp; in bt_smp_start_security()
5964 struct bt_smp *smp; in bt_smp_update_keys()
6060 struct bt_smp *smp = &bt_smp_pool[i]; in bt_smp_accept()