Lines Matching refs:local_r_key

109         __func__, p_cb->role, recv, p_cb->local_i_key, p_cb->local_r_key);  in smp_update_key_mask()
118 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
126 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
131 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
137 p_cb->local_r_key); in smp_update_key_mask()
159 cb_data.io_req.resp_keys = p_cb->local_r_key ; in smp_send_app_cback()
200 p_cb->local_r_key = cb_data.io_req.resp_keys; in smp_send_app_cback()
206 p_cb->local_r_key = 0; in smp_send_app_cback()
213 p_cb->loc_enc_size, p_cb->local_i_key, p_cb->local_r_key); in smp_send_app_cback()
230 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_send_app_cback()
234 p_cb->loc_auth_req, p_cb->local_i_key, p_cb->local_r_key); in smp_send_app_cback()
242 p_cb->local_r_key = cb_data.io_req.resp_keys; in smp_send_app_cback()
245 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_send_app_cback()
249 p_cb->loc_enc_size, p_cb->local_i_key, p_cb->local_r_key); in smp_send_app_cback()
310 p_cb->local_r_key &= p_cb->peer_r_key; in smp_send_pair_rsp()
514 p_cb->local_r_key = p_cb->local_i_key = SMP_SEC_DEFAULT_KEY ; in smp_proc_sec_req()
599 p_cb->local_r_key = p_cb->peer_r_key; in smp_proc_pair_cmd()
607 p_cb->local_r_key &= p_cb->peer_r_key; in smp_proc_pair_cmd()
875 p_cb->local_r_key = p_cb->peer_r_key; in smp_br_process_pairing_command()
925 p_cb->local_r_key); in smp_br_check_authorization_request()
929 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_br_check_authorization_request()
935 p_cb->local_r_key &= (SMP_SEC_KEY_TYPE_ID | SMP_SEC_KEY_TYPE_CSRK); in smp_br_check_authorization_request()
940 p_cb->local_r_key); in smp_br_check_authorization_request()
944 (p_cb->local_i_key || p_cb->local_r_key)) in smp_br_check_authorization_request()
949 if (p_cb->role == HCI_ROLE_MASTER && p_cb->local_r_key == 0) in smp_br_check_authorization_request()
967 __func__, p_cb->role, p_cb->local_r_key, p_cb->local_i_key); in smp_br_select_next_key()
970 (!p_cb->local_r_key && p_cb->role == HCI_ROLE_MASTER)) in smp_br_select_next_key()
975 if (!p_cb->local_i_key && !p_cb->local_r_key) in smp_br_select_next_key()
1114 p_cb->local_r_key = p_cb->peer_r_key; in smp_proc_compare()
1203 __func__, enc_enable, p_cb->local_i_key, p_cb->local_r_key); in smp_check_auth_req()
1210 p_cb->local_r_key |= SMP_SEC_KEY_TYPE_ENC; in smp_check_auth_req()
1214 !(p_cb->local_r_key & SMP_SEC_KEY_TYPE_LK)) in smp_check_auth_req()
1217 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_check_auth_req()
1225 p_cb->local_r_key &= (SMP_SEC_KEY_TYPE_ID | SMP_SEC_KEY_TYPE_CSRK); in smp_check_auth_req()
1232 p_cb->local_r_key &= ~SMP_SEC_KEY_TYPE_LK; in smp_check_auth_req()
1236 __func__, p_cb->local_i_key, p_cb->local_r_key); in smp_check_auth_req()
1240 (p_cb->local_i_key || p_cb->local_r_key)) in smp_check_auth_req()
1267 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()
1292 __func__, p_cb->role, p_cb->local_r_key, p_cb->local_i_key); in smp_key_distribution()
1295 (!p_cb->local_r_key && p_cb->role == HCI_ROLE_MASTER)) in smp_key_distribution()
1300 if (!p_cb->local_i_key && !p_cb->local_r_key) in smp_key_distribution()
1474 p_cb->local_r_key &= p_cb->peer_r_key; in smp_br_send_pair_response()
1799 p_cb->local_r_key = p_cb->peer_r_key; in smp_match_dhkey_checks()