Home
last modified time | relevance | path

Searched refs:iv_len (Results 1 – 25 of 36) sorted by relevance

12

/drivers/net/wireless/rt2x00/
Drt2x00crypto.c65 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 …]
Drt2x00queue.h333 u16 iv_len; member
/drivers/staging/rtl8188eu/os_dep/
Dmon.c28 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/staging/rtl8712/
Drtl871x_security.h160 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument
165 iv_len = 4; \
169 iv_len = 8; \
173 iv_len = 8; \
177 iv_len = 0; \
Drtl871x_xmit.c314 pattrib->iv_len = 4; in r8712_update_attrib()
318 pattrib->iv_len = 8; in r8712_update_attrib()
324 pattrib->iv_len = 8; in r8712_update_attrib()
328 pattrib->iv_len = 0; in r8712_update_attrib()
419 hdrlen + pattrib->iv_len; in xmitframe_addmic()
423 pattrib->iv_len - in xmitframe_addmic()
431 pattrib->hdrlen - pattrib->iv_len - in xmitframe_addmic()
633 if (pattrib->iv_len) { in r8712_xmitframe_coalesce()
663 memcpy(pframe, pattrib->iv, pattrib->iv_len); in r8712_xmitframe_coalesce()
664 pframe += pattrib->iv_len; in r8712_xmitframe_coalesce()
[all …]
Drtl871x_security.c190 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 …]
Drtl871x_recv.c188 prxattrib->iv_len - prxattrib->icv_len - 8; in r8712_recvframe_chkmic()
191 prxattrib->iv_len; in r8712_recvframe_chkmic()
550 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, in validate_recv_data_frame()
554 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame()
620 pattrib->iv_len); in r8712_wlanhdr_to_ethhdr()
621 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; in r8712_wlanhdr_to_ethhdr()
634 rmv_len = pattrib->hdrlen + pattrib->iv_len + in r8712_wlanhdr_to_ethhdr()
Drtl871x_recv.h56 int iv_len; member
Drtl8712_recv.c235 wlanhdr_offset = pnfhdr->attrib.hdrlen + pnfhdr->attrib.iv_len; in recvframe_defrag()
343 if (prframe->u.hdr.attrib.iv_len > 0) in amsdu_to_msdu()
344 recvframe_pull(prframe, prframe->u.hdr.attrib.iv_len); in amsdu_to_msdu()
/drivers/net/wireless/b43legacy/
Dxmit.c241 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/
Drtw_security.h198 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt) \ argument
203 iv_len = 4; \
207 iv_len = 8; \
211 iv_len = 8; \
215 iv_len = 18; \
219 iv_len = 0; \
Drtw_recv.h122 u8 iv_len; member
/drivers/crypto/ccp/
Dccp-crypto-aes.c75 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()
Dccp-ops.c901 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd()
960 ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmac_cmd()
1019 ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmac_cmd()
1061 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmd()
1115 ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmd()
1182 ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmd()
1239 if (xts->iv_len != AES_BLOCK_SIZE) in ccp_run_xts_aes_cmd()
1289 ccp_set_dm_area(&ctx, 0, xts->iv, 0, xts->iv_len); in ccp_run_xts_aes_cmd()
1346 ccp_get_dm_area(&ctx, dm_offset, xts->iv, 0, xts->iv_len); in ccp_run_xts_aes_cmd()
/drivers/staging/rtl8723au/core/
Drtw_security.c182 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in rtw_wep_encrypt23a()
187 pattrib->iv_len - pattrib->icv_len; in rtw_wep_encrypt23a()
197 pattrib->iv_len - pattrib->icv_len; in rtw_wep_encrypt23a()
239 length = skb->len - prxattrib->hdrlen - prxattrib->iv_len; in rtw_wep_decrypt23a()
241 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in rtw_wep_decrypt23a()
660 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in rtw_tkip_encrypt23a()
674 pattrib->iv_len - in rtw_tkip_encrypt23a()
679 pattrib->iv_len, in rtw_tkip_encrypt23a()
691 pattrib->iv_len - in rtw_tkip_encrypt23a()
755 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in rtw_tkip_decrypt23a()
[all …]
Drtw_xmit.c584 pattrib->iv_len = IEEE80211_WEP_IV_LEN; in update_attrib()
589 pattrib->iv_len = IEEE80211_TKIP_IV_LEN; in update_attrib()
605 pattrib->iv_len = IEEE80211_CCMP_HDR_LEN; in update_attrib()
610 pattrib->iv_len = 0; in update_attrib()
732 pattrib->iv_len; in xmitframe_addmic()
736 pattrib->hdrlen, pattrib->iv_len); in xmitframe_addmic()
740 pattrib->iv_len - in xmitframe_addmic()
749 pattrib->iv_len - in xmitframe_addmic()
1134 if (pattrib->iv_len) { in rtw_xmitframe_coalesce23a()
1163 memcpy(pframe, pattrib->iv, pattrib->iv_len); in rtw_xmitframe_coalesce23a()
[all …]
Drtw_recv.c331 hdrlen-prxattrib->iv_len-prxattrib->icv_len - 8; in recvframe_chkmic()
334 prxattrib->iv_len; in recvframe_chkmic()
338 prxattrib->iv_len, prxattrib->icv_len); in recvframe_chkmic()
1362 pattrib->iv_len = IEEE80211_WEP_IV_LEN; in validate_recv_data_frame()
1366 pattrib->iv_len = IEEE80211_TKIP_IV_LEN; in validate_recv_data_frame()
1370 pattrib->iv_len = IEEE80211_CCMP_HDR_LEN; in validate_recv_data_frame()
1374 pattrib->iv_len = 0; in validate_recv_data_frame()
1380 pattrib->iv_len = 0; in validate_recv_data_frame()
1534 pattrib->hdrlen, pattrib->iv_len); in wlanhdr_to_ethhdr()
1624 wlanhdr_offset = pnfhdr->attrib.hdrlen + pnfhdr->attrib.iv_len; in recvframe_defrag()
[all …]
/drivers/staging/rtl8188eu/core/
Drtw_security.c174 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_wep_encrypt()
177 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
185 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
221 length = ((struct recv_frame *)precvframe)->len-prxattrib->hdrlen-prxattrib->iv_len; in rtw_wep_decrypt()
223 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt()
604 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_tkip_encrypt()
614 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt()
617 pattrib->iv_len, pattrib->icv_len)); in rtw_tkip_encrypt()
624 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt()
680 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_tkip_decrypt()
[all …]
Drtw_xmit.c579 pattrib->iv_len = 4; in update_attrib()
583 pattrib->iv_len = 8; in update_attrib()
596 pattrib->iv_len = 8; in update_attrib()
600 pattrib->iv_len = 0; in update_attrib()
703 payload = payload+pattrib->hdrlen+pattrib->iv_len; in xmitframe_addmic()
706 curfragnum, pattrib->hdrlen, pattrib->iv_len)); in xmitframe_addmic()
708 …length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_l… in xmitframe_addmic()
712 …length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_len… in xmitframe_addmic()
949 len = pattrib->hdrlen + pattrib->iv_len; /* WLAN Header and IV */ in rtw_calculate_wlan_pkt_size_by_attribue()
1028 if (pattrib->iv_len) { in rtw_xmitframe_coalesce()
[all …]
Drtw_recv.c313 prxattrib->iv_len-prxattrib->icv_len-8; in recvframe_chkmic()
315 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic()
317 …rv_info_, ("\n prxattrib->iv_len=%d prxattrib->icv_len=%d\n", prxattrib->iv_len, prxattrib->icv_le… in recvframe_chkmic()
1219 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_recv_data_frame()
1222 pattrib->iv_len = 0; in validate_recv_data_frame()
1370 psnap = (struct ieee80211_snap_hdr *)(ptr+pattrib->hdrlen + pattrib->iv_len); in wlanhdr_to_ethhdr()
1371 psnap_type = ptr+pattrib->hdrlen + pattrib->iv_len+SNAP_SIZE; in wlanhdr_to_ethhdr()
1384 rmv_len = pattrib->hdrlen + pattrib->iv_len + (bsnaphdr ? SNAP_SIZE : 0); in wlanhdr_to_ethhdr()
1388 ("\n===pattrib->hdrlen: %x, pattrib->iv_len:%x===\n\n", pattrib->hdrlen, pattrib->iv_len)); in wlanhdr_to_ethhdr()
1476 wlanhdr_offset = pnfhdr->attrib.hdrlen + pnfhdr->attrib.iv_len; in recvframe_defrag()
[all …]
/drivers/net/wireless/cw1200/
Dtxrx.c510 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()
/drivers/net/wireless/b43/
Dxmit.c303 size_t iv_len; in b43_generate_txhdr() local
341 iv_len = min_t(size_t, info->control.hw_key->iv_len, in b43_generate_txhdr()
343 memcpy(txhdr->iv, ((u8 *) wlhdr) + wlhdr_len, iv_len); in b43_generate_txhdr()
/drivers/crypto/amcc/
Dcrypto4xx_core.c762 void *iv, u32 iv_len) in crypto4xx_build_pd() argument
839 if (iv_len || ctx->is_hash) { in crypto4xx_build_pd()
840 ivlen = iv_len; in crypto4xx_build_pd()
851 if (iv_len) in crypto4xx_build_pd()
852 crypto4xx_memcpy_le(pd_uinfo->sr_va, iv, iv_len); in crypto4xx_build_pd()
Dcrypto4xx_core.h186 void *iv, u32 iv_len);
/drivers/staging/rtl8723au/include/
Drtw_recv.h115 u8 iv_len; member

12