Home
last modified time | relevance | path

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

12

/drivers/net/wireless/ralink/rt2x00/
Drt2x00crypto.c54 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
81 overhead += key->iv_len; in rt2x00crypto_tx_overhead()
95 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_copy_iv()
99 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_copy_iv()
106 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_remove_iv()
110 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_remove_iv()
113 memmove(skb->data + txdesc->iv_len, skb->data, txdesc->iv_offset); in rt2x00crypto_tx_remove_iv()
116 skb_pull(skb, txdesc->iv_len); in rt2x00crypto_tx_remove_iv()
117 txdesc->length -= txdesc->iv_len; in rt2x00crypto_tx_remove_iv()
126 const unsigned int iv_len = in rt2x00crypto_tx_insert_iv() local
[all …]
/drivers/staging/rtl8188eu/os_dep/
Dmon.c20 static void unprotect_frame(struct sk_buff *skb, int iv_len, int icv_len) in unprotect_frame() argument
28 if (skb->len < hdr_len + iv_len + icv_len) in unprotect_frame()
35 memmove(skb->data + iv_len, skb->data, hdr_len); in unprotect_frame()
36 skb_pull(skb, iv_len); in unprotect_frame()
41 int data_len, int iv_len, int icv_len) in mon_recv_decrypted() argument
54 unprotect_frame(skb, iv_len, icv_len); in mon_recv_decrypted()
77 int iv_len, icv_len; in rtl88eu_mon_recv_hook() local
91 SET_ICE_IV_LEN(iv_len, icv_len, attr->encrypt); in rtl88eu_mon_recv_hook()
94 mon_recv_decrypted(dev, data, data_len, iv_len, icv_len); in rtl88eu_mon_recv_hook()
124 mon_recv_decrypted(dev, data, frag_len, attr->iv_len, 0); in rtl88eu_mon_xmit_hook()
[all …]
/drivers/crypto/bcm/
Dspu.c27 unsigned int iv_len; in spum_dump_msg_hdr() local
264 iv_len = sctx_pl_len - in spum_dump_msg_hdr()
267 packet_log(" IV Length:%u Bytes\n", iv_len); in spum_dump_msg_hdr()
268 packet_dump(" IV: ", ptr, iv_len); in spum_dump_msg_hdr()
269 ptr += iv_len; in spum_dump_msg_hdr()
488 unsigned int assoc_len, unsigned int iv_len, in spum_assoc_resp_len() argument
525 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) in spum_aead_ivlen() argument
612 aead_parms->iv_len + aead_parms->aad_pad_len; in spum_create_request()
616 aead_parms->iv_len, in spum_create_request()
651 flow_log(" iv: %d\n", cipher_parms->iv_len); in spum_create_request()
[all …]
Dspu2.c374 u8 iv_len; in spu2_dump_fmd_ctrl1() local
417 iv_len = (ctrl1 & SPU2_IV_LEN) >> SPU2_IV_LEN_SHIFT; in spu2_dump_fmd_ctrl1()
418 packet_log(" Input IV len %u bytes\n", iv_len); in spu2_dump_fmd_ctrl1()
870 unsigned int assoc_len, unsigned int iv_len, in spu2_assoc_resp_len() argument
877 resp_len += iv_len; in spu2_assoc_resp_len()
892 u8 spu2_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) in spu2_aead_ivlen() argument
965 aead_parms->aad_pad_len + aead_parms->iv_len; in spu2_create_request()
970 aead_parms->iv_len, in spu2_create_request()
1002 flow_log(" iv: %d\n", cipher_parms->iv_len); in spu2_create_request()
1003 flow_dump(" iv: ", cipher_parms->iv_buf, cipher_parms->iv_len); in spu2_create_request()
[all …]
Dspu.h123 u16 iv_len; member
140 u16 iv_len; /* length of IV field between assoc data and data */ member
233 unsigned int assoc_len, unsigned int iv_len,
235 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len);
Dspu2.h185 unsigned int assoc_len, unsigned int iv_len,
188 u16 iv_len);
Dcipher.h373 unsigned int iv_len, bool is_encrypt);
375 u16 iv_len);
/drivers/staging/rtl8188eu/include/
Drtw_security.h184 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt) \ argument
189 iv_len = 4; \
193 iv_len = 8; \
197 iv_len = 8; \
201 iv_len = 18; \
205 iv_len = 0; \
/drivers/staging/rtl8712/
Drtl871x_security.h156 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument
161 iv_len = 4; \
165 iv_len = 8; \
169 iv_len = 8; \
173 iv_len = 0; \
Drtl871x_xmit.c336 pattrib->iv_len = 4; in r8712_update_attrib()
340 pattrib->iv_len = 8; in r8712_update_attrib()
346 pattrib->iv_len = 8; in r8712_update_attrib()
350 pattrib->iv_len = 0; in r8712_update_attrib()
438 payload += pattrib->hdrlen + pattrib->iv_len; in xmitframe_addmic()
442 pattrib->iv_len - in xmitframe_addmic()
450 pattrib->hdrlen - pattrib->iv_len - in xmitframe_addmic()
650 if (pattrib->iv_len) { in r8712_xmitframe_coalesce()
677 memcpy(pframe, pattrib->iv, pattrib->iv_len); in r8712_xmitframe_coalesce()
678 pframe += pattrib->iv_len; in r8712_xmitframe_coalesce()
[all …]
Drtl871x_security.c177 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in r8712_wep_encrypt()
181 pattrib->iv_len - in r8712_wep_encrypt()
192 pattrib->hdrlen - pattrib->iv_len - in r8712_wep_encrypt()
233 u.hdr.len - prxattrib->hdrlen - prxattrib->iv_len; in r8712_wep_decrypt()
234 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in r8712_wep_decrypt()
592 payload = pframe + pattrib->iv_len + in r8712_tkip_encrypt()
605 pattrib->iv_len - in r8712_tkip_encrypt()
617 pattrib->iv_len - in r8712_tkip_encrypt()
663 payload = pframe + prxattrib->iv_len + in r8712_tkip_decrypt()
667 prxattrib->iv_len; in r8712_tkip_decrypt()
[all …]
Drtl871x_recv.c162 prxattrib->iv_len - prxattrib->icv_len - 8; in r8712_recvframe_chkmic()
165 prxattrib->iv_len; in r8712_recvframe_chkmic()
530 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, in validate_recv_data_frame()
534 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame()
600 pattrib->iv_len); in r8712_wlanhdr_to_ethhdr()
601 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; in r8712_wlanhdr_to_ethhdr()
615 rmv_len = pattrib->hdrlen + pattrib->iv_len + in r8712_wlanhdr_to_ethhdr()
/drivers/net/wireless/broadcom/b43legacy/
Dxmit.c228 size_t iv_len; in generate_txhdr_fw3() local
244 iv_len = min_t(size_t, info->control.hw_key->iv_len, in generate_txhdr_fw3()
246 memcpy(txhdr->iv, ((u8 *)wlhdr) + wlhdr_len, iv_len); in generate_txhdr_fw3()
470 int iv_len; in b43legacy_rx() local
497 iv_len = 8; in b43legacy_rx()
500 iv_len = 4; in b43legacy_rx()
503 if (unlikely(skb->len < (wlhdr_len + iv_len + in b43legacy_rx()
510 memmove(skb->data + iv_len, skb->data, wlhdr_len); in b43legacy_rx()
511 skb_pull(skb, iv_len); in b43legacy_rx()
/drivers/crypto/ccp/
Dccp-crypto-aes-galois.c82 unsigned int iv_len = 0; in ccp_aes_gcm_crypt() local
112 iv_len = AES_BLOCK_SIZE; in ccp_aes_gcm_crypt()
113 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_aes_gcm_crypt()
126 rctx->cmd.u.aes.iv_len = iv_len; in ccp_aes_gcm_crypt()
Dccp-crypto-des3.c66 unsigned int iv_len = 0; in ccp_des3_crypt() local
83 iv_len = DES3_EDE_BLOCK_SIZE; in ccp_des3_crypt()
84 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_des3_crypt()
98 rctx->cmd.u.des3.iv_len = iv_len; in ccp_des3_crypt()
Dccp-crypto-aes.c71 unsigned int iv_len = 0; in ccp_aes_crypt() local
88 iv_len = AES_BLOCK_SIZE; in ccp_aes_crypt()
89 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_aes_crypt()
102 rctx->cmd.u.aes.iv_len = iv_len; in ccp_aes_crypt()
Dccp-ops.c493 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd()
554 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmac_cmd()
617 ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmac_cmd()
734 dm_offset = CCP_AES_CTX_SB_COUNT * CCP_SB_BYTES - aes->iv_len; in ccp_run_aes_gcm_cmd()
735 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_gcm_cmd()
828 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_gcm_cmd()
940 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmd()
996 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmd()
1073 ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); in ccp_run_aes_cmd()
1136 if (xts->iv_len != AES_BLOCK_SIZE) in ccp_run_xts_aes_cmd()
[all …]
/drivers/staging/rtl8188eu/core/
Drtw_security.c615 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in rtw_tkip_encrypt()
625 length = pattrib->last_txcmdsz - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt()
628 pattrib->iv_len, pattrib->icv_len)); in rtw_tkip_encrypt()
635 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt()
689 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in rtw_tkip_decrypt()
690 length = precvframe->pkt->len - prxattrib->hdrlen - prxattrib->iv_len; in rtw_tkip_decrypt()
803 memmove(skb->data + pattrib->iv_len, skb->data, pattrib->hdrlen); in rtw_aes_encrypt()
804 skb_pull(skb, pattrib->iv_len); in rtw_aes_encrypt()
839 const int key_length = 16, iv_len = 8, icv_len = 8; in rtw_aes_decrypt() local
866 memcpy(iv, pframe + prxattrib->hdrlen, iv_len); in rtw_aes_decrypt()
[all …]
Drtw_recv.c248 prxattrib->iv_len - prxattrib->icv_len - 8; in recvframe_chkmic()
250 payload = pframe + prxattrib->hdrlen + prxattrib->iv_len; in recvframe_chkmic()
252 …rv_info_, ("\n prxattrib->iv_len=%d prxattrib->icv_len=%d\n", prxattrib->iv_len, prxattrib->icv_le… in recvframe_chkmic()
441 ptr = ptr + pfhdr->attrib.hdrlen + LLC_HEADER_SIZE + pfhdr->attrib.iv_len; in portctrl()
1124 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_recv_data_frame()
1127 pattrib->iv_len = 0; in validate_recv_data_frame()
1268 psnap = (struct ieee80211_snap_hdr *)(ptr + pattrib->hdrlen + pattrib->iv_len); in wlanhdr_to_ethhdr()
1269 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; in wlanhdr_to_ethhdr()
1282 rmv_len = pattrib->hdrlen + pattrib->iv_len + (bsnaphdr ? SNAP_SIZE : 0); in wlanhdr_to_ethhdr()
1286 ("\n===pattrib->hdrlen: %x, pattrib->iv_len:%x===\n\n", pattrib->hdrlen, pattrib->iv_len)); in wlanhdr_to_ethhdr()
[all …]
Drtw_xmit.c543 pattrib->iv_len = 4; in update_attrib()
547 pattrib->iv_len = 8; in update_attrib()
560 pattrib->iv_len = 8; in update_attrib()
564 pattrib->iv_len = 0; in update_attrib()
656 payload += pattrib->hdrlen + pattrib->iv_len; in xmitframe_addmic()
659 curfragnum, pattrib->hdrlen, pattrib->iv_len)); in xmitframe_addmic()
663 pattrib->iv_len - in xmitframe_addmic()
671 pattrib->iv_len - in xmitframe_addmic()
960 if (pattrib->iv_len) { in rtw_xmitframe_coalesce()
980 memcpy(pframe, pattrib->iv, pattrib->iv_len); in rtw_xmitframe_coalesce()
[all …]
/drivers/staging/rtl8723bs/include/
Drtw_security.h231 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument
237 iv_len = 4;\
241 iv_len = 8;\
245 iv_len = 8;\
249 iv_len = 18;\
253 iv_len = 0;\
/drivers/staging/rtl8723bs/core/
Drtw_recv.c357 …datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_le… in recvframe_chkmic()
359 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; in recvframe_chkmic()
361 …_info_, ("\n prxattrib->iv_len =%d prxattrib->icv_len =%d\n", prxattrib->iv_len, prxattrib->icv_le… in recvframe_chkmic()
581 ptr = ptr+pfhdr->attrib.hdrlen+pfhdr->attrib.iv_len+LLC_HEADER_SIZE; in portctrl()
1386 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_recv_data_frame()
1389 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame()
1418 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_80211w_mgmt()
1422 data_len = pattrib->pkt_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in validate_80211w_mgmt()
1430 memcpy(mgmt_DATA, ptr+pattrib->hdrlen+pattrib->iv_len, data_len); in validate_80211w_mgmt()
1434 pattrib->pkt_len = pattrib->pkt_len - pattrib->iv_len - pattrib->icv_len; in validate_80211w_mgmt()
[all …]
Drtw_xmit.c532 pattrib->iv_len = 4; in update_attrib_sec_info()
538 pattrib->iv_len = 8; in update_attrib_sec_info()
560 pattrib->iv_len = 8; in update_attrib_sec_info()
571 pattrib->iv_len = 0; in update_attrib_sec_info()
872 payload = payload+pattrib->hdrlen+pattrib->iv_len; in xmitframe_addmic()
873 …agnum =%d pattrib->hdrlen =%d pattrib->iv_len =%d", curfragnum, pattrib->hdrlen, pattrib->iv_len)); in xmitframe_addmic()
875 …length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_l… in xmitframe_addmic()
879 …length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_len… in xmitframe_addmic()
1083 len = pattrib->hdrlen + pattrib->iv_len; /* WLAN Header and IV */ in rtw_calculate_wlan_pkt_size_by_attribue()
1161 if (pattrib->iv_len) { in rtw_xmitframe_coalesce()
[all …]
Drtw_security.c243 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_wep_encrypt()
247 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
256 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
294 length = ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len; in rtw_wep_decrypt()
296 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt()
691 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_tkip_encrypt()
703 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt()
704 …c_, _drv_info_, ("pattrib->iv_len =%x, pattrib->icv_len =%x\n", pattrib->iv_len, pattrib->icv_len)… in rtw_tkip_encrypt()
712 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt()
796 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_tkip_decrypt()
[all …]
/drivers/net/wireless/st/cw1200/
Dtxrx.c507 t->hdrlen += t->tx_info->control.hw_key->iv_len; in cw1200_tx_h_crypt()
1099 size_t iv_len = 0, icv_len = 0; in cw1200_rx_cb() local
1108 iv_len = 4 /* WEP_IV_LEN */; in cw1200_rx_cb()
1112 iv_len = 8 /* TKIP_IV_LEN */; in cw1200_rx_cb()
1118 iv_len = 8 /* CCMP_HDR_LEN */; in cw1200_rx_cb()
1122 iv_len = 18 /* WAPI_HDR_LEN */; in cw1200_rx_cb()
1135 if (skb->len < hdrlen + iv_len + icv_len) { in cw1200_rx_cb()
1142 memmove(skb->data + iv_len, skb->data, hdrlen); in cw1200_rx_cb()
1143 skb_pull(skb, iv_len); in cw1200_rx_cb()

12