| /linux/drivers/net/wireless/intel/ipw2x00/ |
| H A D | libipw_crypto_wep.c | 94 * for IV and 4 bytes of tailroom for ICV. Both IV and ICV will be transmitted, 97 * WEP frame payload: IV + TX key idx, RC4(data), ICV = RC4(CRC32(data)) 103 u8 *pos, *icv; in libipw_wep_encrypt() local 124 /* Append little-endian CRC32 over only the data and encrypt it to produce ICV */ in libipw_wep_encrypt() 126 icv = skb_put(skb, 4); in libipw_wep_encrypt() 127 icv[0] = crc; in libipw_wep_encrypt() 128 icv[1] = crc >> 8; in libipw_wep_encrypt() 129 icv[2] = crc >> 16; in libipw_wep_encrypt() 130 icv[3] = crc >> 24; in libipw_wep_encrypt() 140 * ICV (4 bytes). len includes both IV and ICV. [all …]
|
| H A D | libipw_tx.c | 50 Desc. | IV | Encrypted | ICV | 82 to add the prefix and postfix (IV and ICV totalling 8 bytes in the case of WEP) 149 * IV (4 bytes), clear payload (including SNAP), ICV (4 bytes) */ in libipw_encrypt_fragment()
|
| /linux/net/mac80211/ |
| H A D | wep.c | 107 * for 4-byte ICV. data_len must not include this ICV. Note: this function 112 __le32 icv; in ieee80211_wep_encrypt_data() local 114 icv = cpu_to_le32(~crc32_le(~0, data, data_len)); in ieee80211_wep_encrypt_data() 115 put_unaligned(icv, (__le32 *)(data + data_len)); in ieee80211_wep_encrypt_data() 126 * beginning of the buffer 4 bytes of extra space (ICV) in the end of the 127 * buffer will be added. Both IV and ICV will be transmitted, so the 130 * WEP frame payload: IV + TX key idx, RC4(data), ICV = RC4(CRC32(data)) 155 /* Add room for ICV */ in ieee80211_wep_encrypt() 164 * payload, including 4-byte ICV, but _not_ IV. data_len must not include ICV. 165 * Return 0 on success and -1 on ICV mismatch. */ [all …]
|
| /linux/net/ipv4/ |
| H A D | ah4.c | 53 u8 *icv) in ah_tmp_req() argument 57 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 74 * into IP header for icv calculation. Options are already checked 119 u8 *icv; in ah_output_done() local 134 icv = ah_tmp_icv(seqhi, seqhi_len); in ah_output_done() 135 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output_done() 154 u8 *icv; in ah_output() local 187 icv = ah_tmp_icv(seqhi, seqhi_len); in ah_output() 188 req = ah_tmp_req(ahash, icv); in ah_output() 236 ahash_request_set_crypt(req, sg, icv, skb->len + seqhi_len); in ah_output() [all …]
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00crypto.c | 74 * Extend frame length to include IV/EIV/ICV/MMIC, in rt2x00crypto_tx_overhead() 155 * WEP64/WEP128: Provides IV & ICV in rt2x00crypto_rx_insert_iv() 156 * TKIP: Provides IV/EIV & ICV in rt2x00crypto_rx_insert_iv() 157 * AES: Provies IV/EIV & ICV in rt2x00crypto_rx_insert_iv() 226 * for determining the correct offset for the ICV data. in rt2x00crypto_rx_insert_iv() 231 * Copy ICV data in rt2x00crypto_rx_insert_iv() 236 memcpy(skb->data + transfer, &rxdesc->icv, 4); in rt2x00crypto_rx_insert_iv() 239 /* IV/EIV/ICV has been inserted into frame */ in rt2x00crypto_rx_insert_iv()
|
| H A D | rt2x00queue.h | 130 * @RXDONE_CRYPTO_ICV: Driver provided ICV data. 166 * @icv: ICV data used during decryption. 183 __le32 icv; member
|
| H A D | rt2800usb.h | 74 * CIPHER_ERROR: 0: decryption okay, 1:ICV error, 2:MIC error, 3:KEY not valid.
|
| /linux/net/ipv6/ |
| H A D | ah6.c | 110 u8 *icv) in ah_tmp_req() argument 114 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 313 u8 *icv; in ah6_output_done() local 332 icv = ah_tmp_icv(seqhi, seqhi_len); in ah6_output_done() 334 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output_done() 349 u8 *icv; in ah6_output() local 389 icv = ah_tmp_icv(seqhi, seqhi_len); in ah6_output() 390 req = ah_tmp_req(ahash, icv); in ah6_output() 442 ahash_request_set_crypt(req, sg, icv, skb->len + seqhi_len); in ah6_output() 457 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output() [all …]
|
| /linux/drivers/crypto/caam/ |
| H A D | caamalg_desc.c | 54 * @icvsize: integrity check value (ICV) size (truncated or full) 114 /* Write ICV */ in cnstr_shdsc_aead_null_encap() 133 * @icvsize: integrity check value (ICV) size (truncated or full) 201 /* Load ICV */ in cnstr_shdsc_aead_null_decap() 282 * @icvsize: integrity check value (ICV) size (truncated or full) 353 /* Write ICV */ in cnstr_shdsc_aead_encap() 376 * @icvsize: integrity check value (ICV) size (truncated or full) 470 /* Load ICV */ in cnstr_shdsc_aead_decap() 494 * @icvsize: integrity check value (ICV) size (truncated or full) 616 /* Write ICV */ in cnstr_shdsc_aead_givencap() [all …]
|
| H A D | pdb.h | 95 * b0_flags (8b) - CCM B0; use 0x5B for 8-byte ICV, 0x6B for 12-byte ICV, 96 * 0x7B for 16-byte ICV (cf. RFC4309, RFC3610) 172 * b0_flags (8b) - CCM B0; use 0x5B for 8-byte ICV, 0x6B for 12-byte ICV, 173 * 0x7B for 16-byte ICV (cf. RFC4309, RFC3610)
|
| H A D | error.c | 196 "ICV check failed.", 254 * CCB ICV check failures are part of normal operation life; in report_ccb_status()
|
| /linux/drivers/crypto/ccree/ |
| H A D | cc_aead.h | 70 dma_addr_t mac_buf_dma_addr; /* internal ICV DMA buffer */ 73 dma_addr_t icv_dma_addr; /* Phys. address of ICV */ 83 u8 *icv_virt_addr; /* Virt. address of ICV */
|
| H A D | cc_buffer_mgr.c | 699 /* Backup happens only when ICV is fragmented, ICV in cc_prepare_aead_data_mlli() 705 * already copying ICV for any in cc_prepare_aead_data_mlli() 718 } else { /* Contig. ICV */ in cc_prepare_aead_data_mlli() 741 /* Backup happens only when ICV is fragmented, ICV in cc_prepare_aead_data_mlli() 750 } else { /* Contig. ICV */ in cc_prepare_aead_data_mlli() 776 /* Contig. ICV */ in cc_prepare_aead_data_mlli() 971 /* cacluate the size for cipher remove ICV in decrypt*/ in cc_map_aead_request()
|
| /linux/drivers/crypto/amcc/ |
| H A D | crypto4xx_core.c | 548 u32 icv[AES_BLOCK_SIZE]; in crypto4xx_aead_done() local 561 /* append icv at the end */ in crypto4xx_aead_done() 562 crypto4xx_memcpy_from_le32(icv, pd_uinfo->sr_va->save_digest, in crypto4xx_aead_done() 563 sizeof(icv)); in crypto4xx_aead_done() 565 scatterwalk_map_and_copy(icv, dst, aead_req->cryptlen, in crypto4xx_aead_done() 568 /* check icv at the end */ in crypto4xx_aead_done() 569 scatterwalk_map_and_copy(icv, aead_req->src, in crypto4xx_aead_done() 573 crypto4xx_memcpy_from_le32(icv, icv, sizeof(icv)); in crypto4xx_aead_done() 575 if (crypto_memneq(icv, pd_uinfo->sr_va->save_digest, cp_len)) in crypto4xx_aead_done()
|
| /linux/Documentation/netlink/specs/ |
| H A D | psp.yaml | 114 and the PSP trailer/ICV (16 bytes) are not included in this count. 148 and the PSP trailer/ICV (16 bytes) are not included in this count.
|
| /linux/drivers/crypto/bcm/ |
| H A D | spu.h | 188 * ICV as a separate buffer. 192 * Return: true if ICV to be included as separate buffer
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
| H A D | trx.c | 303 stats->icv = (u16)get_rx_desc_icv(pdesc); in rtl92cu_rx_query_desc() 305 stats->hwerror = (stats->crc | stats->icv); in rtl92cu_rx_query_desc() 371 stats.icv = (u16)get_rx_desc_icv(rxdesc); in _rtl_rx_process() 373 stats.hwerror = (stats.crc | stats.icv); in _rtl_rx_process()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/ |
| H A D | trx_common.c | 374 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv)); in _rtl92d_translate_rx_signal_stuff() 396 stats->icv = (u16)get_rx_desc_icv(pdesc); in rtl92d_rx_query_desc() 398 stats->hwerror = (stats->crc | stats->icv); in rtl92d_rx_query_desc()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
| H A D | trx.c | 241 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv)); in _rtl92ce_translate_rx_signal_stuff() 271 stats->icv = (u16)get_rx_desc_icv(p_desc); in rtl92ce_rx_query_desc() 273 stats->hwerror = (stats->crc | stats->icv); in rtl92ce_rx_query_desc()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
| H A D | trx.c | 243 (!pstatus->crc) && (!pstatus->icv)); in translate_rx_signal_stuff() 274 status->icv = (u16)get_rx_desc_icv(pdesc); in rtl8723e_rx_query_desc() 276 status->hwerror = (status->crc | status->icv); in rtl8723e_rx_query_desc()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
| H A D | trx.c | 220 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv)); in _rtl92se_translate_rx_signal_stuff() 245 stats->icv = (u16)get_rx_status_desc_icv(pdesc); in rtl92se_rx_query_desc() 247 stats->hwerror = (u16)(stats->crc | stats->icv); in rtl92se_rx_query_desc()
|
| /linux/drivers/media/platform/via/ |
| H A D | via-camera.c | 299 int icv; in viacam_quick_irq() local 306 icv = viacam_read_reg(cam, VCR_INTCTRL); in viacam_quick_irq() 307 if (icv & VCR_IC_EAV) { in viacam_quick_irq() 308 icv |= VCR_IC_EAV|VCR_IC_EVBI|VCR_IC_FFULL; in viacam_quick_irq() 309 viacam_write_reg(cam, VCR_INTCTRL, icv); in viacam_quick_irq()
|
| /linux/include/uapi/linux/ |
| H A D | if_macsec.h | 39 /* upper limit for ICV length as recommended by IEEE802.1AE-2006 */
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
| H A D | trx.c | 217 (!pstatus->crc) && (!pstatus->icv)); in _rtl8723be_translate_rx_signal_stuff() 310 status->icv = (u16)get_rx_desc_icv(pdesc); in rtl8723be_rx_query_desc() 312 status->hwerror = (status->crc | status->icv); in rtl8723be_rx_query_desc()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
| H A D | trx.c | 299 (!pstatus->crc) && (!pstatus->icv)); in _rtl88ee_translate_rx_signal_stuff() 387 status->icv = (u16)get_rx_desc_icv(pdesc); in rtl88ee_rx_query_desc() 389 status->hwerror = (status->crc | status->icv); in rtl88ee_rx_query_desc()
|