Home
last modified time | relevance | path

Searched refs:icv_len (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00crypto.c78 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 skb_put(skb, icv_len - align); in rt2x00crypto_rx_insert_iv()
237 transfer += icv_len; in rt2x00crypto_rx_insert_iv()
/linux/drivers/staging/rtl8723bs/include/
H A Drtw_security.h191 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument
197 icv_len = 4;\
201 icv_len = 4;\
205 icv_len = 8;\
209 icv_len = 16;\
213 icv_len = 0;\
H A Drtw_recv.h127 u8 icv_len; member
H A Drtw_xmit.h146 u8 icv_len; member
/linux/drivers/net/
H A Dmacsec.c303 else if (secy->icv_len != MACSEC_DEFAULT_ICV_LEN) in macsec_fill_sectag()
375 static bool macsec_validate_skb(struct sk_buff *skb, u16 icv_len, bool xpn) in macsec_validate_skb() argument
379 int extra_len = macsec_extra_len(!!(h->tci_an & MACSEC_TCI_SC)) + icv_len; in macsec_validate_skb()
487 return skb->len - macsec_hdr_len(sci_present) - secy->icv_len; in macsec_msdu_len()
634 skb_put(skb, secy->icv_len); in macsec_encrypt()
678 secy->icv_len; in macsec_encrypt()
683 aead_request_set_ad(req, skb->len - secy->icv_len); in macsec_encrypt()
804 static void macsec_finalize_skb(struct sk_buff *skb, u8 icv_len, u8 hdr_len) in macsec_finalize_skb() argument
809 pskb_trim_unique(skb, skb->len - icv_len); in macsec_finalize_skb()
840 macsec_finalize_skb(skb, macsec->secy.icv_len, in macsec_decrypt_done()
[all …]
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dxmit.c235 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/net/wireless/st/cw1200/
H A Dtxrx.c508 skb_put(t->skb, t->tx_info->control.hw_key->icv_len); in cw1200_tx_h_crypt()
949 skb_trim(skb, skb->len - tx->control.hw_key->icv_len); in cw1200_tx_confirm_cb()
1096 size_t iv_len = 0, icv_len = 0; in cw1200_rx_cb() local
1106 icv_len = 4 /* WEP_ICV_LEN */; in cw1200_rx_cb()
1110 icv_len = 4 /* TKIP_ICV_LEN */ in cw1200_rx_cb()
1116 icv_len = 8 /* CCMP_MIC_LEN */; in cw1200_rx_cb()
1120 icv_len = 16 /* WAPI_MIC_LEN */; in cw1200_rx_cb()
1130 icv_len = 0; in cw1200_rx_cb()
1132 if (skb->len < hdrlen + iv_len + icv_len) { in cw1200_rx_cb()
1138 skb_trim(skb, skb->len - icv_len); in cw1200_rx_cb()
/linux/net/mac80211/
H A Dkey.c618 key->conf.icv_len = IEEE80211_WEP_ICV_LEN; in ieee80211_key_alloc()
622 key->conf.icv_len = IEEE80211_TKIP_ICV_LEN; in ieee80211_key_alloc()
635 key->conf.icv_len = IEEE80211_CCMP_MIC_LEN; in ieee80211_key_alloc()
656 key->conf.icv_len = IEEE80211_CCMP_256_MIC_LEN; in ieee80211_key_alloc()
676 key->conf.icv_len = sizeof(struct ieee80211_mmie); in ieee80211_key_alloc()
678 key->conf.icv_len = sizeof(struct ieee80211_mmie_16); in ieee80211_key_alloc()
698 key->conf.icv_len = sizeof(struct ieee80211_mmie_16); in ieee80211_key_alloc()
717 key->conf.icv_len = IEEE80211_GCMP_MIC_LEN; in ieee80211_key_alloc()
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_recv.c335 …datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_le… in recvframe_chkmic()
1075 recvframe_pull_tail(prframe, pfhdr->attrib.icv_len); in recvframe_defrag()
1082 pfhdr->attrib.icv_len = pnfhdr->attrib.icv_len; in recvframe_defrag()
1333 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_recv_data_frame()
1336 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame()
1365 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); in validate_80211w_mgmt()
1369 data_len = pattrib->pkt_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in validate_80211w_mgmt()
1379 pattrib->pkt_len = pattrib->pkt_len - pattrib->iv_len - pattrib->icv_len; in validate_80211w_mgmt()
1514 recvframe_pull_tail(precvframe, pattrib->icv_len); in wlanhdr_to_ethhdr()
H A Drtw_security.c71 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
80 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
507 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt()
515 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt()
1060 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_aes_encrypt()
1064 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_aes_encrypt()
/linux/include/uapi/rdma/
H A Dib_user_ioctl_verbs.h159 __u32 icv_len; member
/linux/net/xfrm/
H A Dxfrm_algo.c777 struct xfrm_algo_desc *xfrm_aead_get_byname(const char *name, int icv_len, int probe) in xfrm_aead_get_byname() argument
781 .icvbits = icv_len, in xfrm_aead_get_byname()
/linux/include/net/
H A Dmacsec.h237 u16 icv_len; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec.h50 u32 icv_len; member
H A Dipsec.c343 aes_gcm->icv_len = x->aead->alg_icv_len; in mlx5e_ipsec_build_accel_xfrm_attrs()
H A Dmacsec.c451 if (secy->icv_len != MACSEC_DEFAULT_ICV_LEN) { in mlx5e_macsec_secy_features_validate()
/linux/drivers/net/wireless/intersil/p54/
H A Dtxrx.c915 len += info->control.hw_key->icv_len; in p54_tx_80211()
916 skb_put_zero(skb, info->control.hw_key->icv_len); in p54_tx_80211()
/linux/tools/testing/selftests/net/
H A Dipsec.c543 unsigned int icv_len; member
875 alg.u.aead.alg_icv_len = desc->icv_len; in xfrm_state_pack_algo()
2258 d->e_algo, d->c_algo, d->ae_algo, d->icv_len); in check_results()
/linux/drivers/net/wireless/silabs/wfx/
H A Ddata_tx.c331 return hw_key->icv_len + mic_space; in wfx_tx_get_icv_len()
/linux/drivers/net/wireless/broadcom/b43/
H A Dxmit.c312 plcp_fragment_len += info->control.hw_key->icv_len; in b43_generate_txhdr()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dd3.c160 mvm->ptk_icvlen = key->icv_len; in iwl_mvm_wowlan_program_keys()
162 mvm->gtk_icvlen = key->icv_len; in iwl_mvm_wowlan_program_keys()
197 mvm->ptk_icvlen = key->icv_len; in iwl_mvm_wowlan_program_keys()
207 mvm->gtk_icvlen = key->icv_len; in iwl_mvm_wowlan_program_keys()
H A Drxmq.c327 if (len < key->icv_len + IEEE80211_GMAC_PN_LEN + 2) in iwl_mvm_rx_mgmt_prot()
331 keyid = frame[len - key->icv_len - IEEE80211_GMAC_PN_LEN - 2]; in iwl_mvm_rx_mgmt_prot()
/linux/drivers/net/wireless/ath/carl9170/
H A Dtx.c1025 len += info->control.hw_key->icv_len; in carl9170_tx_prepare()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_macsec.c1221 if (secy->icv_len != MACSEC_DEFAULT_ICV_LEN) in cn10k_mdo_add_secy()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_macsec.c355 if (!(secy->icv_len == 16 && !secy->tx_sc.encrypt)) in aq_set_txsc()

12