• Home
  • Raw
  • Download

Lines Matching refs:pmk

55 			  const u8 *pmk, unsigned int pmk_len,
851 const u8 *pmk = NULL; in wpa_try_alt_snonce() local
858 pmk = wpa_auth_get_psk(sm->wpa_auth, sm->addr, in wpa_try_alt_snonce()
859 sm->p2p_dev_addr, pmk, &pmk_len); in wpa_try_alt_snonce()
860 if (pmk == NULL) in wpa_try_alt_snonce()
863 pmk = sm->PMK; in wpa_try_alt_snonce()
867 if (wpa_derive_ptk(sm, sm->alt_SNonce, pmk, pmk_len, &PTK) < 0) in wpa_try_alt_snonce()
1935 os_memcpy(sm->PMK, sm->pmksa->pmk, sm->pmksa->pmk_len); in SM_STATE()
2010 os_memcpy(sm->PMK, sm->pmksa->pmk, sm->pmksa->pmk_len); in SM_STATE()
2074 const u8 *pmk, unsigned int pmk_len, in wpa_derive_ptk() argument
2079 return wpa_auth_derive_ptk_ft(sm, pmk, ptk); in wpa_derive_ptk()
2082 return wpa_pmk_to_ptk(pmk, pmk_len, "Pairwise key expansion", in wpa_derive_ptk()
2090 int fils_auth_pmk_to_ptk(struct wpa_state_machine *sm, const u8 *pmk, in fils_auth_pmk_to_ptk() argument
2101 res = fils_pmk_to_ptk(pmk, pmk_len, sm->addr, sm->wpa_auth->addr, in fils_auth_pmk_to_ptk()
2604 const u8 *pmk = NULL; in SM_STATE() local
2627 pmk = wpa_auth_get_psk(sm->wpa_auth, sm->addr, in SM_STATE()
2628 sm->p2p_dev_addr, pmk, &pmk_len); in SM_STATE()
2629 if (pmk == NULL) in SM_STATE()
2633 pmk = sm->PMK; in SM_STATE()
2637 if (wpa_derive_ptk(sm, sm->SNonce, pmk, pmk_len, &PTK) < 0) in SM_STATE()
2769 os_memcpy(sm->PMK, pmk, PMK_LEN); in SM_STATE()
3990 int wpa_auth_pmksa_add(struct wpa_state_machine *sm, const u8 *pmk, in wpa_auth_pmksa_add() argument
4005 if (pmksa_cache_auth_add(sm->wpa_auth->pmksa, pmk, pmk_len, NULL, in wpa_auth_pmksa_add()
4016 const u8 *pmk, size_t len, const u8 *sta_addr, in wpa_auth_pmksa_add_preauth() argument
4023 if (pmksa_cache_auth_add(wpa_auth->pmksa, pmk, len, NULL, in wpa_auth_pmksa_add_preauth()
4035 const u8 *pmk, const u8 *pmkid) in wpa_auth_pmksa_add_sae() argument
4040 if (pmksa_cache_auth_add(wpa_auth->pmksa, pmk, PMK_LEN, pmkid, in wpa_auth_pmksa_add_sae()
4051 const u8 *pmk, size_t pmk_len, const u8 *pmkid, in wpa_auth_pmksa_add2() argument
4057 if (pmksa_cache_auth_add(wpa_auth->pmksa, pmk, pmk_len, pmkid, in wpa_auth_pmksa_add2()
4112 wpa_auth_pmksa_create_entry(const u8 *aa, const u8 *spa, const u8 *pmk, in wpa_auth_pmksa_create_entry() argument
4118 entry = pmksa_cache_auth_create_entry(pmk, PMK_LEN, pmkid, NULL, 0, aa, in wpa_auth_pmksa_create_entry()
4163 u8 *pmkid, u8 *pmk) in wpa_auth_pmksa_set_to_sm() argument
4169 os_memcpy(pmk, pmksa->pmk, PMK_LEN); in wpa_auth_pmksa_set_to_sm()