/Linux-v4.19/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 289 struct rtllib_tkip_data *tkey = priv; in rtllib_tkip_encrypt() local 307 if (!tkey->tx_phase1_done) { in rtllib_tkip_encrypt() 308 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in rtllib_tkip_encrypt() 309 tkey->tx_iv32); in rtllib_tkip_encrypt() 310 tkey->tx_phase1_done = 1; in rtllib_tkip_encrypt() 312 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, in rtllib_tkip_encrypt() 313 tkey->tx_iv16); in rtllib_tkip_encrypt() 315 tkey->tx_phase1_done = 1; in rtllib_tkip_encrypt() 324 *pos++ = Hi8(tkey->tx_iv16); in rtllib_tkip_encrypt() 325 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; in rtllib_tkip_encrypt() [all …]
|
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 294 struct ieee80211_tkip_data *tkey = priv; in ieee80211_tkip_encrypt() local 311 if (!tkey->tx_phase1_done) { in ieee80211_tkip_encrypt() 312 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in ieee80211_tkip_encrypt() 313 tkey->tx_iv32); in ieee80211_tkip_encrypt() 314 tkey->tx_phase1_done = 1; in ieee80211_tkip_encrypt() 316 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in ieee80211_tkip_encrypt() 318 tkey->tx_phase1_done = 1; in ieee80211_tkip_encrypt() 327 *pos++ = Hi8(tkey->tx_iv16); in ieee80211_tkip_encrypt() 328 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; in ieee80211_tkip_encrypt() 329 *pos++ = Lo8(tkey->tx_iv16); in ieee80211_tkip_encrypt() [all …]
|
/Linux-v4.19/net/wireless/ |
D | lib80211_crypt_tkip.c | 303 struct lib80211_tkip_data *tkey = priv; in lib80211_tkip_hdr() local 315 if (!tkey->tx_phase1_done) { in lib80211_tkip_hdr() 316 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in lib80211_tkip_hdr() 317 tkey->tx_iv32); in lib80211_tkip_hdr() 318 tkey->tx_phase1_done = 1; in lib80211_tkip_hdr() 320 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in lib80211_tkip_hdr() 329 *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */ ; in lib80211_tkip_hdr() 330 *pos++ = tkey->tx_iv32 & 0xff; in lib80211_tkip_hdr() 331 *pos++ = (tkey->tx_iv32 >> 8) & 0xff; in lib80211_tkip_hdr() 332 *pos++ = (tkey->tx_iv32 >> 16) & 0xff; in lib80211_tkip_hdr() [all …]
|
/Linux-v4.19/samples/bpf/ |
D | tc_l2_redirect_kern.c | 61 struct bpf_tunnel_key tkey = {}; in _l2_to_iptun_ingress_forward() local 112 struct bpf_tunnel_key tkey = {}; in _l2_to_iptun_ingress_redirect() local 143 tkey.tunnel_id = 10000; in _l2_to_iptun_ingress_redirect() 144 tkey.tunnel_ttl = 64; in _l2_to_iptun_ingress_redirect() 145 tkey.remote_ipv4 = 0x0a020166; /* 10.2.1.102 */ in _l2_to_iptun_ingress_redirect() 146 bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), 0); in _l2_to_iptun_ingress_redirect() 153 struct bpf_tunnel_key tkey = {}; in _l2_to_ip6tun_ingress_redirect() local 194 tkey.tunnel_id = 10000; in _l2_to_ip6tun_ingress_redirect() 195 tkey.tunnel_ttl = 64; in _l2_to_ip6tun_ingress_redirect() 197 tkey.remote_ipv6[0] = _htonl(0x2401db02); in _l2_to_ip6tun_ingress_redirect() [all …]
|
/Linux-v4.19/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-v4.19/net/sched/ |
D | act_pedit.c | 310 struct tc_pedit_key *tkey = p->tcfp_keys; in tcf_pedit_act() local 316 for (i = p->tcfp_nkeys; i > 0; i--, tkey++) { in tcf_pedit_act() 318 int offset = tkey->off; in tcf_pedit_act() 337 if (tkey->offmask) { in tcf_pedit_act() 340 if (!offset_valid(skb, hoffset + tkey->at)) { in tcf_pedit_act() 342 hoffset + tkey->at); in tcf_pedit_act() 345 d = skb_header_pointer(skb, hoffset + tkey->at, in tcf_pedit_act() 349 offset += (*d & tkey->offmask) >> tkey->shift; in tcf_pedit_act() 370 val = tkey->val; in tcf_pedit_act() 373 val = (*ptr + tkey->val) & ~tkey->mask; in tcf_pedit_act() [all …]
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_l4lb.c | 330 struct bpf_tunnel_key tkey = {}; in process_packet() local 348 tkey.tunnel_ttl = 64; in process_packet() 433 memcpy(tkey.remote_ipv6, dst->dstv6, 16); in process_packet() 440 tkey.remote_ipv4 = dst->dst; in process_packet() 448 bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); in process_packet() 449 *(u32 *)eth->eth_dest = tkey.remote_ipv4; in process_packet()
|
D | test_l4lb_noinline.c | 330 struct bpf_tunnel_key tkey = {}; in process_packet() local 348 tkey.tunnel_ttl = 64; in process_packet() 433 memcpy(tkey.remote_ipv6, dst->dstv6, 16); in process_packet() 440 tkey.remote_ipv4 = dst->dst; in process_packet() 448 bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); in process_packet() 449 *(u32 *)eth->eth_dest = tkey.remote_ipv4; in process_packet()
|