Home
last modified time | relevance | path

Searched refs:icv (Results 1 – 5 of 5) sorted by relevance

/net/wireless/
Dlib80211_crypt_wep.c109 u8 *pos, *icv; in lib80211_wep_encrypt() local
132 icv = skb_put(skb, 4); in lib80211_wep_encrypt()
133 icv[0] = crc; in lib80211_wep_encrypt()
134 icv[1] = crc >> 8; in lib80211_wep_encrypt()
135 icv[2] = crc >> 16; in lib80211_wep_encrypt()
136 icv[3] = crc >> 24; in lib80211_wep_encrypt()
156 u8 keyidx, *pos, icv[4]; in lib80211_wep_decrypt() local
181 icv[0] = crc; in lib80211_wep_decrypt()
182 icv[1] = crc >> 8; in lib80211_wep_decrypt()
183 icv[2] = crc >> 16; in lib80211_wep_decrypt()
[all …]
Dlib80211_crypt_tkip.c331 u8 rc4key[16], *pos, *icv; in lib80211_tkip_encrypt() local
351 icv = skb_put(skb, 4); in lib80211_tkip_encrypt()
352 icv[0] = crc; in lib80211_tkip_encrypt()
353 icv[1] = crc >> 8; in lib80211_tkip_encrypt()
354 icv[2] = crc >> 16; in lib80211_tkip_encrypt()
355 icv[3] = crc >> 24; in lib80211_tkip_encrypt()
384 u8 icv[4]; in lib80211_tkip_decrypt() local
443 icv[0] = crc; in lib80211_tkip_decrypt()
444 icv[1] = crc >> 8; in lib80211_tkip_decrypt()
445 icv[2] = crc >> 16; in lib80211_tkip_decrypt()
[all …]
/net/ipv4/
Dah4.c56 u8 *icv) in ah_tmp_req() argument
60 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
122 u8 *icv; in ah_output_done() local
132 icv = ah_tmp_icv(ahp->ahash, iph, ihl); in ah_output_done()
133 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output_done()
152 u8 *icv; in ah_output() local
185 icv = ah_tmp_icv(ahash, seqhi, seqhi_len); in ah_output()
186 req = ah_tmp_req(ahash, icv); in ah_output()
234 ahash_request_set_crypt(req, sg, icv, skb->len + seqhi_len); in ah_output()
249 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output()
[all …]
/net/ipv6/
Dah6.c85 u8 *icv) in ah_tmp_req() argument
89 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
291 u8 *icv; in ah6_output_done() local
305 icv = ah_tmp_icv(ahp->ahash, iph_ext, extlen); in ah6_output_done()
307 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output_done()
328 u8 *icv; in ah6_output() local
368 icv = ah_tmp_icv(ahash, seqhi, seqhi_len); in ah6_output()
369 req = ah_tmp_req(ahash, icv); in ah6_output()
425 ahash_request_set_crypt(req, sg, icv, skb->len + seqhi_len); in ah6_output()
440 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output()
[all …]
/net/mac80211/
Dwep.c113 __le32 icv; in ieee80211_wep_encrypt_data() local
115 icv = cpu_to_le32(~crc32_le(~0, data, data_len)); in ieee80211_wep_encrypt_data()
116 put_unaligned(icv, (__le32 *)(data + data_len)); in ieee80211_wep_encrypt_data()