Home
last modified time | relevance | path

Searched refs:tkey (Results 1 – 2 of 2) sorted by relevance

/net/wireless/
Dlib80211_crypt_tkip.c286 struct lib80211_tkip_data *tkey = priv; in lib80211_tkip_hdr() local
298 if (!tkey->tx_phase1_done) { in lib80211_tkip_hdr()
299 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in lib80211_tkip_hdr()
300 tkey->tx_iv32); in lib80211_tkip_hdr()
301 tkey->tx_phase1_done = 1; in lib80211_tkip_hdr()
303 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in lib80211_tkip_hdr()
312 *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */ ; in lib80211_tkip_hdr()
313 *pos++ = tkey->tx_iv32 & 0xff; in lib80211_tkip_hdr()
314 *pos++ = (tkey->tx_iv32 >> 8) & 0xff; in lib80211_tkip_hdr()
315 *pos++ = (tkey->tx_iv32 >> 16) & 0xff; in lib80211_tkip_hdr()
[all …]
/net/sched/
Dact_pedit.c343 struct tc_pedit_key *tkey = p->tcfp_keys; in tcf_pedit_act() local
349 for (i = p->tcfp_nkeys; i > 0; i--, tkey++) { in tcf_pedit_act()
351 int offset = tkey->off; in tcf_pedit_act()
370 if (tkey->offmask) { in tcf_pedit_act()
373 if (!offset_valid(skb, hoffset + tkey->at)) { in tcf_pedit_act()
375 hoffset + tkey->at); in tcf_pedit_act()
378 d = skb_header_pointer(skb, hoffset + tkey->at, in tcf_pedit_act()
382 offset += (*d & tkey->offmask) >> tkey->shift; in tcf_pedit_act()
403 val = tkey->val; in tcf_pedit_act()
406 val = (*ptr + tkey->val) & ~tkey->mask; in tcf_pedit_act()
[all …]