Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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->tx_phase1_done = 1; in rtllib_tkip_encrypt()
303 *pos++ = Hi8(tkey->tx_iv16); in rtllib_tkip_encrypt()
304 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; in rtllib_tkip_encrypt()
[all …]
/OK3568_Linux_fs/kernel/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->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 …]
/OK3568_Linux_fs/kernel/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->tx_phase1_done = 1; in ieee80211_tkip_encrypt()
302 *pos++ = Hi8(tkey->tx_iv16); in ieee80211_tkip_encrypt()
303 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; in ieee80211_tkip_encrypt()
304 *pos++ = Lo8(tkey->tx_iv16); in ieee80211_tkip_encrypt()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/smac/
H A Dsec_tkip.c329 struct lib80211_tkip_data *tkey = priv; in lib80211_tkip_hdr() local
337 if (!tkey->tx_phase1_done) { in lib80211_tkip_hdr()
338 tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2, in lib80211_tkip_hdr()
339 tkey->tx_iv32); in lib80211_tkip_hdr()
340 tkey->tx_phase1_done = 1; in lib80211_tkip_hdr()
342 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); in lib80211_tkip_hdr()
349 *pos++ = (tkey->key_idx << 6) | (1 << 5) ; in lib80211_tkip_hdr()
350 *pos++ = tkey->tx_iv32 & 0xff; in lib80211_tkip_hdr()
351 *pos++ = (tkey->tx_iv32 >> 8) & 0xff; in lib80211_tkip_hdr()
352 *pos++ = (tkey->tx_iv32 >> 16) & 0xff; in lib80211_tkip_hdr()
[all …]
/OK3568_Linux_fs/kernel/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.tunnel_ttl = 64; in _l2_to_ip6tun_ingress_redirect()
197 tkey.remote_ipv6[0] = _htonl(0x2401db02); in _l2_to_ip6tun_ingress_redirect()
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/net/sched/
H A Dact_pedit.c342 struct tc_pedit_key *tkey = p->tcfp_keys; in tcf_pedit_act() local
348 for (i = p->tcfp_nkeys; i > 0; i--, tkey++) { in tcf_pedit_act()
350 int offset = tkey->off; in tcf_pedit_act()
369 if (tkey->offmask) { in tcf_pedit_act()
372 if (!offset_valid(skb, hoffset + tkey->at)) { in tcf_pedit_act()
374 hoffset + tkey->at); in tcf_pedit_act()
377 d = skb_header_pointer(skb, hoffset + tkey->at, in tcf_pedit_act()
381 offset += (*d & tkey->offmask) >> tkey->shift; in tcf_pedit_act()
402 val = tkey->val; in tcf_pedit_act()
405 val = (*ptr + tkey->val) & ~tkey->mask; in tcf_pedit_act()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
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.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()
/OK3568_Linux_fs/buildroot/package/matchbox-panel/
H A D0001-index-is-legacy.patch13 DBG("\tkey %s ", key);