Home
last modified time | relevance | path

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

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dsae.c22 int sae_set_group(struct sae_data *sae, int group) in sae_set_group() argument
35 sae_clear_data(sae); in sae_set_group()
36 tmp = sae->tmp = os_zalloc(sizeof(*tmp)); in sae_set_group()
45 sae->group = group; in sae_set_group()
58 sae->group = group; in sae_set_group()
61 sae_clear_data(sae); in sae_set_group()
68 sae_clear_data(sae); in sae_set_group()
77 sae_clear_data(sae); in sae_set_group()
92 void sae_clear_temp_data(struct sae_data *sae) in sae_clear_temp_data() argument
95 if (sae == NULL || sae->tmp == NULL) in sae_clear_temp_data()
[all …]
Dcommon_module_tests.c256 struct sae_data sae; in sae_tests() local
342 os_memset(&sae, 0, sizeof(sae)); in sae_tests()
345 sae_set_group(&sae, 19) < 0 || in sae_tests()
347 pwid, &sae) < 0) in sae_tests()
351 crypto_bignum_deinit(sae.tmp->sae_rand, 1); in sae_tests()
352 sae.tmp->sae_rand = crypto_bignum_init_set(local_rand, in sae_tests()
355 if (!sae.tmp->sae_rand || !mask) in sae_tests()
358 if (crypto_bignum_add(sae.tmp->sae_rand, mask, in sae_tests()
359 sae.tmp->own_commit_scalar) < 0 || in sae_tests()
360 crypto_bignum_mod(sae.tmp->own_commit_scalar, sae.tmp->order, in sae_tests()
[all …]
Dsae.h64 int sae_set_group(struct sae_data *sae, int group);
65 void sae_clear_temp_data(struct sae_data *sae);
66 void sae_clear_data(struct sae_data *sae);
70 const char *identifier, struct sae_data *sae);
71 int sae_process_commit(struct sae_data *sae);
72 void sae_write_commit(struct sae_data *sae, struct wpabuf *buf,
74 u16 sae_parse_commit(struct sae_data *sae, const u8 *data, size_t len,
76 void sae_write_confirm(struct sae_data *sae, struct wpabuf *buf);
77 int sae_check_confirm(struct sae_data *sae, const u8 *data, size_t len);
78 u16 sae_group_allowed(struct sae_data *sae, int *allowed_groups, u16 group);
DMakefile22 sae.o \
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dsae.c24 int sae_set_group(struct sae_data *sae, int group) in sae_set_group() argument
37 sae_clear_data(sae); in sae_set_group()
38 tmp = sae->tmp = os_zalloc(sizeof(*tmp)); in sae_set_group()
47 sae->group = group; in sae_set_group()
60 sae->group = group; in sae_set_group()
63 sae_clear_data(sae); in sae_set_group()
70 sae_clear_data(sae); in sae_set_group()
79 sae_clear_data(sae); in sae_set_group()
94 void sae_clear_temp_data(struct sae_data *sae) in sae_clear_temp_data() argument
97 if (sae == NULL || sae->tmp == NULL) in sae_clear_temp_data()
[all …]
Dsae.h119 int sae_set_group(struct sae_data *sae, int group);
120 void sae_clear_temp_data(struct sae_data *sae);
121 void sae_clear_data(struct sae_data *sae);
125 struct sae_data *sae);
126 int sae_prepare_commit_pt(struct sae_data *sae, const struct sae_pt *pt,
129 int sae_process_commit(struct sae_data *sae);
130 int sae_write_commit(struct sae_data *sae, struct wpabuf *buf,
132 u16 sae_parse_commit(struct sae_data *sae, const u8 *data, size_t len,
135 int sae_write_confirm(struct sae_data *sae, struct wpabuf *buf);
136 int sae_check_confirm(struct sae_data *sae, const u8 *data, size_t len);
[all …]
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 …]
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 …]
DMakefile12 sae.o \
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
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()
296 struct sae_data *sae) in mesh_rsn_sae_group() argument
309 if (sae_set_group(sae, group) == 0) { in mesh_rsn_sae_group()
311 sae->group); in mesh_rsn_sae_group()
335 if (mesh_rsn_sae_group(wpa_s, sta->sae) < 0) { in mesh_rsn_build_sae_commit()
340 if (sta->sae->tmp && !sta->sae->tmp->pw_id && ssid->sae_password_id) { in mesh_rsn_build_sae_commit()
341 sta->sae->tmp->pw_id = os_strdup(ssid->sae_password_id); in mesh_rsn_build_sae_commit()
[all …]
Dsme.c74 if (sae_set_group(&wpa_s->sme.sae, group) == 0) { in sme_set_sae_group()
76 wpa_s->sme.sae.group); in sme_set_sae_group()
118 if (reuse && wpa_s->sme.sae.tmp && in sme_auth_build_sae_commit()
119 os_memcmp(bssid, wpa_s->sme.sae.tmp->bssid, ETH_ALEN) == 0) { in sme_auth_build_sae_commit()
132 &wpa_s->sme.sae) < 0) { in sme_auth_build_sae_commit()
136 if (wpa_s->sme.sae.tmp) in sme_auth_build_sae_commit()
137 os_memcpy(wpa_s->sme.sae.tmp->bssid, bssid, ETH_ALEN); in sme_auth_build_sae_commit()
150 sae_write_commit(&wpa_s->sme.sae, buf, wpa_s->sme.sae_token, in sme_auth_build_sae_commit()
170 sae_write_confirm(&wpa_s->sme.sae, buf); in sme_auth_build_sae_confirm()
667 wpa_s->sme.sae.state = start ? SAE_COMMITTED : SAE_CONFIRMED; in sme_send_authentication()
[all …]
Dmesh_mpm.c349 if (sta->sae == NULL) { in mesh_mpm_send_plink_action()
612 (sta->sae && sta->sae->state > SAE_NOTHING)) { in mesh_mpm_connect_peer()
1227 if (sta->sae && sta->sae->state != SAE_ACCEPTED) { in mesh_mpm_action_rx()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
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()
296 struct sae_data *sae) in mesh_rsn_sae_group() argument
309 if (sae_set_group(sae, group) == 0) { in mesh_rsn_sae_group()
311 sae->group); in mesh_rsn_sae_group()
335 if (mesh_rsn_sae_group(wpa_s, sta->sae) < 0) { in mesh_rsn_build_sae_commit()
340 if (sta->sae->tmp && !sta->sae->tmp->pw_id && ssid->sae_password_id) { in mesh_rsn_build_sae_commit()
341 sta->sae->tmp->pw_id = os_strdup(ssid->sae_password_id); in mesh_rsn_build_sae_commit()
[all …]
Dsme.c72 if (sae_set_group(&wpa_s->sme.sae, group) == 0) { in sme_set_sae_group()
74 wpa_s->sme.sae.group); in sme_set_sae_group()
126 if (reuse && wpa_s->sme.sae.tmp && in sme_auth_build_sae_commit()
127 os_memcmp(bssid, wpa_s->sme.sae.tmp->bssid, ETH_ALEN) == 0) { in sme_auth_build_sae_commit()
130 use_pt = wpa_s->sme.sae.h2e; in sme_auth_build_sae_commit()
131 use_pk = wpa_s->sme.sae.pk; in sme_auth_build_sae_commit()
187 sae_prepare_commit_pt(&wpa_s->sme.sae, ssid->pt, in sme_auth_build_sae_commit()
194 &wpa_s->sme.sae) < 0) { in sme_auth_build_sae_commit()
198 if (wpa_s->sme.sae.tmp) { in sme_auth_build_sae_commit()
199 os_memcpy(wpa_s->sme.sae.tmp->bssid, bssid, ETH_ALEN); in sme_auth_build_sae_commit()
[all …]
Dpasn_supplicant.c107 ret = sae_set_group(&pasn->sae, pasn->group); in wpas_pasn_wd_sae_commit()
113 ret = sae_prepare_commit_pt(&pasn->sae, pasn->ssid->pt, in wpas_pasn_wd_sae_commit()
132 sae_write_commit(&pasn->sae, buf, NULL, 0); in wpas_pasn_wd_sae_commit()
133 pasn->sae.state = SAE_COMMITTED; in wpas_pasn_wd_sae_commit()
182 res = sae_parse_commit(&pasn->sae, data + 6, len - 6, NULL, 0, groups, in wpas_pasn_wd_sae_rx()
190 ret = sae_process_commit(&pasn->sae); in wpas_pasn_wd_sae_rx()
226 res = sae_check_confirm(&pasn->sae, data + 6, len - 6); in wpas_pasn_wd_sae_rx()
233 pasn->sae.state = SAE_ACCEPTED; in wpas_pasn_wd_sae_rx()
255 sae_write_confirm(&pasn->sae, buf); in wpas_pasn_wd_sae_confirm()
256 pasn->sae.state = SAE_CONFIRMED; in wpas_pasn_wd_sae_confirm()
[all …]
Dmesh_mpm.c351 if (sta->sae == NULL) { in mesh_mpm_send_plink_action()
618 (sta->sae && sta->sae->state > SAE_NOTHING)) { in mesh_mpm_connect_peer()
1235 if (sta->sae && sta->sae->state != SAE_ACCEPTED) { in mesh_mpm_action_rx()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dieee802_11.c484 sae_state_txt(sta->sae->state), sae_state_txt(state), in sae_set_state()
486 sta->sae->state = state; in sae_set_state()
545 if (sta->sae->tmp) { in auth_build_sae_commit()
546 rx_id = sta->sae->tmp->pw_id; in auth_build_sae_commit()
547 use_pt = sta->sae->h2e; in auth_build_sae_commit()
549 os_memcpy(sta->sae->tmp->own_addr, hapd->own_addr, ETH_ALEN); in auth_build_sae_commit()
550 os_memcpy(sta->sae->tmp->peer_addr, sta->addr, ETH_ALEN); in auth_build_sae_commit()
569 sae_prepare_commit_pt(sta->sae, pt, hapd->own_addr, sta->addr, in auth_build_sae_commit()
576 sta->sae) < 0) { in auth_build_sae_commit()
582 if (!sta->sae->tmp) { in auth_build_sae_commit()
[all …]
Dctrl_iface_ap.c278 if (sta->sae && sta->sae->state == SAE_ACCEPTED) { in hostapd_ctrl_iface_sta_mib()
280 sta->sae->group); in hostapd_ctrl_iface_sta_mib()
285 if (sta->sae && sta->sae->tmp) { in hostapd_ctrl_iface_sta_mib()
288 struct wpabuf *groups = sta->sae->tmp->peer_rejected_groups; in hostapd_ctrl_iface_sta_mib()
Dsta_info.h99 struct sae_data sae; member
249 struct sae_data *sae; member
Dsta_info.c174 sae_clear_data(&sta->pasn->sae); in ap_free_sta_pasn()
370 sae_clear_data(sta->sae); in ap_free_sta()
371 os_free(sta->sae); in ap_free_sta()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dieee802_11.c384 sae_state_txt(sta->sae->state), sae_state_txt(state), in sae_set_state()
386 sta->sae->state = state; in sae_set_state()
398 if (sta->sae->tmp) in auth_build_sae_commit()
399 rx_id = sta->sae->tmp->pw_id; in auth_build_sae_commit()
423 sta->sae) < 0) { in auth_build_sae_commit()
429 if (!sta->sae->tmp) { in auth_build_sae_commit()
434 sta->sae->tmp->vlan_id = pw->vlan_id; in auth_build_sae_commit()
441 sae_write_commit(sta->sae, buf, sta->sae->tmp ? in auth_build_sae_commit()
442 sta->sae->tmp->anti_clogging_token : NULL, rx_id); in auth_build_sae_commit()
457 sae_write_confirm(sta->sae, buf); in auth_build_sae_confirm()
[all …]
Dctrl_iface_ap.c270 if (sta->sae && sta->sae->state == SAE_ACCEPTED) { in hostapd_ctrl_iface_sta_mib()
272 sta->sae->group); in hostapd_ctrl_iface_sta_mib()
Dsta_info.h208 struct sae_data *sae; member
Dwps_hostapd.c537 int sae = 0; in hapd_wps_cred_cb() local
557 sae = 1; in hapd_wps_cred_cb()
563 if (sae && hapd->conf->ieee80211w == NO_MGMT_FRAME_PROTECTION) { in hapd_wps_cred_cb()
568 if (sae) in hapd_wps_cred_cb()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/
DBUILD.gn228 #sae
229 "$WPA_ROOT_DIR/src/common/sae.c",

12