Home
last modified time | relevance | path

Searched refs:group_cipher (Results 1 – 25 of 47) sorted by relevance

12

/hostap-latest/wlantest/
Dbss.c283 bss->group_cipher = 0; in bss_update()
296 bss->group_cipher |= data.group_cipher; in bss_update()
311 bss->group_cipher |= data.group_cipher; in bss_update()
321 bss->group_cipher |= WPA_CIPHER_CCMP; in bss_update()
331 bss->group_cipher = WPA_CIPHER_WEP40; in bss_update()
354 bss->group_cipher == 0 ? "N/A " : "", in bss_update()
355 bss->group_cipher & WPA_CIPHER_NONE ? "NONE " : "", in bss_update()
356 bss->group_cipher & WPA_CIPHER_WEP40 ? "WEP40 " : "", in bss_update()
357 bss->group_cipher & WPA_CIPHER_WEP104 ? "WEP104 " : "", in bss_update()
358 bss->group_cipher & WPA_CIPHER_TKIP ? "TKIP " : "", in bss_update()
[all …]
Drx_data.c259 if (bss->group_cipher & (WPA_CIPHER_TKIP | WPA_CIPHER_CCMP) && in rx_data_bss_prot_group()
267 if (bss->group_cipher == WPA_CIPHER_TKIP) { in rx_data_bss_prot_group()
280 } else if (bss->group_cipher == WPA_CIPHER_CCMP) { in rx_data_bss_prot_group()
291 (bss->group_cipher != WPA_CIPHER_WEP40 || in rx_data_bss_prot_group()
293 decrypted = try_all_ptk(wt, bss->group_cipher, hdr, NULL, NULL, in rx_data_bss_prot_group()
304 if (bss->group_cipher == WPA_CIPHER_TKIP) in rx_data_bss_prot_group()
306 else if (bss->group_cipher == WPA_CIPHER_WEP40) in rx_data_bss_prot_group()
330 if (bss->group_cipher == WPA_CIPHER_TKIP) { in rx_data_bss_prot_group()
339 } else if (bss->group_cipher == WPA_CIPHER_WEP40) { in rx_data_bss_prot_group()
341 } else if (bss->group_cipher == WPA_CIPHER_CCMP) { in rx_data_bss_prot_group()
[all …]
Dsta.c229 if (sta->proto && data.group_cipher != bss->group_cipher && in sta_update_assoc()
233 MAC2STR(sta->addr), data.group_cipher, in sta_update_assoc()
234 MAC2STR(bss->bssid), bss->group_cipher); in sta_update_assoc()
Dwlantest.h74 int group_cipher; member
168 int group_cipher; member
Dinject.c138 if (bss->group_cipher == WPA_CIPHER_TKIP) in wlantest_inject_prot_bc()
/hostap-latest/src/rsn_supp/
Dwpa_ie.c49 int pairwise_cipher, int group_cipher, in wpa_gen_wpa_ie_wpa() argument
66 suite = wpa_cipher_to_suite(WPA_PROTO_WPA, group_cipher); in wpa_gen_wpa_ie_wpa()
69 group_cipher); in wpa_gen_wpa_ie_wpa()
137 int pairwise_cipher, int group_cipher, in wpa_gen_wpa_ie_rsn() argument
158 suite = wpa_cipher_to_suite(WPA_PROTO_RSN, group_cipher); in wpa_gen_wpa_ie_rsn()
161 group_cipher); in wpa_gen_wpa_ie_rsn()
287 int pairwise_cipher, int group_cipher, in wpa_gen_wpa_ie_osen() argument
305 suite = wpa_cipher_to_suite(WPA_PROTO_RSN, group_cipher); in wpa_gen_wpa_ie_osen()
308 group_cipher); in wpa_gen_wpa_ie_osen()
355 sm->group_cipher, in wpa_gen_wpa_ie()
[all …]
Dwpa_ft.c242 if (!wpa_cipher_valid_group(sm->group_cipher)) { in wpa_ft_gen_req_ies()
244 sm->group_cipher); in wpa_ft_gen_req_ies()
249 sm->group_cipher)); in wpa_ft_gen_req_ies()
841 keylen = wpa_cipher_key_len(sm->group_cipher); in wpa_ft_process_gtk_subelem()
842 rsc_len = wpa_cipher_rsc_len(sm->group_cipher); in wpa_ft_process_gtk_subelem()
843 alg = wpa_cipher_to_alg(sm->group_cipher); in wpa_ft_process_gtk_subelem()
846 sm->group_cipher); in wpa_ft_process_gtk_subelem()
867 if (sm->group_cipher == WPA_CIPHER_TKIP) { in wpa_ft_process_gtk_subelem()
Dwpa.c1171 wpa_cipher_txt(sm->group_cipher)); in wpa_supplicant_key_neg_complete()
1329 int group_cipher, in wpa_supplicant_check_group_cipher() argument
1336 *alg = wpa_cipher_to_alg(group_cipher); in wpa_supplicant_check_group_cipher()
1340 group_cipher); in wpa_supplicant_check_group_cipher()
1343 *key_rsc_len = wpa_cipher_rsc_len(group_cipher); in wpa_supplicant_check_group_cipher()
1345 klen = wpa_cipher_key_len(group_cipher); in wpa_supplicant_check_group_cipher()
1349 wpa_cipher_txt(group_cipher), keylen, maxkeylen); in wpa_supplicant_check_group_cipher()
1388 if (sm->group_cipher == WPA_CIPHER_TKIP) { in wpa_supplicant_install_gtk()
1459 if (sm->group_cipher == WPA_CIPHER_TKIP) { in wpa_supplicant_install_mlo_gtk()
1517 rsclen = wpa_cipher_rsc_len(sm->group_cipher); in wpa_supplicant_rsc_relaxation()
[all …]
/hostap-latest/tests/hwsim/
Dtest_ap_ciphers.py22 def check_cipher(dev, ap, cipher, group_cipher=None): argument
25 if group_cipher and group_cipher not in dev.get_capability("group"):
26 raise HwsimSkip("Cipher %s not supported" % group_cipher)
32 if group_cipher:
33 params["group_cipher"] = group_cipher
35 group_cipher = cipher
38 pairwise=cipher, group=group_cipher, scan_freq="2412")
Dtest_sae.py3056 run_sae_ext_key(dev, apdev, 21, cipher="GCMP-256", group_cipher="GCMP-256")
3058 def run_sae_ext_key(dev, apdev, group, cipher="CCMP", group_cipher="CCMP"): argument
3063 if group_cipher not in dev[0].get_capability("group"):
3064 raise HwsimSkip("Cipher %s not supported" % group_cipher)
3071 params['group_cipher'] = group_cipher
3081 pairwise=cipher, group=group_cipher,
Dhostapd.py922 group_cipher="CCMP", sae_pwe="1", passphrase=None): argument
927 params["group_cipher"] = group_cipher
/hostap-latest/wpa_supplicant/
Dmesh_rsn.c182 conf.wpa_group = rsn->group_cipher; in __mesh_rsn_auth_init()
226 wpa_drv_set_key(rsn->wpa_s, -1, wpa_cipher_to_alg(rsn->group_cipher), in __mesh_rsn_auth_init()
262 mesh_rsn->group_cipher = conf->group_cipher; in mesh_rsn_auth_init()
771 key_len = wpa_cipher_key_len(wpa_s->mesh_rsn->group_cipher); in mesh_rsn_process_ampe()
Dmesh.c119 cipher = wpa_pick_group_cipher(ssid->group_cipher); in mesh_config_create()
127 conf->group_cipher = cipher; in mesh_config_create()
278 wpa_s->group_cipher = wpa_s->mesh_rsn->group_cipher; in wpas_mesh_complete()
628 wpa_s->group_cipher = WPA_CIPHER_NONE; in wpa_supplicant_join_mesh()
Dwpa_supplicant.c186 switch (wpa_s->group_cipher) { in wpa_supplicant_set_wpa_none_key()
206 "WPA-None", wpa_s->group_cipher); in wpa_supplicant_set_wpa_none_key()
426 wpa_s->group_cipher = WPA_CIPHER_NONE; in wpa_supplicant_set_non_wpa_policy()
433 wpa_s->group_cipher = WPA_CIPHER_WEP104; in wpa_supplicant_set_non_wpa_policy()
437 wpa_s->group_cipher = WPA_CIPHER_WEP40; in wpa_supplicant_set_non_wpa_policy()
447 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher); in wpa_supplicant_set_non_wpa_policy()
1219 wpa_s->group_cipher = 0; in wpa_supplicant_clear_status()
1359 if (!(ie->group_cipher & ssid->group_cipher)) { in wpa_supplicant_suites_from_ai()
1362 ie->group_cipher, ssid->group_cipher); in wpa_supplicant_suites_from_ai()
1394 ie->group_cipher = wpa_default_rsn_cipher(freq); in matching_ciphers()
[all …]
Dwpas_glue.c251 wpa_s->group_cipher = cipher; in wpa_eapol_set_wep_key()
1312 ssid->group_cipher &= ~WPA_CIPHER_TKIP; in disable_wpa_wpa2()
1313 if (!(ssid->group_cipher & (WPA_CIPHER_CCMP | WPA_CIPHER_GCMP | in disable_wpa_wpa2()
1315 ssid->group_cipher |= WPA_CIPHER_CCMP; in disable_wpa_wpa2()
1336 (ssid->group_cipher & WPA_CIPHER_TKIP))) { in wpas_transition_disable()
1352 (ssid->group_cipher & WPA_CIPHER_TKIP))) { in wpas_transition_disable()
1368 (ssid->group_cipher & WPA_CIPHER_TKIP))) { in wpas_transition_disable()
Dmesh_rsn.h16 unsigned int group_cipher; member
Devents.c697 ie.group_cipher = wpa_default_rsn_cipher(bss->freq); in wpa_supplicant_ssid_bss_match()
704 ie.group_cipher &= ~(WPA_CIPHER_WEP40 | in wpa_supplicant_ssid_bss_match()
711 (ie.group_cipher & (WPA_CIPHER_WEP40 | WPA_CIPHER_WEP104))) in wpa_supplicant_ssid_bss_match()
735 if (!(ie.group_cipher & ssid->group_cipher)) { in wpa_supplicant_ssid_bss_match()
841 (ie.group_cipher & (WPA_CIPHER_WEP40 | WPA_CIPHER_WEP104))) in wpa_supplicant_ssid_bss_match()
864 if (!(ie.group_cipher & ssid->group_cipher)) { in wpa_supplicant_ssid_bss_match()
3318 sel = ie.group_cipher; in wpa_supplicant_use_own_rsne_params()
3319 if (ssid->group_cipher) in wpa_supplicant_use_own_rsne_params()
3320 sel &= ssid->group_cipher; in wpa_supplicant_use_own_rsne_params()
3324 ie.group_cipher, ssid->group_cipher, sel); in wpa_supplicant_use_own_rsne_params()
[all …]
Dconfig_winreg.c364 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_read_network()
371 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_read_network()
792 if (ssid->group_cipher == DEFAULT_GROUP) in write_group()
Dconfig_ssid.h293 int group_cipher; member
Dwps_supplicant.c316 (ssid->group_cipher != new_ssid->group_cipher && in wpas_wps_remove_dup_network()
317 !(ssid->group_cipher & new_ssid->group_cipher & in wpas_wps_remove_dup_network()
507 ssid->group_cipher |= WPA_CIPHER_GCMP; in wpa_supplicant_wps_cred()
512 ssid->group_cipher |= WPA_CIPHER_GCMP_256; in wpa_supplicant_wps_cred()
517 ssid->group_cipher |= WPA_CIPHER_CCMP_256; in wpa_supplicant_wps_cred()
Dconfig_file.c45 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network()
53 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_validate_network()
521 if (ssid->group_cipher == DEFAULT_GROUP) in write_group()
/hostap-latest/wpa_supplicant/wpa_gui-qt4/
Dwpagui.cpp536 char *pairwise_cipher = NULL, *group_cipher = NULL; in updateStatus() local
579 group_cipher = pos; in updateStatus()
592 if (pairwise_cipher || group_cipher) { in updateStatus()
594 if (pairwise_cipher && group_cipher && in updateStatus()
595 strcmp(pairwise_cipher, group_cipher) != 0) { in updateStatus()
598 encr.append(group_cipher); in updateStatus()
602 encr.append(group_cipher); in updateStatus()
/hostap-latest/src/ap/
Dwpa_auth_ie.c891 data.group_cipher = wpa_default_rsn_cipher(freq); in wpa_validate_wpa_ie()
978 data.group_cipher); in wpa_validate_wpa_ie()
999 data.group_cipher); in wpa_validate_wpa_ie()
1011 if (data.group_cipher != wpa_auth->conf.wpa_group) { in wpa_validate_wpa_ie()
1013 MACSTR, data.group_cipher, MAC2STR(sm->addr)); in wpa_validate_wpa_ie()
Dap_config.h54 unsigned int group_cipher; member
382 int group_cipher; /* wpa_group value override from configuation */ member
/hostap-latest/src/common/
Dwpa_common.c1865 data->group_cipher = WPA_CIPHER_CCMP; in wpa_parse_wpa_ie_rsn()
1889 data->group_cipher = WPA_CIPHER_GTK_NOT_USED; in wpa_parse_wpa_ie_rsn()
1919 data->group_cipher = rsn_selector_to_bitfield(pos); in wpa_parse_wpa_ie_rsn()
1921 if (!wpa_cipher_valid_group(data->group_cipher)) { in wpa_parse_wpa_ie_rsn()
1924 __func__, data->group_cipher, in wpa_parse_wpa_ie_rsn()
2074 data->group_cipher = WPA_CIPHER_TKIP; in wpa_parse_wpa_ie_wpa()
2102 data->group_cipher = wpa_selector_to_bitfield(pos); in wpa_parse_wpa_ie_wpa()
2894 ie1d.group_cipher == ie2d.group_cipher && in wpa_compare_rsn_ie()
4130 if (!data->has_group || data->group_cipher != WPA_CIPHER_GTK_NOT_USED) { in wpa_pasn_validate_rsne()

12