Searched refs:tkey (Results 1 – 5 of 5) sorted by relevance
/linux-4.4.14/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 298 struct rtllib_tkip_data *tkey = priv; in rtllib_tkip_encrypt() local 304 struct blkcipher_desc desc = {.tfm = tkey->tx_tfm_arc4}; in rtllib_tkip_encrypt() 317 if (!tkey->tx_phase1_done) { in rtllib_tkip_encrypt() 318 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in rtllib_tkip_encrypt() 319 tkey->tx_iv32); in rtllib_tkip_encrypt() 320 tkey->tx_phase1_done = 1; in rtllib_tkip_encrypt() 322 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, in rtllib_tkip_encrypt() 323 tkey->tx_iv16); in rtllib_tkip_encrypt() 325 tkey->tx_phase1_done = 1; in rtllib_tkip_encrypt() 334 *pos++ = Hi8(tkey->tx_iv16); in rtllib_tkip_encrypt() [all …]
|
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 310 struct ieee80211_tkip_data *tkey = priv; in ieee80211_tkip_encrypt() local 315 struct blkcipher_desc desc = {.tfm = tkey->tx_tfm_arc4}; in ieee80211_tkip_encrypt() 328 if (!tkey->tx_phase1_done) { in ieee80211_tkip_encrypt() 329 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in ieee80211_tkip_encrypt() 330 tkey->tx_iv32); in ieee80211_tkip_encrypt() 331 tkey->tx_phase1_done = 1; in ieee80211_tkip_encrypt() 333 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in ieee80211_tkip_encrypt() 335 tkey->tx_phase1_done = 1; in ieee80211_tkip_encrypt() 344 *pos++ = Hi8(tkey->tx_iv16); in ieee80211_tkip_encrypt() 345 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; in ieee80211_tkip_encrypt() [all …]
|
/linux-4.4.14/net/wireless/ |
D | lib80211_crypt_tkip.c | 312 struct lib80211_tkip_data *tkey = priv; in lib80211_tkip_hdr() local 324 if (!tkey->tx_phase1_done) { in lib80211_tkip_hdr() 325 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in lib80211_tkip_hdr() 326 tkey->tx_iv32); in lib80211_tkip_hdr() 327 tkey->tx_phase1_done = 1; in lib80211_tkip_hdr() 329 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in lib80211_tkip_hdr() 338 *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */ ; in lib80211_tkip_hdr() 339 *pos++ = tkey->tx_iv32 & 0xff; in lib80211_tkip_hdr() 340 *pos++ = (tkey->tx_iv32 >> 8) & 0xff; in lib80211_tkip_hdr() 341 *pos++ = (tkey->tx_iv32 >> 16) & 0xff; in lib80211_tkip_hdr() [all …]
|
/linux-4.4.14/security/keys/encrypted-keys/ |
D | masterkey_trusted.c | 35 struct key *tkey; in request_trusted_key() local 37 tkey = request_key(&key_type_trusted, trusted_desc, NULL); in request_trusted_key() 38 if (IS_ERR(tkey)) in request_trusted_key() 41 down_read(&tkey->sem); in request_trusted_key() 42 tpayload = tkey->payload.data[0]; in request_trusted_key() 46 return tkey; in request_trusted_key()
|
/linux-4.4.14/net/sched/ |
D | act_pedit.c | 124 struct tc_pedit_key *tkey = p->tcfp_keys; in tcf_pedit() local 126 for (i = p->tcfp_nkeys; i > 0; i--, tkey++) { in tcf_pedit() 128 int offset = tkey->off; in tcf_pedit() 130 if (tkey->offmask) { in tcf_pedit() 133 d = skb_header_pointer(skb, off + tkey->at, 1, in tcf_pedit() 137 offset += (*d & tkey->offmask) >> tkey->shift; in tcf_pedit() 156 *ptr = ((*ptr & tkey->mask) ^ tkey->val); in tcf_pedit()
|