/linux-master/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00crypto.c | 54 txdesc->iv_len = hw_key->iv_len; 81 overhead += key->iv_len; 95 if (unlikely(!txdesc->iv_len)) 99 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); 106 if (unlikely(!txdesc->iv_len)) 110 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); 113 memmove(skb->data + txdesc->iv_len, skb->data, txdesc->iv_offset); 116 skb_pull(skb, txdesc->iv_len); 117 txdesc->length -= txdesc->iv_len; 126 const unsigned int iv_len = local 150 unsigned int iv_len; local [all...] |
/linux-master/drivers/staging/rtl8712/ |
H A D | rtl871x_security.h | 156 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ 161 iv_len = 4; \ 165 iv_len = 8; \ 169 iv_len = 8; \ 173 iv_len = 0; \
|
H A D | rtl871x_xmit.c | 335 pattrib->iv_len = 4; 339 pattrib->iv_len = 8; 345 pattrib->iv_len = 8; 349 pattrib->iv_len = 0; 437 payload += pattrib->hdrlen + pattrib->iv_len; 441 pattrib->iv_len - 449 pattrib->hdrlen - pattrib->iv_len - 649 if (pattrib->iv_len) { 676 memcpy(pframe, pattrib->iv, pattrib->iv_len); 677 pframe += pattrib->iv_len; [all...] |
H A D | rtl871x_security.c | 177 payload = pframe + pattrib->iv_len + pattrib->hdrlen; 181 pattrib->iv_len - 192 pattrib->hdrlen - pattrib->iv_len - 233 u.hdr.len - prxattrib->hdrlen - prxattrib->iv_len; 234 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; 591 payload = pframe + pattrib->iv_len + 604 pattrib->iv_len - 616 pattrib->iv_len - 662 payload = pframe + prxattrib->iv_len + 666 prxattrib->iv_len; [all...] |
H A D | rtl871x_recv.c | 165 prxattrib->iv_len - prxattrib->icv_len - 8; 168 prxattrib->iv_len; 533 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, 537 pattrib->iv_len = pattrib->icv_len = 0; 603 pattrib->iv_len); 604 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; 618 rmv_len = pattrib->hdrlen + pattrib->iv_len +
|
/linux-master/drivers/crypto/bcm/ |
H A D | spu.c | 27 unsigned int iv_len; local 264 iv_len = sctx_pl_len - 267 packet_log(" IV Length:%u Bytes\n", iv_len); 268 packet_dump(" IV: ", ptr, iv_len); 269 ptr += iv_len; 480 * @iv_len: length of IV (bytes) 486 unsigned int assoc_len, unsigned int iv_len, 516 * @iv_len: initialization vector length in bytes 523 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) argument 610 aead_parms->iv_len 485 spum_assoc_resp_len(enum spu_cipher_mode cipher_mode, unsigned int assoc_len, unsigned int iv_len, bool is_encrypt) argument [all...] |
H A D | spu2.c | 374 u8 iv_len; local 417 iv_len = (ctrl1 & SPU2_IV_LEN) >> SPU2_IV_LEN_SHIFT; 418 packet_log(" Input IV len %u bytes\n", iv_len); 869 * @iv_len: length of initialization vector, in bytes 875 unsigned int assoc_len, unsigned int iv_len, 882 resp_len += iv_len; 890 * @iv_len: initialization vector length in bytes 897 u8 spu2_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) argument 970 aead_parms->aad_pad_len + aead_parms->iv_len; 974 aead_parms->iv_len, 874 spu2_assoc_resp_len(enum spu_cipher_mode cipher_mode, unsigned int assoc_len, unsigned int iv_len, bool is_encrypt) argument [all...] |
H A D | spu.h | 122 /* iv_buf and iv_len include salt, if applicable */ 124 u16 iv_len; member in struct:spu_cipher_parms 141 u16 iv_len; /* length of IV field between assoc data and data */ member in struct:spu_aead_parms 234 unsigned int assoc_len, unsigned int iv_len, 236 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len);
|
H A D | spu2.h | 185 unsigned int assoc_len, unsigned int iv_len, 188 u16 iv_len);
|
H A D | cipher.h | 371 unsigned int iv_len, bool is_encrypt); 373 u16 iv_len);
|
/linux-master/drivers/staging/rtl8723bs/include/ |
H A D | rtw_security.h | 197 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ 203 iv_len = 4;\ 207 iv_len = 8;\ 211 iv_len = 8;\ 215 iv_len = 18;\ 219 iv_len = 0;\
|
/linux-master/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-galois.c | 82 unsigned int iv_len = 0; local 112 iv_len = AES_BLOCK_SIZE; 113 sg_init_one(iv_sg, rctx->iv, iv_len); 126 rctx->cmd.u.aes.iv_len = iv_len;
|
H A D | ccp-crypto-des3.c | 67 unsigned int iv_len = 0; local 83 iv_len = DES3_EDE_BLOCK_SIZE; 84 sg_init_one(iv_sg, rctx->iv, iv_len); 98 rctx->cmd.u.des3.iv_len = iv_len;
|
H A D | ccp-crypto-aes.c | 72 unsigned int iv_len = 0; local 88 iv_len = AES_BLOCK_SIZE; 89 sg_init_one(iv_sg, rctx->iv, iv_len); 102 rctx->cmd.u.aes.iv_len = iv_len;
|
H A D | ccp-ops.c | 493 if (aes->iv_len != AES_BLOCK_SIZE) 554 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); 617 ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); 734 dm_offset = CCP_AES_CTX_SB_COUNT * CCP_SB_BYTES - aes->iv_len; 735 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); 828 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); 940 if (aes->iv_len != AES_BLOCK_SIZE) 996 ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); 1073 ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len); 1136 if (xts->iv_len ! [all...] |
/linux-master/drivers/net/wireless/broadcom/b43legacy/ |
H A D | xmit.c | 228 size_t iv_len; local 244 iv_len = min_t(size_t, info->control.hw_key->iv_len, 246 memcpy(txhdr->iv, ((u8 *)wlhdr) + wlhdr_len, iv_len); 470 int iv_len; local 497 iv_len = 8; 500 iv_len = 4; 503 if (unlikely(skb->len < (wlhdr_len + iv_len + 510 memmove(skb->data + iv_len, skb->data, wlhdr_len); 511 skb_pull(skb, iv_len); [all...] |
/linux-master/include/linux/ |
H A D | ccp.h | 152 * @iv_len: length in bytes of iv 162 * - iv, iv_len for any mode other than ECB 180 u32 iv_len; /* In bytes */ member in struct:ccp_aes_engine 219 * @iv_len: length in bytes of iv 226 * - action, unit_size, key, key_len, iv, iv_len, src, dst, src_len, final 240 u32 iv_len; /* In bytes */ member in struct:ccp_xts_aes_engine 330 * @iv_len: length in bytes of iv 337 * - iv, iv_len for any mode other than ECB 351 u32 iv_len; /* In bytes */ member in struct:ccp_des3_engine
|
/linux-master/include/uapi/linux/ |
H A D | virtio_crypto.h | 360 __le32 iv_len; member in struct:virtio_crypto_cipher_para 389 __le32 iv_len; member in struct:virtio_crypto_aead_para 417 __le32 iv_len; member in struct:virtio_crypto_alg_chain_data_para
|
/linux-master/drivers/staging/rtl8723bs/core/ |
H A D | rtw_recv.c | 336 datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_len included the mic code */ 338 payload = pframe+prxattrib->hdrlen+prxattrib->iv_len; 479 ptr = ptr + pfhdr->attrib.hdrlen + pfhdr->attrib.iv_len + LLC_HEADER_LENGTH; 1071 wlanhdr_offset = pnfhdr->attrib.hdrlen + pnfhdr->attrib.iv_len; 1334 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); 1337 pattrib->iv_len = pattrib->icv_len = 0; 1366 SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt); 1370 data_len = pattrib->pkt_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; 1376 memcpy(mgmt_DATA, ptr+pattrib->hdrlen+pattrib->iv_len, data_len); 1380 pattrib->pkt_len = pattrib->pkt_len - pattrib->iv_len [all...] |
H A D | rtw_security.c | 68 payload = pframe+pattrib->iv_len+pattrib->hdrlen; 72 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; 81 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; 117 length = ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len; 119 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; 496 payload = pframe+pattrib->iv_len+pattrib->hdrlen; 508 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; 516 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; 605 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; 606 length = ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len; [all...] |
H A D | rtw_xmit.c | 517 pattrib->iv_len = 4; 523 pattrib->iv_len = 8; 542 pattrib->iv_len = 8; 553 pattrib->iv_len = 0; 814 payload = payload+pattrib->hdrlen+pattrib->iv_len; 817 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_len : 0); 821 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_len : 0); 1002 len = pattrib->hdrlen + pattrib->iv_len; /* WLAN Header and IV */ 1073 if (pattrib->iv_len) { 1074 memcpy(pframe, pattrib->iv, pattrib->iv_len); [all...] |
/linux-master/crypto/ |
H A D | tcrypt.c | 250 unsigned int i, j, iv_len; local 369 iv_len = crypto_aead_ivsize(tfm); 370 if (iv_len) 371 memset(iv, 0xff, iv_len); 537 unsigned int iv_len; local 625 iv_len = crypto_aead_ivsize(tfm); 626 if (iv_len) 627 memset(iv, 0xff, iv_len); 1066 unsigned int i, j, iv_len; local 1152 iv_len 1297 unsigned int ret, i, j, k, iv_len; local [all...] |
/linux-master/net/mac80211/ |
H A D | key.c | 617 key->conf.iv_len = IEEE80211_WEP_IV_LEN; 621 key->conf.iv_len = IEEE80211_TKIP_IV_LEN; 634 key->conf.iv_len = IEEE80211_CCMP_HDR_LEN; 655 key->conf.iv_len = IEEE80211_CCMP_256_HDR_LEN; 674 key->conf.iv_len = 0; 697 key->conf.iv_len = 0; 716 key->conf.iv_len = IEEE80211_GCMP_HDR_LEN;
|
/linux-master/drivers/net/wireless/st/cw1200/ |
H A D | txrx.c | 507 t->hdrlen += t->tx_info->control.hw_key->iv_len; 1096 size_t iv_len = 0, icv_len = 0; local 1105 iv_len = 4 /* WEP_IV_LEN */; 1109 iv_len = 8 /* TKIP_IV_LEN */; 1115 iv_len = 8 /* CCMP_HDR_LEN */; 1119 iv_len = 18 /* WAPI_HDR_LEN */; 1132 if (skb->len < hdrlen + iv_len + icv_len) { 1139 memmove(skb->data + iv_len, skb->data, hdrlen); 1140 skb_pull(skb, iv_len);
|
/linux-master/drivers/virt/coco/sev-guest/ |
H A D | sev-guest.c | 44 int iv_len, a_len; member in struct:snp_guest_crypto 179 crypto->iv_len = crypto_aead_ivsize(crypto->tfm); 180 crypto->iv = kmalloc(crypto->iv_len, GFP_KERNEL_ACCOUNT); 264 memset(crypto->iv, 0, crypto->iv_len); 277 memset(crypto->iv, 0, crypto->iv_len);
|