Home
last modified time | relevance | path

Searched refs:tkey (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/drivers/staging/rtl8192e/
H A Drtllib_crypt_tkip.c269 struct rtllib_tkip_data *tkey = priv; in rtllib_tkip_encrypt() local
286 if (!tkey->tx_phase1_done) { in rtllib_tkip_encrypt()
287 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in rtllib_tkip_encrypt()
288 tkey->tx_iv32); in rtllib_tkip_encrypt()
289 tkey->tx_phase1_done = 1; in rtllib_tkip_encrypt()
291 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, in rtllib_tkip_encrypt()
292 tkey->tx_iv16); in rtllib_tkip_encrypt()
294 tkey in rtllib_tkip_encrypt()
345 struct rtllib_tkip_data *tkey = priv; rtllib_tkip_decrypt() local
517 struct rtllib_tkip_data *tkey = priv; rtllib_michael_mic_add() local
567 struct rtllib_tkip_data *tkey = priv; rtllib_michael_mic_verify() local
615 struct rtllib_tkip_data *tkey = priv; rtllib_tkip_set_key() local
646 struct rtllib_tkip_data *tkey = priv; rtllib_tkip_get_key() local
[all...]
/kernel/linux/linux-6.6/drivers/staging/rtl8192e/
H A Drtllib_crypt_tkip.c255 struct rtllib_tkip_data *tkey = priv; in rtllib_tkip_encrypt() local
272 if (!tkey->tx_phase1_done) { in rtllib_tkip_encrypt()
273 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in rtllib_tkip_encrypt()
274 tkey->tx_iv32); in rtllib_tkip_encrypt()
275 tkey->tx_phase1_done = 1; in rtllib_tkip_encrypt()
277 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, in rtllib_tkip_encrypt()
278 tkey->tx_iv16); in rtllib_tkip_encrypt()
280 tkey in rtllib_tkip_encrypt()
329 struct rtllib_tkip_data *tkey = priv; rtllib_tkip_decrypt() local
502 struct rtllib_tkip_data *tkey = priv; rtllib_michael_mic_add() local
551 struct rtllib_tkip_data *tkey = priv; rtllib_michael_mic_verify() local
598 struct rtllib_tkip_data *tkey = priv; rtllib_tkip_set_key() local
629 struct rtllib_tkip_data *tkey = priv; rtllib_tkip_get_key() local
[all...]
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_tkip.c271 struct ieee80211_tkip_data *tkey = priv; in ieee80211_tkip_encrypt() local
286 if (!tkey->tx_phase1_done) { in ieee80211_tkip_encrypt()
287 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in ieee80211_tkip_encrypt()
288 tkey->tx_iv32); in ieee80211_tkip_encrypt()
289 tkey->tx_phase1_done = 1; in ieee80211_tkip_encrypt()
291 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in ieee80211_tkip_encrypt()
293 tkey in ieee80211_tkip_encrypt()
340 struct ieee80211_tkip_data *tkey = priv; ieee80211_tkip_decrypt() local
506 struct ieee80211_tkip_data *tkey = priv; ieee80211_michael_mic_add() local
559 struct ieee80211_tkip_data *tkey = priv; ieee80211_michael_mic_verify() local
606 struct ieee80211_tkip_data *tkey = priv; ieee80211_tkip_set_key() local
637 struct ieee80211_tkip_data *tkey = priv; ieee80211_tkip_get_key() local
[all...]
/kernel/linux/linux-5.10/net/wireless/
H A 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 in lib80211_tkip_hdr()
329 struct lib80211_tkip_data *tkey = priv; lib80211_tkip_encrypt() local
378 struct lib80211_tkip_data *tkey = priv; lib80211_tkip_decrypt() local
544 struct lib80211_tkip_data *tkey = priv; lib80211_michael_mic_add() local
587 struct lib80211_tkip_data *tkey = priv; lib80211_michael_mic_verify() local
622 struct lib80211_tkip_data *tkey = priv; lib80211_tkip_set_key() local
655 struct lib80211_tkip_data *tkey = priv; lib80211_tkip_get_key() local
[all...]
/kernel/linux/linux-6.6/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_tkip.c271 struct ieee80211_tkip_data *tkey = priv; in ieee80211_tkip_encrypt() local
286 if (!tkey->tx_phase1_done) { in ieee80211_tkip_encrypt()
287 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in ieee80211_tkip_encrypt()
288 tkey->tx_iv32); in ieee80211_tkip_encrypt()
289 tkey->tx_phase1_done = 1; in ieee80211_tkip_encrypt()
291 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in ieee80211_tkip_encrypt()
293 tkey in ieee80211_tkip_encrypt()
340 struct ieee80211_tkip_data *tkey = priv; ieee80211_tkip_decrypt() local
506 struct ieee80211_tkip_data *tkey = priv; ieee80211_michael_mic_add() local
559 struct ieee80211_tkip_data *tkey = priv; ieee80211_michael_mic_verify() local
606 struct ieee80211_tkip_data *tkey = priv; ieee80211_tkip_set_key() local
637 struct ieee80211_tkip_data *tkey = priv; ieee80211_tkip_get_key() local
[all...]
/kernel/linux/linux-6.6/net/wireless/
H A 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 in lib80211_tkip_hdr()
329 struct lib80211_tkip_data *tkey = priv; lib80211_tkip_encrypt() local
378 struct lib80211_tkip_data *tkey = priv; lib80211_tkip_decrypt() local
544 struct lib80211_tkip_data *tkey = priv; lib80211_michael_mic_add() local
587 struct lib80211_tkip_data *tkey = priv; lib80211_michael_mic_verify() local
622 struct lib80211_tkip_data *tkey = priv; lib80211_tkip_set_key() local
655 struct lib80211_tkip_data *tkey = priv; lib80211_tkip_get_key() local
[all...]
/kernel/linux/linux-5.10/samples/bpf/
H A Dtc_l2_redirect_kern.c61 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 in _l2_to_ip6tun_ingress_redirect()
208 struct bpf_tunnel_key tkey = {}; _drop_non_tun_vip() local
[all...]
/kernel/linux/linux-6.6/samples/bpf/
H A Dtc_l2_redirect_kern.c61 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 in _l2_to_ip6tun_ingress_redirect()
208 struct bpf_tunnel_key tkey = {}; _drop_non_tun_vip() local
[all...]
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
H A Dmasterkey_trusted.c31 struct key *tkey; in request_trusted_key() local
33 tkey = request_key(&key_type_trusted, trusted_desc, NULL); in request_trusted_key()
34 if (IS_ERR(tkey)) in request_trusted_key()
37 down_read(&tkey->sem); in request_trusted_key()
38 tpayload = tkey->payload.data[0]; in request_trusted_key()
42 return tkey; in request_trusted_key()
/kernel/linux/linux-6.6/security/keys/encrypted-keys/
H A Dmasterkey_trusted.c31 struct key *tkey; in request_trusted_key() local
33 tkey = request_key(&key_type_trusted, trusted_desc, NULL); in request_trusted_key()
34 if (IS_ERR(tkey)) in request_trusted_key()
37 down_read(&tkey->sem); in request_trusted_key()
38 tpayload = tkey->payload.data[0]; in request_trusted_key()
42 return tkey; in request_trusted_key()
/kernel/linux/linux-5.10/net/sched/
H A 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 in tcf_pedit_act()
[all...]
/kernel/linux/linux-6.6/net/sched/
H A Dact_pedit.c395 struct tc_pedit_key *tkey; in tcf_pedit_act() local
411 tkey = parms->tcfp_keys; in tcf_pedit_act()
414 for (i = parms->tcfp_nkeys; i > 0; i--, tkey++) { in tcf_pedit_act()
415 int offset = tkey->off; in tcf_pedit_act()
434 if (tkey->offmask) { in tcf_pedit_act()
437 if (!offset_valid(skb, hoffset + tkey->at)) { in tcf_pedit_act()
439 hoffset + tkey->at); in tcf_pedit_act()
442 d = skb_header_pointer(skb, hoffset + tkey->at, in tcf_pedit_act()
447 offset += (*d & tkey->offmask) >> tkey in tcf_pedit_act()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb.c330 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()
H A Dtest_l4lb_noinline.c327 struct bpf_tunnel_key tkey = {}; in process_packet() local
345 tkey.tunnel_ttl = 64; in process_packet()
430 memcpy(tkey.remote_ipv6, dst->dstv6, 16); in process_packet()
437 tkey.remote_ipv4 = dst->dst; in process_packet()
445 bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); in process_packet()
446 *(u32 *)eth->eth_dest = tkey.remote_ipv4; in process_packet()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb_noinline_dynptr.c332 struct bpf_tunnel_key tkey = {}; in process_packet() local
350 tkey.tunnel_ttl = 64; in process_packet()
437 memcpy(tkey.remote_ipv6, dst->dstv6, 16); in process_packet()
444 tkey.remote_ipv4 = dst->dst; in process_packet()
452 bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); in process_packet()
453 *(u32 *)eth->eth_dest = tkey.remote_ipv4; in process_packet()
H A Dtest_l4lb_noinline.c327 struct bpf_tunnel_key tkey = {}; in process_packet() local
345 tkey.tunnel_ttl = 64; in process_packet()
430 memcpy(tkey.remote_ipv6, dst->dstv6, 16); in process_packet()
437 tkey.remote_ipv4 = dst->dst; in process_packet()
445 bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); in process_packet()
446 *(u32 *)eth->eth_dest = tkey.remote_ipv4; in process_packet()
H A Dtest_l4lb.c328 struct bpf_tunnel_key tkey = {}; in process_packet() local
346 tkey.tunnel_ttl = 64; in process_packet()
431 memcpy(tkey.remote_ipv6, dst->dstv6, 16); in process_packet()
438 tkey.remote_ipv4 = dst->dst; in process_packet()
446 bpf_skb_set_tunnel_key(skb, &tkey, sizeof(tkey), tun_flag); in process_packet()
447 *(u32 *)eth->eth_dest = tkey.remote_ipv4; in process_packet()

Completed in 12 milliseconds