• Home
  • Raw
  • Download

Lines Matching refs:data

94 	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;  in ieee80211_wep_add_iv()
124 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_wep_remove_iv()
128 memmove(skb->data + WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_remove_iv()
137 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_encrypt_data() argument
145 icv = cpu_to_le32(~crc32_le(~0, data, data_len)); in ieee80211_wep_encrypt_data()
146 put_unaligned(icv, (__le32 *)(data + data_len)); in ieee80211_wep_encrypt_data()
150 crypto_cipher_encrypt_one(tfm, data + i, data + i); in ieee80211_wep_encrypt_data()
175 len = skb->len - (iv + WEP_IV_LEN - skb->data); in ieee80211_wep_encrypt()
195 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_decrypt_data() argument
205 crypto_cipher_decrypt_one(tfm, data + i, data + i); in ieee80211_wep_decrypt_data()
207 crc = cpu_to_le32(~crc32_le(~0, data, data_len)); in ieee80211_wep_decrypt_data()
208 if (memcmp(&crc, data + data_len, WEP_ICV_LEN) != 0) in ieee80211_wep_decrypt_data()
231 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_wep_decrypt()
245 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_wep_decrypt()
253 memcpy(rc4key, skb->data + hdrlen, 3); in ieee80211_wep_decrypt()
259 skb->data + hdrlen + WEP_IV_LEN, in ieee80211_wep_decrypt()
267 memmove(skb->data + WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_decrypt()
277 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_wep_is_weak_iv()
283 ivpos = skb->data + hdrlen; in ieee80211_wep_is_weak_iv()
294 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ieee80211_crypto_wep_decrypt()