Home
last modified time | relevance | path

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

123

/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
129 icv = ah_tmp_icv(iph, ihl); in ah_output_done()
130 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output_done()
149 u8 *icv; in ah_output() local
182 icv = ah_tmp_icv(seqhi, seqhi_len); in ah_output()
183 req = ah_tmp_req(ahash, icv); in ah_output()
231 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.
H A Drt73usb.h997 * CIPHER_ERROR: 1:ICV error, 2:MIC error, 3:invalid key.
1037 * ICV: Received ICV of originally encrypted.
/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/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/staging/rtl8723bs/core/
H A Drtw_security.c35 { /* exclude ICV */ in rtw_wep_encrypt()
94 /* exclude ICV */ in rtw_wep_decrypt()
119 /* decrypt payload include icv */ in rtw_wep_decrypt()
123 /* calculate icv and compare the icv */ in rtw_wep_decrypt()
451 { /* exclude ICV */ in rtw_tkip_encrypt()
527 { /* exclude ICV */ in rtw_tkip_decrypt()
608 /* 4 decrypt payload include icv */ in rtw_tkip_decrypt()
972 { /* exclude ICV */ in rtw_aes_encrypt()
1222 { /* exclude ICV */ in rtw_aes_decrypt()
/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/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()
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dxmit.c234 /* Hardware appends ICV. */ in generate_txhdr_fw3()
512 /* Remove the ICV */ in b43legacy_rx()
/linux/net/ipv6/
H A Dreassembly.c23 * calculate ICV correctly.
284 * header in order to calculate ICV correctly. */ in ip6_frag_reasm()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Dtrx.c245 (!pstatus->icv)); in _rtl92ee_translate_rx_signal_stuff()
347 status->icv = (u16)get_rx_desc_icv(pdesc); in rtl92ee_rx_query_desc()
349 status->hwerror = (status->crc | status->icv); in rtl92ee_rx_query_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dtrx.c304 (!pstatus->crc) && (!pstatus->icv)); in translate_rx_signal_stuff()
447 status->icv = (u16)get_rx_desc_icv(pdesc); in rtl8821ae_rx_query_desc()
449 status->hwerror = (status->crc | status->icv); in rtl8821ae_rx_query_desc()

123