Lines Matching refs:sae
37 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()
360 if (!sta->sae->tmp->pw_id) in mesh_rsn_build_sae_commit()
365 sta->sae); in mesh_rsn_build_sae_commit()
385 if (!sta->sae) { in mesh_rsn_auth_sae_sta()
386 sta->sae = os_zalloc(sizeof(*sta->sae)); in mesh_rsn_auth_sae_sta()
387 if (sta->sae == NULL) in mesh_rsn_auth_sae_sta()
407 sta->sae->pmkid, sta->sae->pmk, in mesh_rsn_auth_sae_sta()
408 &sta->sae->pmk_len); in mesh_rsn_auth_sae_sta()
436 os_memcpy(pmkid, sta->sae->pmkid, SAE_PMKID_LEN); in mesh_rsn_get_pmkid()
467 sha256_prf(sta->sae->pmk, sizeof(sta->sae->pmk), "AEK Derivation", in mesh_rsn_derive_aek()
528 sha256_prf(sta->sae->pmk, SAE_PMK_LEN, in mesh_rsn_derive_mtk()
663 if (!sta->sae) { in mesh_rsn_process_ampe()
675 (!sta->sae || in mesh_rsn_process_ampe()
676 os_memcmp(chosen_pmk, sta->sae->pmkid, PMKID_LEN) != 0)) { in mesh_rsn_process_ampe()