Lines Matching refs:pmk
165 if (wpa_sm_key_mgmt_set_pmk(sm, sm->pmk, sm->pmk_len)) in wpa_supplicant_key_mgmt_set_pmk()
202 sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk()
210 res = eapol_sm_get_key(sm->eapol, sm->pmk, PMK_LEN); in wpa_supplicant_get_pmk()
216 res = eapol_sm_get_key(sm->eapol, sm->pmk, 16); in wpa_supplicant_get_pmk()
232 "machines", sm->pmk, pmk_len); in wpa_supplicant_get_pmk()
239 sm->pmk, pmk_len, in wpa_supplicant_get_pmk()
416 return wpa_pmk_to_ptk(sm->pmk, sm->pmk_len, "Pairwise key expansion", in wpa_derive_ptk()
1239 sa = pmksa_cache_add(sm->pmksa, sm->pmk, sm->pmk_len, in wpa_supplicant_process_3_of_4()
2148 os_memcmp(sm->pmk, entry->pmk, sm->pmk_len) == 0)) { in wpa_sm_pmksa_free_cb()
2156 os_memset(sm->pmk, 0, sizeof(sm->pmk)); in wpa_sm_pmksa_free_cb()
2319 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, in wpa_sm_set_pmk() argument
2326 os_memcpy(sm->pmk, pmk, pmk_len); in wpa_sm_set_pmk()
2331 os_memcpy(sm->xxkey, pmk, pmk_len); in wpa_sm_set_pmk()
2335 pmksa_cache_add(sm->pmksa, pmk, pmk_len, NULL, 0, in wpa_sm_set_pmk()
2356 os_memcpy(sm->pmk, sm->cur_pmksa->pmk, sm->pmk_len); in wpa_sm_set_pmk_from_pmksa()
2359 os_memset(sm->pmk, 0, PMK_LEN); in wpa_sm_set_pmk_from_pmksa()
2784 os_memset(sm->pmk, 0, sizeof(sm->pmk)); in wpa_sm_drop_sa()