Home
last modified time | relevance | path

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

/drivers/net/wireless/rt2x00/
Drt2x00crypto.c67 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
94 overhead += key->iv_len; in rt2x00crypto_tx_overhead()
108 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_copy_iv()
112 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_copy_iv()
119 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_remove_iv()
123 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_remove_iv()
126 memmove(skb->data + txdesc->iv_len, skb->data, txdesc->iv_offset); in rt2x00crypto_tx_remove_iv()
129 skb_pull(skb, txdesc->iv_len); in rt2x00crypto_tx_remove_iv()
130 txdesc->length -= txdesc->iv_len; in rt2x00crypto_tx_remove_iv()
139 const unsigned int iv_len = in rt2x00crypto_tx_insert_iv() local
[all …]
Drt2x00queue.h335 u16 iv_len; member
/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.c315 pattrib->iv_len = 4; in r8712_update_attrib()
319 pattrib->iv_len = 8; in r8712_update_attrib()
325 pattrib->iv_len = 8; in r8712_update_attrib()
329 pattrib->iv_len = 0; in r8712_update_attrib()
420 hdrlen+pattrib->iv_len; in xmitframe_addmic()
424 pattrib->iv_len - in xmitframe_addmic()
432 pattrib->hdrlen-pattrib->iv_len - in xmitframe_addmic()
632 if (pattrib->iv_len) { in r8712_xmitframe_coalesce()
662 memcpy(pframe, pattrib->iv, pattrib->iv_len); in r8712_xmitframe_coalesce()
663 pframe += pattrib->iv_len; in r8712_xmitframe_coalesce()
[all …]
Drtl871x_recv.c186 prxattrib->iv_len - prxattrib->icv_len - 8; in r8712_recvframe_chkmic()
189 prxattrib->iv_len; in r8712_recvframe_chkmic()
271 pfhdr->attrib.iv_len + LLC_HEADER_SIZE; in r8712_portctrl()
547 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, in validate_recv_data_frame()
551 pattrib->iv_len = pattrib->icv_len = 0; in validate_recv_data_frame()
619 pattrib->iv_len); in r8712_wlanhdr_to_ethhdr()
620 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()
Drtl871x_security.c194 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in r8712_wep_encrypt()
197 hdrlen-pattrib->iv_len - in r8712_wep_encrypt()
208 pattrib->iv_len-pattrib->icv_len; in r8712_wep_encrypt()
248 u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len; in r8712_wep_decrypt()
249 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in r8712_wep_decrypt()
608 payload = pframe+pattrib->iv_len + in r8712_tkip_encrypt()
620 pattrib->hdrlen-pattrib->iv_len - in r8712_tkip_encrypt()
632 iv_len-pattrib->icv_len; in r8712_tkip_encrypt()
675 payload = pframe+prxattrib->iv_len + prxattrib->hdrlen; in r8712_tkip_decrypt()
678 prxattrib->iv_len; in r8712_tkip_decrypt()
[all …]
Drtl8712_recv.c246 wlanhdr_offset = pnfhdr->attrib.hdrlen + pnfhdr->attrib.iv_len; in recvframe_defrag()
355 if (prframe->u.hdr.attrib.iv_len > 0) in amsdu_to_msdu()
356 recvframe_pull(prframe, prframe->u.hdr.attrib.iv_len); in amsdu_to_msdu()
Drtl871x_xmit.h123 u8 iv_len; member
Drtl871x_recv.h59 int iv_len; member
/drivers/net/wireless/b43legacy/
Dxmit.c240 size_t iv_len; in generate_txhdr_fw3() local
256 iv_len = min((size_t)info->control.hw_key->iv_len, in generate_txhdr_fw3()
258 memcpy(txhdr->iv, ((u8 *)wlhdr) + wlhdr_len, iv_len); in generate_txhdr_fw3()
496 int iv_len; in b43legacy_rx() local
523 iv_len = 8; in b43legacy_rx()
526 iv_len = 4; in b43legacy_rx()
529 if (unlikely(skb->len < (wlhdr_len + iv_len + in b43legacy_rx()
536 memmove(skb->data + iv_len, skb->data, wlhdr_len); in b43legacy_rx()
537 skb_pull(skb, iv_len); in b43legacy_rx()
/drivers/net/wireless/b43/
Dxmit.c301 size_t iv_len; in b43_generate_txhdr() local
339 iv_len = min((size_t) info->control.hw_key->iv_len, in b43_generate_txhdr()
341 memcpy(txhdr->iv, ((u8 *) wlhdr) + wlhdr_len, iv_len); in b43_generate_txhdr()
/drivers/crypto/amcc/
Dcrypto4xx_core.c782 void *iv, u32 iv_len) in crypto4xx_build_pd() argument
859 if (iv_len || ctx->is_hash) { in crypto4xx_build_pd()
860 ivlen = iv_len; in crypto4xx_build_pd()
871 if (iv_len) in crypto4xx_build_pd()
872 crypto4xx_memcpy_le(pd_uinfo->sr_va, iv, iv_len); in crypto4xx_build_pd()
Dcrypto4xx_core.h186 void *iv, u32 iv_len);
/drivers/crypto/
Dpicoxcell_crypto.c222 size_t key_len, const u8 *iv, size_t iv_len) in spacc_cipher_write_ctx() argument
228 memcpy_toio32(iv_ptr, iv, iv_len / 4); in spacc_cipher_write_ctx()
/drivers/net/wireless/
Dmwl8k.c877 head_pad = key_conf->iv_len; in mwl8k_encapsulate_tx_frame()