/linux/drivers/net/wireless/ralink/rt2x00/ |
A D | rt2x00crypto.c | 78 overhead += key->icv_len; in rt2x00crypto_tx_overhead() 151 unsigned int icv_len; in rt2x00crypto_rx_insert_iv() local 163 icv_len = 4; in rt2x00crypto_rx_insert_iv() 167 icv_len = 4; in rt2x00crypto_rx_insert_iv() 171 icv_len = 8; in rt2x00crypto_rx_insert_iv() 191 skb_put(skb, icv_len); in rt2x00crypto_rx_insert_iv() 200 if (align < icv_len) in rt2x00crypto_rx_insert_iv() 201 skb_put(skb, icv_len - align); in rt2x00crypto_rx_insert_iv() 202 else if (align > icv_len) in rt2x00crypto_rx_insert_iv() 203 skb_trim(skb, rxdesc->size + iv_len + icv_len); in rt2x00crypto_rx_insert_iv() [all …]
|
/linux/drivers/staging/rtl8723bs/include/ |
A D | rtw_security.h | 197 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument 204 icv_len = 4;\ 208 icv_len = 4;\ 212 icv_len = 8;\ 216 icv_len = 16;\ 220 icv_len = 0;\
|
/linux/drivers/staging/rtl8712/ |
A D | rtl871x_security.h | 156 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument 162 icv_len = 4; \ 166 icv_len = 4; \ 170 icv_len = 8; \ 174 icv_len = 0; \
|
A D | rtl871x_xmit.c | 311 pattrib->icv_len = 4; in r8712_update_attrib() 315 pattrib->icv_len = 4; in r8712_update_attrib() 321 pattrib->icv_len = 8; in r8712_update_attrib() 325 pattrib->icv_len = 0; in r8712_update_attrib() 418 ? pattrib->icv_len : 0); in xmitframe_addmic() 426 pattrib->icv_len : 0); in xmitframe_addmic() 430 pattrib->icv_len; in xmitframe_addmic() 660 if ((pattrib->icv_len > 0) && (pattrib->bswenc)) in r8712_xmitframe_coalesce() 661 mpdu_len -= pattrib->icv_len; in r8712_xmitframe_coalesce() 671 pframe += pattrib->icv_len; in r8712_xmitframe_coalesce() [all …]
|
A D | rtl871x_recv.c | 163 prxattrib->iv_len - prxattrib->icv_len - 8; in r8712_recvframe_chkmic() 532 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, in validate_recv_data_frame() 536 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame() 600 recvframe_pull_tail(precvframe, pattrib->icv_len); in r8712_wlanhdr_to_ethhdr()
|
A D | rtl871x_security.c | 182 pattrib->icv_len; in r8712_wep_encrypt() 193 pattrib->icv_len; in r8712_wep_encrypt() 606 pattrib->icv_len; in r8712_tkip_encrypt() 618 pattrib->icv_len; in r8712_tkip_encrypt() 1166 pattrib->icv_len; in r8712_aes_encrypt() 1173 pattrib->icv_len; in r8712_aes_encrypt()
|
A D | rtl871x_recv.h | 54 int icv_len; member
|
A D | rtl8712_recv.c | 220 recvframe_pull_tail(prframe, pfhdr->attrib.icv_len); in recvframe_defrag() 223 pfhdr->attrib.icv_len = pnfhdr->attrib.icv_len; in recvframe_defrag()
|
/linux/drivers/staging/r8188eu/include/ |
A D | rtw_security.h | 178 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt) \ argument 184 icv_len = 4; \ 188 icv_len = 4; \ 192 icv_len = 8; \ 196 icv_len = 16; \ 200 icv_len = 0; \
|
/linux/drivers/net/ |
A D | macsec.c | 648 skb_put(skb, secy->icv_len); in macsec_encrypt() 692 secy->icv_len; in macsec_encrypt() 883 u16 icv_len = secy->icv_len; in macsec_decrypt() local 1332 int icv_len) in init_rx_sa() argument 1431 int icv_len) in init_tx_sa() argument 1789 secy->key_len, secy->icv_len); in macsec_add_rxsa() 2031 secy->key_len, secy->icv_len); in macsec_add_txsa() 3968 secy->icv_len = icv_len; in macsec_add_dev() 3993 u8 icv_len = DEFAULT_ICV_LEN; in macsec_newlink() local 4108 u8 icv_len = DEFAULT_ICV_LEN; in macsec_validate_attr() local [all …]
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
A D | xmit.c | 235 plcp_fragment_len += info->control.hw_key->icv_len; in generate_txhdr_fw3() 471 int icv_len; in b43legacy_rx() local 498 icv_len = 8; in b43legacy_rx() 501 icv_len = 4; in b43legacy_rx() 504 icv_len))) { in b43legacy_rx() 513 skb_trim(skb, skb->len - icv_len); in b43legacy_rx()
|
/linux/drivers/staging/rtl8723bs/core/ |
A D | rtw_xmit.c | 521 pattrib->icv_len = 4; in update_attrib_sec_info() 527 pattrib->icv_len = 4; in update_attrib_sec_info() 546 pattrib->icv_len = 8; in update_attrib_sec_info() 557 pattrib->icv_len = 0; in update_attrib_sec_info() 826 payload = payload+length+pattrib->icv_len; in xmitframe_addmic() 1090 if ((pattrib->icv_len > 0) && (pattrib->bswenc)) in rtw_xmitframe_coalesce() 1091 mpdu_len -= pattrib->icv_len; in rtw_xmitframe_coalesce() 1104 pframe += pattrib->icv_len; in rtw_xmitframe_coalesce() 1257 pattrib->icv_len = 8; in rtw_mgmt_xmitframe_coalesce() 1278 pframe += pattrib->icv_len; in rtw_mgmt_xmitframe_coalesce() [all …]
|
A D | rtw_recv.c | 345 …datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_le… in recvframe_chkmic() 1079 recvframe_pull_tail(prframe, pfhdr->attrib.icv_len); in recvframe_defrag() 1086 pfhdr->attrib.icv_len = pnfhdr->attrib.icv_len; in recvframe_defrag() 1335 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_recv_data_frame() 1338 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame() 1367 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_80211w_mgmt() 1371 data_len = pattrib->pkt_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in validate_80211w_mgmt() 1382 pattrib->pkt_len = pattrib->pkt_len - pattrib->iv_len - pattrib->icv_len; in validate_80211w_mgmt() 1517 recvframe_pull_tail(precvframe, pattrib->icv_len); in wlanhdr_to_ethhdr()
|
A D | rtw_security.c | 72 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 81 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt() 508 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt() 516 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt() 1061 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_aes_encrypt() 1065 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_aes_encrypt()
|
/linux/net/mac80211/ |
A D | key.c | 563 key->conf.icv_len = IEEE80211_WEP_ICV_LEN; in ieee80211_key_alloc() 567 key->conf.icv_len = IEEE80211_TKIP_ICV_LEN; in ieee80211_key_alloc() 580 key->conf.icv_len = IEEE80211_CCMP_MIC_LEN; in ieee80211_key_alloc() 601 key->conf.icv_len = IEEE80211_CCMP_256_MIC_LEN; in ieee80211_key_alloc() 621 key->conf.icv_len = sizeof(struct ieee80211_mmie); in ieee80211_key_alloc() 623 key->conf.icv_len = sizeof(struct ieee80211_mmie_16); in ieee80211_key_alloc() 643 key->conf.icv_len = sizeof(struct ieee80211_mmie_16); in ieee80211_key_alloc() 662 key->conf.icv_len = IEEE80211_GCMP_MIC_LEN; in ieee80211_key_alloc() 686 key->conf.icv_len = cs->mic_len; in ieee80211_key_alloc()
|
/linux/drivers/infiniband/core/ |
A D | uverbs_std_types_flow_action.c | 77 if (aes_gcm->icv_len != 16 && in validate_flow_action_esp_keymat_aes_gcm() 78 aes_gcm->icv_len != 8 && in validate_flow_action_esp_keymat_aes_gcm() 79 aes_gcm->icv_len != 12) in validate_flow_action_esp_keymat_aes_gcm()
|
/linux/drivers/net/wireless/st/cw1200/ |
A D | txrx.c | 508 skb_put(t->skb, t->tx_info->control.hw_key->icv_len); in cw1200_tx_h_crypt() 952 skb_trim(skb, skb->len - tx->control.hw_key->icv_len); in cw1200_tx_confirm_cb() 1099 size_t iv_len = 0, icv_len = 0; in cw1200_rx_cb() local 1109 icv_len = 4 /* WEP_ICV_LEN */; in cw1200_rx_cb() 1113 icv_len = 4 /* TKIP_ICV_LEN */ in cw1200_rx_cb() 1119 icv_len = 8 /* CCMP_MIC_LEN */; in cw1200_rx_cb() 1123 icv_len = 16 /* WAPI_MIC_LEN */; in cw1200_rx_cb() 1133 icv_len = 0; in cw1200_rx_cb() 1135 if (skb->len < hdrlen + iv_len + icv_len) { in cw1200_rx_cb() 1141 skb_trim(skb, skb->len - icv_len); in cw1200_rx_cb()
|
/linux/drivers/staging/r8188eu/core/ |
A D | rtw_xmit.c | 552 pattrib->icv_len = 4; in update_attrib() 556 pattrib->icv_len = 4; in update_attrib() 565 pattrib->icv_len = 8; in update_attrib() 569 pattrib->icv_len = 0; in update_attrib() 660 payload = payload + length + pattrib->icv_len; in xmitframe_addmic() 968 if ((pattrib->icv_len > 0) && (pattrib->bswenc)) { in rtw_xmitframe_coalesce() 969 mpdu_len -= pattrib->icv_len; in rtw_xmitframe_coalesce() 981 if ((pattrib->icv_len > 0) && (pattrib->bswenc)) { in rtw_xmitframe_coalesce() 982 memcpy(pframe, pattrib->icv, pattrib->icv_len); in rtw_xmitframe_coalesce() 983 pframe += pattrib->icv_len; in rtw_xmitframe_coalesce() [all …]
|
A D | rtw_security.c | 51 length = pattrib->last_txcmdsz - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_wep_encrypt() 59 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_wep_encrypt() 492 length = pattrib->last_txcmdsz - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt() 499 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt() 1129 length = pattrib->last_txcmdsz - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_aes_encrypt() 1133 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_aes_encrypt()
|
A D | rtw_recv.c | 285 …datalen = precvframe->len - prxattrib->hdrlen - prxattrib->iv_len - prxattrib->icv_len - 8;/* icv_… in recvframe_chkmic() 1064 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_recv_data_frame() 1068 pattrib->icv_len = 0; in validate_recv_data_frame() 1195 recvframe_pull_tail(precvframe, pattrib->icv_len); in wlanhdr_to_ethhdr() 1305 recvframe_pull_tail(prframe, pfhdr->attrib.icv_len); in recvframe_defrag() 1312 pfhdr->attrib.icv_len = pnfhdr->attrib.icv_len; in recvframe_defrag()
|
/linux/include/linux/mlx5/ |
A D | accel.h | 70 u32 icv_len; member
|
/linux/net/xfrm/ |
A D | xfrm_algo.c | 741 struct xfrm_algo_desc *xfrm_aead_get_byname(const char *name, int icv_len, int probe) in xfrm_aead_get_byname() argument 745 .icvbits = icv_len, in xfrm_aead_get_byname()
|
/linux/include/uapi/rdma/ |
A D | ib_user_ioctl_verbs.h | 157 __u32 icv_len; member
|
/linux/include/net/ |
A D | macsec.h | 219 u16 icv_len; member
|
/linux/drivers/staging/r8188eu/hal/ |
A D | rtl8188eu_xmit.c | 331 sz = sz - 4 - (psecuritypriv->sw_encrypt ? 0 : pattrib->icv_len); in rtw_dump_xframe() 375 ((pattrib->bswenc) ? pattrib->icv_len : 0); in xmitframe_need_length()
|