Home
last modified time | relevance | path

Searched refs:sae (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/contrib/wpa/src/common/
H A Dsae.c26 int sae_set_group(struct sae_data *sae, int group) in sae_set_group() argument
39 sae_clear_data(sae); in sae_set_group()
40 tmp = sae->tmp = os_zalloc(sizeof(*tmp)); in sae_set_group()
49 sae->group = group; in sae_set_group()
62 sae->group = group; in sae_set_group()
65 sae_clear_data(sae); in sae_set_group()
72 sae_clear_data(sae); in sae_set_group()
81 sae_clear_data(sae); in sae_set_group()
96 void sae_clear_temp_data(struct sae_data *sae) in sae_clear_temp_data() argument
99 if (sae == NULL || sae->tmp == NULL) in sae_clear_temp_data()
[all …]
H A Dsae.h126 int sae_set_group(struct sae_data *sae, int group);
127 void sae_clear_temp_data(struct sae_data *sae);
128 void sae_clear_data(struct sae_data *sae);
132 struct sae_data *sae);
133 int sae_prepare_commit_pt(struct sae_data *sae, const struct sae_pt *pt,
136 int sae_process_commit(struct sae_data *sae);
137 int sae_write_commit(struct sae_data *sae, struct wpabuf *buf,
139 u16 sae_parse_commit(struct sae_data *sae, const u8 *data, size_t len,
142 int sae_write_confirm(struct sae_data *sae, struct wpabuf *buf);
143 int sae_check_confirm(struct sae_data *sae, const u8 *data, size_t len,
[all …]
H A Dcommon_module_tests.c257 struct sae_data sae; in sae_tests() local
392 os_memset(&sae, 0, sizeof(sae)); in sae_tests()
395 sae_set_group(&sae, 19) < 0 || in sae_tests()
397 &sae) < 0) in sae_tests()
401 crypto_bignum_deinit(sae.tmp->sae_rand, 1); in sae_tests()
402 sae.tmp->sae_rand = crypto_bignum_init_set(local_rand, in sae_tests()
405 if (!sae.tmp->sae_rand || !mask) in sae_tests()
408 if (crypto_bignum_add(sae.tmp->sae_rand, mask, in sae_tests()
409 sae.tmp->own_commit_scalar) < 0 || in sae_tests()
410 crypto_bignum_mod(sae.tmp->own_commit_scalar, sae.tmp->order, in sae_tests()
[all …]
H A Dsae_pk.c359 int sae_pk_set_password(struct sae_data *sae, const char *password) in sae_pk_set_password() argument
361 struct sae_temporary_data *tmp = sae->tmp; in sae_pk_set_password()
545 static int sae_pk_hash_sig_data(struct sae_data *sae, size_t hash_len, in sae_pk_hash_sig_data() argument
549 struct sae_temporary_data *tmp = sae->tmp; in sae_pk_hash_sig_data()
571 sae->peer_commit_scalar, in sae_pk_hash_sig_data()
574 crypto_bignum_to_bin(ap ? sae->peer_commit_scalar : in sae_pk_hash_sig_data()
599 int sae_write_confirm_pk(struct sae_data *sae, struct wpabuf *buf) in sae_write_confirm_pk() argument
601 struct sae_temporary_data *tmp = sae->tmp; in sae_write_confirm_pk()
616 if (!sae->pk || !pk) in sae_write_confirm_pk()
644 if (sae_pk_hash_sig_data(sae, hash_len, true, wpabuf_head(pk->m), in sae_write_confirm_pk()
[all …]
H A DMakefile12 sae.o \
H A Ddpp.c3091 int dpp = 0, psk = 0, sae = 0, dot1x = 0; in dpp_akm_from_str() local
3119 sae = 1; in dpp_akm_from_str()
3130 if (dpp && psk && sae) in dpp_akm_from_str()
3132 if (dpp && sae) in dpp_akm_from_str()
3136 if (psk && sae) in dpp_akm_from_str()
3138 if (sae) in dpp_akm_from_str()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dmesh_rsn.c37 if (sta->sae->state != SAE_ACCEPTED) { in mesh_auth_timer()
55 sta->sae->state = SAE_NOTHING; in mesh_auth_timer()
93 if (!sta->sae || prev_psk) in auth_get_psk()
95 return sta->sae->pmk; in auth_get_psk()
314 struct sae_data *sae) in mesh_rsn_sae_group() argument
327 if (sae_set_group(sae, group) == 0) { in mesh_rsn_sae_group()
329 sae->group); in mesh_rsn_sae_group()
353 if (mesh_rsn_sae_group(wpa_s, sta->sae) < 0) { in mesh_rsn_build_sae_commit()
358 if (sta->sae->tmp && !sta->sae->tmp->pw_id && ssid->sae_password_id) { in mesh_rsn_build_sae_commit()
359 sta->sae->tmp->pw_id = os_strdup(ssid->sae_password_id); in mesh_rsn_build_sae_commit()
[all …]
H A Dsme.c76 sae_set_group(&wpa_s->sme.sae, group) == 0) { in sme_set_sae_group()
78 wpa_s->sme.sae.group); in sme_set_sae_group()
79 wpa_s->sme.sae.akmp = external ? in sme_set_sae_group()
170 if (reuse && wpa_s->sme.sae.tmp && in sme_auth_build_sae_commit()
171 ether_addr_equal(addr, wpa_s->sme.sae.tmp->bssid)) { in sme_auth_build_sae_commit()
174 use_pt = wpa_s->sme.sae.h2e; in sme_auth_build_sae_commit()
175 use_pk = wpa_s->sme.sae.pk; in sme_auth_build_sae_commit()
243 sae_prepare_commit_pt(&wpa_s->sme.sae, ssid->pt, in sme_auth_build_sae_commit()
250 &wpa_s->sme.sae) < 0) { in sme_auth_build_sae_commit()
254 if (wpa_s->sme.sae.tmp) { in sme_auth_build_sae_commit()
[all …]
H A Dmesh_mpm.c359 if (sta->sae == NULL) { in mesh_mpm_send_plink_action()
644 (sta->sae && sta->sae->state > SAE_NOTHING)) { in mesh_mpm_connect_peer()
1266 if (sta->sae && sta->sae->state != SAE_ACCEPTED) { in mesh_mpm_action_rx()
H A Dwpas_glue.c1330 wpa_s->sme.sae.state == SAE_ACCEPTED && in wpas_transition_disable()
1331 wpa_s->sme.sae.pk && in wpas_transition_disable()
H A Dwpa_supplicant_i.h1022 struct sae_data sae; member
H A Devents.c3380 if (wpa_s->sme.sae.state == SAE_ACCEPTED && wpa_s->sme.sae.h2e) in wpa_supplicant_event_associnfo()
/freebsd/contrib/wpa/src/pasn/
H A Dpasn_responder.c75 sae_clear_data(&pasn->sae); in pasn_wd_handle_sae_commit()
76 pasn->sae.state = SAE_NOTHING; in pasn_wd_handle_sae_commit()
78 ret = sae_set_group(&pasn->sae, pasn->group); in pasn_wd_handle_sae_commit()
89 ret = sae_prepare_commit_pt(&pasn->sae, pasn->pt, own_addr, peer_addr, in pasn_wd_handle_sae_commit()
96 res = sae_parse_commit(&pasn->sae, data + 6, buf_len - 6, NULL, 0, in pasn_wd_handle_sae_commit()
104 ret = sae_process_commit(&pasn->sae); in pasn_wd_handle_sae_commit()
110 pasn->sae.state = SAE_COMMITTED; in pasn_wd_handle_sae_commit()
147 res = sae_check_confirm(&pasn->sae, data + 6, buf_len - 6, NULL); in pasn_wd_handle_sae_confirm()
153 pasn->sae.state = SAE_ACCEPTED; in pasn_wd_handle_sae_confirm()
164 pasn->sae.pmk, pasn->sae.pmk_len); in pasn_wd_handle_sae_confirm()
[all …]
H A Dpasn_initiator.c44 ret = sae_set_group(&pasn->sae, pasn->group); in wpas_pasn_wd_sae_commit()
50 ret = sae_prepare_commit_pt(&pasn->sae, pasn->pt, in wpas_pasn_wd_sae_commit()
69 sae_write_commit(&pasn->sae, buf, NULL, 0); in wpas_pasn_wd_sae_commit()
70 pasn->sae.state = SAE_COMMITTED; in wpas_pasn_wd_sae_commit()
118 res = sae_parse_commit(&pasn->sae, data + 6, len - 6, NULL, 0, groups, in wpas_pasn_wd_sae_rx()
126 ret = sae_process_commit(&pasn->sae); in wpas_pasn_wd_sae_rx()
162 res = sae_check_confirm(&pasn->sae, data + 6, len - 6, NULL); in wpas_pasn_wd_sae_rx()
169 pasn->sae.state = SAE_ACCEPTED; in wpas_pasn_wd_sae_rx()
190 sae_write_confirm(&pasn->sae, buf); in wpas_pasn_wd_sae_confirm()
191 pasn->sae.state = SAE_CONFIRMED; in wpas_pasn_wd_sae_confirm()
[all …]
H A Dpasn_common.h90 struct sae_data sae; member
/freebsd/contrib/wpa/src/ap/
H A Dieee802_11.c544 sae_state_txt(sta->sae->state), sae_state_txt(state), in sae_set_state()
546 sta->sae->state = state; in sae_set_state()
622 if (sta->sae->tmp) { in auth_build_sae_commit()
623 rx_id = sta->sae->tmp->pw_id; in auth_build_sae_commit()
624 use_pt = sta->sae->h2e; in auth_build_sae_commit()
626 os_memcpy(sta->sae->tmp->own_addr, own_addr, ETH_ALEN); in auth_build_sae_commit()
627 os_memcpy(sta->sae->tmp->peer_addr, sta->addr, ETH_ALEN); in auth_build_sae_commit()
646 sae_prepare_commit_pt(sta->sae, pt, own_addr, sta->addr, in auth_build_sae_commit()
653 sta->sae) < 0) { in auth_build_sae_commit()
659 if (!sta->sae->tmp) { in auth_build_sae_commit()
[all …]
H A Dieee802_11_eht.c920 if (!sta->sae || sta->sae->state < SAE_COMMITTED || !sta->sae->tmp) { in sae_confirm_skip_fixed_fields()
921 if (sta->sae) in sae_confirm_skip_fixed_fields()
923 sta->sae->state); in sae_confirm_skip_fixed_fields()
930 sta->sae->tmp->kck_len); in sae_confirm_skip_fixed_fields()
932 pos += sta->sae->tmp->kck_len; in sae_confirm_skip_fixed_fields()
H A Dctrl_iface_ap.c308 if (sta->sae && sta->sae->state == SAE_ACCEPTED) { in hostapd_ctrl_iface_sta_mib()
310 sta->sae->group); in hostapd_ctrl_iface_sta_mib()
315 if (sta->sae && sta->sae->tmp) { in hostapd_ctrl_iface_sta_mib()
318 struct wpabuf *groups = sta->sae->tmp->peer_rejected_groups; in hostapd_ctrl_iface_sta_mib()
H A Dsta_info.h246 struct sae_data *sae; member
H A Ddpp_hostapd.c2420 bool sae = false, psk = false; in hostapd_dpp_pb_pkex_init() local
2480 sae = hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_SAE; in hostapd_dpp_pb_pkex_init()
2485 for (e = hapd->conf->sae_passwords; sae && e && !password; in hostapd_dpp_pb_pkex_init()
2506 if (conf_id > 0 && sae && psk && pass_hex) { in hostapd_dpp_pb_pkex_init()
2510 } else if (conf_id > 0 && sae && pass_hex) { in hostapd_dpp_pb_pkex_init()
2518 } if (sae && psk && pass_hex) { in hostapd_dpp_pb_pkex_init()
2522 } else if (sae && pass_hex) { in hostapd_dpp_pb_pkex_init()
H A Dwps_hostapd.c592 int sae = 0; in hapd_wps_cred_cb() local
610 sae = 1; in hapd_wps_cred_cb()
614 if (sae && hapd->conf->ieee80211w == NO_MGMT_FRAME_PROTECTION) { in hapd_wps_cred_cb()
619 if (sae) in hapd_wps_cred_cb()
H A Dsta_info.c174 sae_clear_data(&sta->pasn->sae); in ap_free_sta_pasn()
427 sae_clear_data(sta->sae); in ap_free_sta()
428 os_free(sta->sae); in ap_free_sta()
H A Dwpa_auth_glue.c360 if (!sta->sae || prev_psk) in hostapd_wpa_auth_get_psk()
363 *psk_len = sta->sae->pmk_len; in hostapd_wpa_auth_get_psk()
364 return sta->sae->pmk; in hostapd_wpa_auth_get_psk()
H A Ddrv_callbacks.c619 sta->sae && !sta->sae->h2e && in hostapd_notif_assoc()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrAVX512.td1965 "$cc, {sae}, $src2, $src1","$src1, $src2, {sae}, $cc",
2408 "$cc, {sae}, $src2, $src1",
2409 "$src1, $src2, {sae}, $cc",
5431 "{sae}, $src2, $src1", "$src1, $src2, {sae}",
5587 "{sae}, $src2, $src1", "$src1, $src2, {sae}",
7574 !strconcat(asm,"\t{{sae}, $src, $dst|$dst, $src, {sae}}"),
7587 def : InstAlias<asm # aliasStr # "\t{{sae}, $src, $dst|$dst, $src, {sae}}",
7662 "{sae}, $src2, $src1", "$src1, $src2, {sae}",
7838 "{sae}, $src", "$src, {sae}",
8946 "{sae}, $src", "$src, {sae}",
[all …]

12