Home
last modified time | relevance | path

Searched full:icv (Results 1 – 25 of 84) sorted by relevance

1234

/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_crypto_wep.c94 * 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 Dlibipw_tx.c50 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 Dwep.c107 * 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 Dah4.c53 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 Drt2x00crypto.c74 * 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 Drt2x00queue.h130 * @RXDONE_CRYPTO_ICV: Driver provided ICV data.
166 * @icv: ICV data used during decryption.
183 __le32 icv; member
H A Drt2800usb.h74 * CIPHER_ERROR: 0: decryption okay, 1:ICV error, 2:MIC error, 3:KEY not valid.
/linux/net/ipv6/
H A Dah6.c110 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 Dcaamalg_desc.c54 * @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 Dpdb.h95 * 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 Derror.c196 "ICV check failed.",
254 * CCB ICV check failures are part of normal operation life; in report_ccb_status()
/linux/drivers/crypto/ccree/
H A Dcc_aead.h70 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 Dcc_buffer_mgr.c699 /* 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 Dcrypto4xx_core.c548 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 Dpsp.yaml114 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 Dspu.h188 * 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 Dtrx.c303 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 Dtrx_common.c374 (!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 Dtrx.c241 (!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 Dtrx.c243 (!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 Dtrx.c220 (!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 Dvia-camera.c299 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 Dif_macsec.h39 /* upper limit for ICV length as recommended by IEEE802.1AE-2006 */
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dtrx.c217 (!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 Dtrx.c299 (!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()

1234