Lines Matching refs:enc
153 ecb_encrypt(&ctx->data.enc.ltk[0], &ctx->data.enc.skd[0], NULL, &conn->lll.ccm_rx.key[0]); in enc_setup_lll()
237 if (ctx->data.enc.error == BT_HCI_ERR_SUCCESS) { in lp_enc_ntf()
250 llcp_pdu_encode_reject_ind(pdu, ctx->data.enc.error); in lp_enc_ntf()
264 memcpy(&ctx->data.enc.skd[0], pdu->llctrl.enc_req.skdm, sizeof(pdu->llctrl.enc_req.skdm)); in lp_enc_store_m()
362 memcpy(&ctx->data.enc.skd[8], pdu->llctrl.enc_rsp.skds, sizeof(pdu->llctrl.enc_rsp.skds)); in lp_enc_store_s()
427 ctx->data.enc.error = reject_error_code(pdu); in lp_enc_st_wait_rx_enc_rsp()
457 ctx->data.enc.error = reject_error_code(pdu); in lp_enc_st_wait_rx_start_enc_req()
495 ctx->data.enc.error = BT_HCI_ERR_SUCCESS; in lp_enc_st_wait_rx_start_enc_rsp()
814 memcpy(&ctx->data.enc.skds, pdu->llctrl.enc_rsp.skds, sizeof(pdu->llctrl.enc_rsp.skds)); in rp_enc_store_s()
866 if (ctx->data.enc.error == BT_HCI_ERR_PIN_OR_KEY_MISSING) { in rp_enc_send_reject_ind()
880 } else if (ctx->data.enc.error == BT_HCI_ERR_LMP_PDU_NOT_ALLOWED) { in rp_enc_send_reject_ind()
934 memcpy(ctx->data.enc.rand, pdu->llctrl.enc_req.rand, sizeof(ctx->data.enc.rand)); in rp_enc_store_m()
937 ctx->data.enc.ediv[0] = pdu->llctrl.enc_req.ediv[0]; in rp_enc_store_m()
938 ctx->data.enc.ediv[1] = pdu->llctrl.enc_req.ediv[1]; in rp_enc_store_m()
941 memcpy(&ctx->data.enc.skdm, pdu->llctrl.enc_req.skdm, sizeof(ctx->data.enc.skdm)); in rp_enc_store_m()
995 ctx->data.enc.error = BT_HCI_ERR_PIN_OR_KEY_MISSING; in rp_enc_state_wait_ltk_reply()
1129 ctx->data.enc.error = BT_HCI_ERR_LMP_PDU_NOT_ALLOWED; in rp_enc_state_wait_rx_pause_enc_req()