Lines Matching refs:hdr
314 struct ieee80211_hdr *hdr; in lib80211_tkip_hdr() local
316 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_tkip_hdr()
325 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in lib80211_tkip_hdr()
363 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in lib80211_tkip_encrypt() local
365 hdr->addr1); in lib80211_tkip_encrypt()
411 struct ieee80211_hdr *hdr; in lib80211_tkip_decrypt() local
417 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_tkip_decrypt()
421 hdr->addr2); in lib80211_tkip_decrypt()
432 hdr->addr2); in lib80211_tkip_decrypt()
443 hdr->addr2, keyidx); in lib80211_tkip_decrypt()
453 hdr->addr2, tkey->rx_iv32, tkey->rx_iv16, in lib80211_tkip_decrypt()
461 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in lib80211_tkip_decrypt()
472 hdr->addr2); in lib80211_tkip_decrypt()
489 hdr->addr2); in lib80211_tkip_decrypt()
508 static int michael_mic(struct crypto_hash *tfm_michael, u8 * key, u8 * hdr, in michael_mic() argument
519 sg_set_buf(&sg[0], hdr, 16); in michael_mic()
530 static void michael_mic_hdr(struct sk_buff *skb, u8 * hdr) in michael_mic_hdr() argument
539 memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */ in michael_mic_hdr()
540 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr()
543 memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */ in michael_mic_hdr()
544 memcpy(hdr + ETH_ALEN, hdr11->addr3, ETH_ALEN); /* SA */ in michael_mic_hdr()
547 memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */ in michael_mic_hdr()
548 memcpy(hdr + ETH_ALEN, hdr11->addr4, ETH_ALEN); /* SA */ in michael_mic_hdr()
551 memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */ in michael_mic_hdr()
552 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr()
557 hdr[12] = le16_to_cpu(*((__le16 *)ieee80211_get_qos_ctl(hdr11))) in michael_mic_hdr()
560 hdr[12] = 0; /* priority */ in michael_mic_hdr()
562 hdr[13] = hdr[14] = hdr[15] = 0; /* reserved */ in michael_mic_hdr()
588 struct ieee80211_hdr *hdr, in lib80211_michael_mic_failure() argument
597 if (hdr->addr1[0] & 0x01) in lib80211_michael_mic_failure()
602 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in lib80211_michael_mic_failure()
622 struct ieee80211_hdr *hdr; in lib80211_michael_mic_verify() local
623 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_michael_mic_verify()
626 skb->dev ? skb->dev->name : "N/A", hdr->addr2, in lib80211_michael_mic_verify()
629 lib80211_michael_mic_failure(skb->dev, hdr, keyidx); in lib80211_michael_mic_verify()