Lines Matching refs:local_r_key
61 __func__, p_cb->role, recv, p_cb->local_i_key, p_cb->local_r_key); in smp_update_key_mask()
70 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
78 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
83 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
89 p_cb->local_r_key); in smp_update_key_mask()
111 cb_data.io_req.resp_keys = p_cb->local_r_key ; in smp_send_app_cback()
152 p_cb->local_r_key = cb_data.io_req.resp_keys; in smp_send_app_cback()
158 p_cb->local_r_key = 0; in smp_send_app_cback()
165 p_cb->loc_enc_size, p_cb->local_i_key, p_cb->local_r_key); in smp_send_app_cback()
181 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_send_app_cback()
185 p_cb->loc_auth_req, p_cb->local_i_key, p_cb->local_r_key); in smp_send_app_cback()
193 p_cb->local_r_key = cb_data.io_req.resp_keys; in smp_send_app_cback()
196 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_send_app_cback()
200 p_cb->loc_enc_size, p_cb->local_i_key, p_cb->local_r_key); in smp_send_app_cback()
261 p_cb->local_r_key &= p_cb->peer_r_key; in smp_send_pair_rsp()
465 p_cb->local_r_key = p_cb->local_i_key = SMP_SEC_DEFAULT_KEY ; in smp_proc_sec_req()
546 p_cb->local_r_key = p_cb->peer_r_key; in smp_proc_pair_cmd()
554 p_cb->local_r_key &= p_cb->peer_r_key; in smp_proc_pair_cmd()
822 p_cb->local_r_key = p_cb->peer_r_key; in smp_br_process_pairing_command()
872 p_cb->local_r_key); in smp_br_check_authorization_request()
876 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_br_check_authorization_request()
882 p_cb->local_r_key &= (SMP_SEC_KEY_TYPE_ID | SMP_SEC_KEY_TYPE_CSRK); in smp_br_check_authorization_request()
887 p_cb->local_r_key); in smp_br_check_authorization_request()
891 (p_cb->local_i_key || p_cb->local_r_key)) in smp_br_check_authorization_request()
896 if (p_cb->role == HCI_ROLE_MASTER && p_cb->local_r_key == 0) in smp_br_check_authorization_request()
914 __func__, p_cb->role, p_cb->local_r_key, p_cb->local_i_key); in smp_br_select_next_key()
917 (!p_cb->local_r_key && p_cb->role == HCI_ROLE_MASTER)) in smp_br_select_next_key()
922 if (!p_cb->local_i_key && !p_cb->local_r_key) in smp_br_select_next_key()
1061 p_cb->local_r_key = p_cb->peer_r_key; in smp_proc_compare()
1150 __func__, enc_enable, p_cb->local_i_key, p_cb->local_r_key); in smp_check_auth_req()
1157 p_cb->local_r_key |= SMP_SEC_KEY_TYPE_ENC; in smp_check_auth_req()
1161 !(p_cb->local_r_key & SMP_SEC_KEY_TYPE_LK)) in smp_check_auth_req()
1164 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_check_auth_req()
1172 p_cb->local_r_key &= (SMP_SEC_KEY_TYPE_ID | SMP_SEC_KEY_TYPE_CSRK); in smp_check_auth_req()
1179 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_check_auth_req()
1183 __func__, p_cb->local_i_key, p_cb->local_r_key); in smp_check_auth_req()
1187 (p_cb->local_i_key || p_cb->local_r_key)) in smp_check_auth_req()
1214 UINT8 key_to_dist = (p_cb->role == HCI_ROLE_SLAVE) ? p_cb->local_r_key : p_cb->local_i_key; in smp_key_pick_key()
1239 __func__, p_cb->role, p_cb->local_r_key, p_cb->local_i_key); in smp_key_distribution()
1242 (!p_cb->local_r_key && p_cb->role == HCI_ROLE_MASTER)) in smp_key_distribution()
1247 if (!p_cb->local_i_key && !p_cb->local_r_key) in smp_key_distribution()
1416 p_cb->local_r_key &= p_cb->peer_r_key; in smp_br_send_pair_response()
1733 p_cb->local_r_key = p_cb->peer_r_key; in smp_match_dhkey_checks()