/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00crypto.c | 65 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor() 92 overhead += key->iv_len; in rt2x00crypto_tx_overhead() 106 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_copy_iv() 110 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_copy_iv() 117 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_remove_iv() 121 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_remove_iv() 124 memmove(skb->data + txdesc->iv_len, skb->data, txdesc->iv_offset); in rt2x00crypto_tx_remove_iv() 127 skb_pull(skb, txdesc->iv_len); in rt2x00crypto_tx_remove_iv() 128 txdesc->length -= txdesc->iv_len; in rt2x00crypto_tx_remove_iv() 137 const unsigned int iv_len = in rt2x00crypto_tx_insert_iv() local [all …]
|
/drivers/staging/rtl8188eu/os_dep/ |
D | mon.c | 28 static void unprotect_frame(struct sk_buff *skb, int iv_len, int icv_len) in unprotect_frame() argument 36 if (skb->len < hdr_len + iv_len + icv_len) in unprotect_frame() 43 memmove(skb->data + iv_len, skb->data, hdr_len); in unprotect_frame() 44 skb_pull(skb, iv_len); in unprotect_frame() 49 int data_len, int iv_len, int icv_len) in mon_recv_decrypted() argument 62 unprotect_frame(skb, iv_len, icv_len); in mon_recv_decrypted() 85 int iv_len, icv_len; in rtl88eu_mon_recv_hook() local 99 SET_ICE_IV_LEN(iv_len, icv_len, attr->encrypt); in rtl88eu_mon_recv_hook() 102 mon_recv_decrypted(dev, data, data_len, iv_len, icv_len); in rtl88eu_mon_recv_hook() 132 mon_recv_decrypted(dev, data, frag_len, attr->iv_len, 0); in rtl88eu_mon_xmit_hook() [all …]
|
/drivers/crypto/bcm/ |
D | spu.c | 41 unsigned int iv_len; in spum_dump_msg_hdr() local 282 iv_len = sctx_pl_len - in spum_dump_msg_hdr() 285 packet_log(" IV Length:%u Bytes\n", iv_len); in spum_dump_msg_hdr() 286 packet_dump(" IV: ", ptr, iv_len); in spum_dump_msg_hdr() 287 ptr += iv_len; in spum_dump_msg_hdr() 506 unsigned int assoc_len, unsigned int iv_len, in spum_assoc_resp_len() argument 543 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) in spum_aead_ivlen() argument 630 aead_parms->iv_len + aead_parms->aad_pad_len; in spum_create_request() 634 aead_parms->iv_len, in spum_create_request() 669 flow_log(" iv: %d\n", cipher_parms->iv_len); in spum_create_request() [all …]
|
D | spu2.c | 385 u8 iv_len; in spu2_dump_fmd_ctrl1() local 428 iv_len = (ctrl1 & SPU2_IV_LEN) >> SPU2_IV_LEN_SHIFT; in spu2_dump_fmd_ctrl1() 429 packet_log(" Input IV len %u bytes\n", iv_len); in spu2_dump_fmd_ctrl1() 881 unsigned int assoc_len, unsigned int iv_len, in spu2_assoc_resp_len() argument 888 resp_len += iv_len; in spu2_assoc_resp_len() 903 u8 spu2_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) in spu2_aead_ivlen() argument 976 aead_parms->aad_pad_len + aead_parms->iv_len; in spu2_create_request() 981 aead_parms->iv_len, in spu2_create_request() 1013 flow_log(" iv: %d\n", cipher_parms->iv_len); in spu2_create_request() 1014 flow_dump(" iv: ", cipher_parms->iv_buf, cipher_parms->iv_len); in spu2_create_request() [all …]
|
D | spu.h | 134 u16 iv_len; member 151 u16 iv_len; /* length of IV field between assoc data and data */ member 244 unsigned int assoc_len, unsigned int iv_len, 246 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len);
|
D | spu2.h | 196 unsigned int assoc_len, unsigned int iv_len, 199 u16 iv_len);
|
D | cipher.h | 385 unsigned int iv_len, bool is_encrypt); 387 u16 iv_len);
|
/drivers/staging/rtl8712/ |
D | rtl871x_security.h | 168 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument 173 iv_len = 4; \ 177 iv_len = 8; \ 181 iv_len = 8; \ 185 iv_len = 0; \
|
D | rtl871x_xmit.c | 322 pattrib->iv_len = 4; in r8712_update_attrib() 326 pattrib->iv_len = 8; in r8712_update_attrib() 332 pattrib->iv_len = 8; in r8712_update_attrib() 336 pattrib->iv_len = 0; in r8712_update_attrib() 426 payload += pattrib->hdrlen + pattrib->iv_len; in xmitframe_addmic() 430 pattrib->iv_len - in xmitframe_addmic() 438 pattrib->hdrlen - pattrib->iv_len - in xmitframe_addmic() 641 if (pattrib->iv_len) { in r8712_xmitframe_coalesce() 671 memcpy(pframe, pattrib->iv, pattrib->iv_len); in r8712_xmitframe_coalesce() 672 pframe += pattrib->iv_len; in r8712_xmitframe_coalesce() [all …]
|
D | rtl871x_security.c | 190 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in r8712_wep_encrypt() 193 hdrlen - pattrib->iv_len - in r8712_wep_encrypt() 204 pattrib->hdrlen - pattrib->iv_len - in r8712_wep_encrypt() 245 u.hdr.len - prxattrib->hdrlen - prxattrib->iv_len; in r8712_wep_decrypt() 246 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in r8712_wep_decrypt() 604 payload = pframe + pattrib->iv_len + in r8712_tkip_encrypt() 617 pattrib->iv_len - in r8712_tkip_encrypt() 629 pattrib->iv_len - in r8712_tkip_encrypt() 675 payload = pframe + prxattrib->iv_len + in r8712_tkip_decrypt() 679 prxattrib->iv_len; in r8712_tkip_decrypt() [all …]
|
D | rtl871x_recv.c | 179 prxattrib->iv_len - prxattrib->icv_len - 8; in r8712_recvframe_chkmic() 182 prxattrib->iv_len; in r8712_recvframe_chkmic() 548 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, in validate_recv_data_frame() 552 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame() 618 pattrib->iv_len); in r8712_wlanhdr_to_ethhdr() 619 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; in r8712_wlanhdr_to_ethhdr() 633 rmv_len = pattrib->hdrlen + pattrib->iv_len + in r8712_wlanhdr_to_ethhdr()
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | xmit.c | 241 size_t iv_len; in generate_txhdr_fw3() local 257 iv_len = min_t(size_t, info->control.hw_key->iv_len, in generate_txhdr_fw3() 259 memcpy(txhdr->iv, ((u8 *)wlhdr) + wlhdr_len, iv_len); in generate_txhdr_fw3() 483 int iv_len; in b43legacy_rx() local 510 iv_len = 8; in b43legacy_rx() 513 iv_len = 4; in b43legacy_rx() 516 if (unlikely(skb->len < (wlhdr_len + iv_len + in b43legacy_rx() 523 memmove(skb->data + iv_len, skb->data, wlhdr_len); in b43legacy_rx() 524 skb_pull(skb, iv_len); in b43legacy_rx()
|
/drivers/staging/rtl8188eu/include/ |
D | rtw_security.h | 185 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt) \ argument 190 iv_len = 4; \ 194 iv_len = 8; \ 198 iv_len = 8; \ 202 iv_len = 18; \ 206 iv_len = 0; \
|
/drivers/crypto/ccp/ |
D | ccp-crypto-aes-galois.c | 88 unsigned int iv_len = 0; in ccp_aes_gcm_crypt() local 118 iv_len = AES_BLOCK_SIZE; in ccp_aes_gcm_crypt() 119 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_aes_gcm_crypt() 132 rctx->cmd.u.aes.iv_len = iv_len; in ccp_aes_gcm_crypt()
|
D | ccp-crypto-des3.c | 83 unsigned int iv_len = 0; in ccp_des3_crypt() local 100 iv_len = DES3_EDE_BLOCK_SIZE; in ccp_des3_crypt() 101 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_des3_crypt() 115 rctx->cmd.u.des3.iv_len = iv_len; in ccp_des3_crypt()
|
D | ccp-crypto-aes.c | 76 unsigned int iv_len = 0; in ccp_aes_crypt() local 93 iv_len = AES_BLOCK_SIZE; in ccp_aes_crypt() 94 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_aes_crypt() 107 rctx->cmd.u.aes.iv_len = iv_len; in ccp_aes_crypt()
|
D | ccp-ops.c | 479 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd() 540 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmac_cmd() 603 ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmac_cmd() 721 dm_offset = CCP_AES_CTX_SB_COUNT * CCP_SB_BYTES - aes->iv_len; in ccp_run_aes_gcm_cmd() 722 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_gcm_cmd() 815 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_gcm_cmd() 926 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmd() 982 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmd() 1059 ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmd() 1122 if (xts->iv_len != AES_BLOCK_SIZE) in ccp_run_xts_aes_cmd() [all …]
|
/drivers/staging/rtl8723bs/include/ |
D | rtw_security.h | 241 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument 247 iv_len = 4;\ 251 iv_len = 8;\ 255 iv_len = 8;\ 259 iv_len = 18;\ 263 iv_len = 0;\
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 173 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_wep_encrypt() 176 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 184 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 220 length = ((struct recv_frame *)precvframe)->pkt->len-prxattrib->hdrlen-prxattrib->iv_len; in rtw_wep_decrypt() 222 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt() 605 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_tkip_encrypt() 615 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt() 618 pattrib->iv_len, pattrib->icv_len)); in rtw_tkip_encrypt() 625 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt() 681 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_tkip_decrypt() [all …]
|
D | rtw_xmit.c | 565 pattrib->iv_len = 4; in update_attrib() 569 pattrib->iv_len = 8; in update_attrib() 582 pattrib->iv_len = 8; in update_attrib() 586 pattrib->iv_len = 0; in update_attrib() 687 payload = payload+pattrib->hdrlen+pattrib->iv_len; in xmitframe_addmic() 690 curfragnum, pattrib->hdrlen, pattrib->iv_len)); in xmitframe_addmic() 692 …length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_l… in xmitframe_addmic() 696 …length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_len… in xmitframe_addmic() 932 len = pattrib->hdrlen + pattrib->iv_len; /* WLAN Header and IV */ in rtw_calculate_wlan_pkt_size_by_attribue() 1011 if (pattrib->iv_len) { in rtw_xmitframe_coalesce() [all …]
|
D | rtw_recv.c | 263 prxattrib->iv_len-prxattrib->icv_len-8; in recvframe_chkmic() 265 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic() 267 …rv_info_, ("\n prxattrib->iv_len=%d prxattrib->icv_len=%d\n", prxattrib->iv_len, prxattrib->icv_le… in recvframe_chkmic() 455 ptr = ptr + pfhdr->attrib.hdrlen + LLC_HEADER_SIZE + pfhdr->attrib.iv_len; in portctrl() 1144 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_recv_data_frame() 1147 pattrib->iv_len = 0; in validate_recv_data_frame() 1288 psnap = (struct ieee80211_snap_hdr *)(ptr+pattrib->hdrlen + pattrib->iv_len); in wlanhdr_to_ethhdr() 1289 psnap_type = ptr+pattrib->hdrlen + pattrib->iv_len+SNAP_SIZE; in wlanhdr_to_ethhdr() 1302 rmv_len = pattrib->hdrlen + pattrib->iv_len + (bsnaphdr ? SNAP_SIZE : 0); in wlanhdr_to_ethhdr() 1306 ("\n===pattrib->hdrlen: %x, pattrib->iv_len:%x===\n\n", pattrib->hdrlen, pattrib->iv_len)); in wlanhdr_to_ethhdr() [all …]
|
/drivers/staging/rtl8723bs/core/ |
D | rtw_recv.c | 370 …datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_le… in recvframe_chkmic() 372 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic() 374 …_info_, ("\n prxattrib->iv_len =%d prxattrib->icv_len =%d\n", prxattrib->iv_len, prxattrib->icv_le… in recvframe_chkmic() 594 ptr = ptr+pfhdr->attrib.hdrlen+pfhdr->attrib.iv_len+LLC_HEADER_SIZE; in portctrl() 1399 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_recv_data_frame() 1402 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame() 1434 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_80211w_mgmt() 1438 data_len = pattrib->pkt_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in validate_80211w_mgmt() 1446 memcpy(mgmt_DATA, ptr+pattrib->hdrlen+pattrib->iv_len, data_len); in validate_80211w_mgmt() 1450 pattrib->pkt_len = pattrib->pkt_len - pattrib->iv_len - pattrib->icv_len; in validate_80211w_mgmt() [all …]
|
D | rtw_xmit.c | 568 pattrib->iv_len = 4; in update_attrib_sec_info() 574 pattrib->iv_len = 8; in update_attrib_sec_info() 597 pattrib->iv_len = 8; in update_attrib_sec_info() 608 pattrib->iv_len = 0; in update_attrib_sec_info() 961 payload = payload+pattrib->hdrlen+pattrib->iv_len; in xmitframe_addmic() 962 …agnum =%d pattrib->hdrlen =%d pattrib->iv_len =%d", curfragnum, pattrib->hdrlen, pattrib->iv_len)); in xmitframe_addmic() 964 …length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_l… in xmitframe_addmic() 968 …length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_len… in xmitframe_addmic() 1188 len = pattrib->hdrlen + pattrib->iv_len; /* WLAN Header and IV */ in rtw_calculate_wlan_pkt_size_by_attribue() 1293 if (pattrib->iv_len) { in rtw_xmitframe_coalesce() [all …]
|
D | rtw_security.c | 252 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_wep_encrypt() 256 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 265 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 303 length = ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len; in rtw_wep_decrypt() 305 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt() 720 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_tkip_encrypt() 732 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt() 733 …c_, _drv_info_, ("pattrib->iv_len =%x, pattrib->icv_len =%x\n", pattrib->iv_len, pattrib->icv_len)… in rtw_tkip_encrypt() 741 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt() 839 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_tkip_decrypt() [all …]
|
/drivers/net/wireless/st/cw1200/ |
D | txrx.c | 510 t->hdrlen += t->tx_info->control.hw_key->iv_len; in cw1200_tx_h_crypt() 1102 size_t iv_len = 0, icv_len = 0; in cw1200_rx_cb() local 1111 iv_len = 4 /* WEP_IV_LEN */; in cw1200_rx_cb() 1115 iv_len = 8 /* TKIP_IV_LEN */; in cw1200_rx_cb() 1121 iv_len = 8 /* CCMP_HDR_LEN */; in cw1200_rx_cb() 1125 iv_len = 18 /* WAPI_HDR_LEN */; in cw1200_rx_cb() 1138 if (skb->len < hdrlen + iv_len + icv_len) { in cw1200_rx_cb() 1145 memmove(skb->data + iv_len, skb->data, hdrlen); in cw1200_rx_cb() 1146 skb_pull(skb, iv_len); in cw1200_rx_cb()
|