Home
last modified time | relevance | path

Searched refs:pmkid (Results 1 – 25 of 39) sorted by relevance

12

/external/wpa_supplicant_8/src/ap/
Dpmksa_cache_auth.c26 #define PMKID_HASH(pmkid) (unsigned int) ((pmkid)[0] & 0x7f) argument
27 struct rsn_pmksa_cache_entry *pmkid[PMKID_HASH_SIZE]; member
61 hash = PMKID_HASH(entry->pmkid); in pmksa_cache_free_entry()
62 pos = pmksa->pmkid[hash]; in pmksa_cache_free_entry()
69 pmksa->pmkid[hash] = entry->hnext; in pmksa_cache_free_entry()
245 hash = PMKID_HASH(entry->pmkid); in pmksa_cache_link_entry()
246 entry->hnext = pmksa->pmkid[hash]; in pmksa_cache_link_entry()
247 pmksa->pmkid[hash] = entry; in pmksa_cache_link_entry()
254 wpa_hexdump(MSG_DEBUG, "RSN: added PMKID", entry->pmkid, PMKID_LEN); in pmksa_cache_link_entry()
280 const u8 *pmk, size_t pmk_len, const u8 *pmkid, in pmksa_cache_auth_add() argument
[all …]
Dpmksa_cache_auth.h19 u8 pmkid[PMKID_LEN]; member
46 const u8 *spa, const u8 *pmkid);
49 const u8 *pmkid);
52 const u8 *pmk, size_t pmk_len, const u8 *pmkid,
57 pmksa_cache_auth_create_entry(const u8 *pmk, size_t pmk_len, const u8 *pmkid,
66 const u8 *aa, const u8 *pmkid);
Dwpa_auth_ie.c92 const u8 *pmkid) in wpa_write_rsn_ie() argument
307 if (pmkid) { in wpa_write_rsn_ie()
313 os_memcpy(pos, pmkid, PMKID_LEN); in wpa_write_rsn_ie()
322 if (pmkid == NULL) { in wpa_write_rsn_ie()
358 int pmkid_count_set = pmkid != NULL; in wpa_write_rsn_ie()
517 const u8 *pmkid; member
525 data->pmkid); in wpa_auth_okc_iter()
542 const u8 *pmkid = NULL; in wpa_validate_wpa_ie() local
867 (data.num_pmkid != 1 || !data.pmkid || !sm->pmk_r1_name_valid || in wpa_validate_wpa_ie()
868 os_memcmp_const(data.pmkid, sm->pmk_r1_name, in wpa_validate_wpa_ie()
[all …]
Dwpa_auth.h374 const u8 *pmk, const u8 *pmkid);
375 void wpa_auth_add_sae_pmkid(struct wpa_state_machine *sm, const u8 *pmkid);
377 const u8 *pmk, size_t pmk_len, const u8 *pmkid,
388 const u8 *pmkid, int expiration);
393 const u8 *pmkid);
396 const u8 *sta_addr, const u8 *pmkid);
400 u8 *pmkid, u8 *pmk);
Dwpa_auth.c787 ie.num_pmkid != 1 || ie.pmkid == NULL) { in ft_check_msg_2_of_4()
793 os_memcpy(sm->sup_pmk_r1_name, ie.pmkid, PMKID_LEN); in ft_check_msg_2_of_4()
2081 u8 buf[2 + RSN_SELECTOR_LEN + PMKID_LEN], *pmkid = NULL; in SM_STATE() local
2117 pmkid = buf; in SM_STATE()
2119 pmkid[0] = WLAN_EID_VENDOR_SPECIFIC; in SM_STATE()
2120 pmkid[1] = RSN_SELECTOR_LEN + PMKID_LEN; in SM_STATE()
2121 RSN_SELECTOR_PUT(&pmkid[2], RSN_KEY_DATA_PMKID); in SM_STATE()
2125 sm->pmksa->pmkid, PMKID_LEN); in SM_STATE()
2126 os_memcpy(&pmkid[2 + RSN_SELECTOR_LEN], in SM_STATE()
2127 sm->pmksa->pmkid, PMKID_LEN); in SM_STATE()
[all …]
Dwpa_auth_i.h62 u8 pmkid[PMKID_LEN]; /* valid if pmkid_set == 1 */ member
269 const u8 *pmkid);
Dctrl_iface_ap.c895 u8 pmkid[PMKID_LEN]; in hostapd_ctrl_iface_pmksa_add() local
914 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_add()
936 pmkid, expiration, akmp); in hostapd_ctrl_iface_pmksa_add()
953 u8 pmkid[PMKID_LEN]; in hostapd_ctrl_iface_pmksa_create_entry() local
971 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_create_entry()
990 return wpa_auth_pmksa_create_entry(aa, spa, pmk, pmkid, expiration); in hostapd_ctrl_iface_pmksa_create_entry()
Dwpa_auth_ie.h17 const u8 *pmkid; member
Dieee802_11.c713 params.pmkid = sta->sae->pmkid; in sae_sme_send_external_auth_status()
756 sta->sae->pmk, sta->sae->pmkid); in sae_accept_sta()
1569 if (rsn.pmkid && rsn.num_pmkid > 0) { in handle_auth_fils()
1571 const u8 *pmkid; in handle_auth_fils() local
1574 rsn.pmkid, rsn.num_pmkid * PMKID_LEN); in handle_auth_fils()
1576 pmkid = rsn.pmkid; in handle_auth_fils()
1579 wpa_hexdump(MSG_DEBUG, "FILS: PMKID", pmkid, PMKID_LEN); in handle_auth_fils()
1581 pmkid); in handle_auth_fils()
1586 pmkid); in handle_auth_fils()
1589 pmkid += PMKID_LEN; in handle_auth_fils()
[all …]
/external/wpa_supplicant_8/src/rsn_supp/
Dpmksa_cache.c47 entry->pmkid, in pmksa_cache_free_entry()
132 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
150 if (pmkid) in pmksa_cache_add()
151 os_memcpy(entry->pmkid, pmkid, PMKID_LEN); in pmksa_cache_add()
153 rsn_pmkid_suite_b_192(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add()
155 rsn_pmkid_suite_b(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add()
157 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, akmp); in pmksa_cache_add()
189 os_memcmp_const(pos->pmkid, entry->pmkid, in pmksa_cache_add_entry()
268 wpa_sm_add_pmkid(pmksa->sm, entry->network_ctx, entry->aa, entry->pmkid, in pmksa_cache_add_entry()
349 const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
[all …]
Dpmksa_cache.h17 u8 pmkid[PMKID_LEN]; member
63 const u8 *aa, const u8 *pmkid,
70 const u8 *pmkid, const u8 *kck, size_t kck_len,
78 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid,
103 pmksa_cache_get(struct rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
136 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
147 static inline int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current() argument
Dwpa.c263 const u8 *pmkid) in wpa_supplicant_get_pmk() argument
267 if (pmkid && !sm->cur_pmksa) { in wpa_supplicant_get_pmk()
272 sm->cur_pmksa = pmksa_cache_get(sm->pmksa, src_addr, pmkid, in wpa_supplicant_get_pmk()
284 if (pmkid && sm->cur_pmksa && in wpa_supplicant_get_pmk()
285 os_memcmp_const(pmkid, sm->cur_pmksa->pmkid, PMKID_LEN) == 0) { in wpa_supplicant_get_pmk()
286 wpa_hexdump(MSG_DEBUG, "RSN: matched PMKID", pmkid, PMKID_LEN); in wpa_supplicant_get_pmk()
365 if (!sm->cur_pmksa && pmkid && in wpa_supplicant_get_pmk()
366 pmksa_cache_get(sm->pmksa, src_addr, pmkid, NULL, in wpa_supplicant_get_pmk()
372 } else if (sa && !sm->cur_pmksa && pmkid) { in wpa_supplicant_get_pmk()
589 if (ie.pmkid) { in wpa_supplicant_process_1_of_4()
[all …]
Dwpa.h43 const u8 *pmkid, const u8 *fils_cache_id,
46 const u8 *pmkid, const u8 *fils_cache_id);
125 const u8 *pmkid, const u8 *bssid);
164 const u8 *pmkid, const u8 *bssid,
203 size_t pmk_len, const u8 *pmkid, in wpa_sm_set_pmk() argument
Dwpa_i.h247 const u8 *bssid, const u8 *pmkid, in wpa_sm_add_pmkid() argument
252 return sm->ctx->add_pmkid(sm->ctx->ctx, network_ctx, bssid, pmkid, in wpa_sm_add_pmkid()
257 const u8 *bssid, const u8 *pmkid, in wpa_sm_remove_pmkid() argument
261 return sm->ctx->remove_pmkid(sm->ctx->ctx, network_ctx, bssid, pmkid, in wpa_sm_remove_pmkid()
Dwpa_ie.h19 const u8 *pmkid; member
/external/wpa_supplicant_8/src/drivers/
Ddriver_ndis.c1196 entry = drv->pmkid; in wpa_driver_ndis_set_pmkid()
1210 entry = drv->pmkid; in wpa_driver_ndis_set_pmkid()
1213 os_memcpy(&p->BSSIDInfo[i].PMKID, entry->pmkid, 16); in wpa_driver_ndis_set_pmkid()
1229 const u8 *pmkid = params->pmkid; in wpa_driver_ndis_add_pmkid() local
1231 if (!bssid || !pmkid) in wpa_driver_ndis_add_pmkid()
1237 entry = drv->pmkid; in wpa_driver_ndis_add_pmkid()
1248 os_memcpy(entry->pmkid, pmkid, 16); in wpa_driver_ndis_add_pmkid()
1251 entry->next = drv->pmkid; in wpa_driver_ndis_add_pmkid()
1252 drv->pmkid = entry; in wpa_driver_ndis_add_pmkid()
1258 os_memcpy(entry->pmkid, pmkid, 16); in wpa_driver_ndis_add_pmkid()
[all …]
Ddriver_ndis.h23 u8 pmkid[16]; member
46 struct ndis_pmkid_entry *pmkid; member
/external/wpa_supplicant_8/src/common/
Dwpa_common.h356 u8 *pmkid);
402 const u8 *pmkid; member
414 u8 *pmkid, int akmp);
417 const u8 *spa, u8 *pmkid);
420 const u8 *spa, u8 *pmkid) in rsn_pmkid_suite_b() argument
427 const u8 *spa, u8 *pmkid);
430 const u8 *aa, const u8 *spa, u8 *pmkid) in rsn_pmkid_suite_b_192() argument
442 int wpa_insert_pmkid(u8 *ies, size_t *ies_len, const u8 *pmkid);
Dwpa_common.c527 u8 *pmkid) in fils_pmkid_erp() argument
545 os_memcpy(pmkid, hash, PMKID_LEN); in fils_pmkid_erp()
546 wpa_hexdump(MSG_DEBUG, "FILS: PMKID", pmkid, PMKID_LEN); in fils_pmkid_erp()
961 if (data.num_pmkid == 1 && data.pmkid) in wpa_ft_parse_ies()
962 parse->rsn_pmkid = data.pmkid; in wpa_ft_parse_ies()
1204 data->pmkid = NULL; in wpa_parse_wpa_ie_rsn()
1337 data->pmkid = pos; in wpa_parse_wpa_ie_rsn()
1406 data->pmkid = NULL; in wpa_parse_wpa_ie_wpa()
1838 u8 *pmkid, int akmp) in rsn_pmkid() argument
1865 os_memcpy(pmkid, hash, PMKID_LEN); in rsn_pmkid()
[all …]
Dcommon_module_tests.c321 const u8 pmkid[] = { in sae_tests() local
394 if (os_memcmp(pmkid, sae.pmkid, SAE_PMKID_LEN) != 0) { in sae_tests()
Dsae.h55 u8 pmkid[SAE_PMKID_LEN]; member
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_rsn.c390 sta->sae->pmkid, sta->sae->pmk); in mesh_rsn_auth_sae_sta()
416 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid) in mesh_rsn_get_pmkid() argument
418 os_memcpy(pmkid, sta->sae->pmkid, SAE_PMKID_LEN); in mesh_rsn_get_pmkid()
662 os_memcmp(chosen_pmk, sta->sae->pmkid, PMKID_LEN) != 0)) { in mesh_rsn_process_ampe()
Dwpas_glue.c544 const u8 *bssid, const u8 *pmkid, in wpa_supplicant_add_pmkid() argument
565 params.pmkid = pmkid; in wpa_supplicant_add_pmkid()
574 const u8 *bssid, const u8 *pmkid, in wpa_supplicant_remove_pmkid() argument
594 params.pmkid = pmkid; in wpa_supplicant_remove_pmkid()
Dmesh_rsn.h34 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid);
Dpreauth_test.c147 const u8 *bssid, const u8 *pmkid, in wpa_supplicant_add_pmkid() argument
157 const u8 *bssid, const u8 *pmkid, in wpa_supplicant_remove_pmkid() argument

12