Home
last modified time | relevance | path

Searched refs:pmkid (Results 1 – 25 of 41) 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.c122 const u8 *pmkid) in wpa_write_rsn_ie() argument
319 if (pmkid) { in wpa_write_rsn_ie()
325 os_memcpy(pos, pmkid, PMKID_LEN); in wpa_write_rsn_ie()
333 if (pmkid == NULL) { in wpa_write_rsn_ie()
368 int pmkid_count_set = pmkid != NULL; in wpa_write_rsn_ie()
570 const u8 *pmkid; member
578 data->pmkid); in wpa_auth_okc_iter()
598 const u8 *pmkid = NULL; in wpa_validate_wpa_ie() local
928 (data.num_pmkid != 1 || !data.pmkid || !sm->pmk_r1_name_valid || in wpa_validate_wpa_ie()
929 os_memcmp_const(data.pmkid, sm->pmk_r1_name, in wpa_validate_wpa_ie()
[all …]
Dwpa_auth.h425 const u8 *pmk, const u8 *pmkid);
426 void wpa_auth_add_sae_pmkid(struct wpa_state_machine *sm, const u8 *pmkid);
428 const u8 *pmk, size_t pmk_len, const u8 *pmkid,
439 const u8 *pmkid, int expiration);
444 const u8 *pmkid);
447 const u8 *sta_addr, const u8 *pmkid);
451 u8 *pmkid, u8 *pmk);
535 size_t pmk_len, const u8 *pmkid);
Dwpa_auth.c865 ie.num_pmkid != 1 || !ie.pmkid) { in ft_check_msg_2_of_4()
871 os_memcpy(sm->sup_pmk_r1_name, ie.pmkid, PMKID_LEN); in ft_check_msg_2_of_4()
2175 u8 buf[2 + RSN_SELECTOR_LEN + PMKID_LEN], *pmkid = NULL; in SM_STATE() local
2211 pmkid = buf; in SM_STATE()
2213 pmkid[0] = WLAN_EID_VENDOR_SPECIFIC; in SM_STATE()
2214 pmkid[1] = RSN_SELECTOR_LEN + PMKID_LEN; in SM_STATE()
2215 RSN_SELECTOR_PUT(&pmkid[2], RSN_KEY_DATA_PMKID); in SM_STATE()
2219 sm->pmksa->pmkid, PMKID_LEN); in SM_STATE()
2220 os_memcpy(&pmkid[2 + RSN_SELECTOR_LEN], in SM_STATE()
2221 sm->pmksa->pmkid, PMKID_LEN); in SM_STATE()
[all …]
Dwpa_auth_i.h62 u8 pmkid[PMKID_LEN]; /* valid if pmkid_set == 1 */ member
276 const u8 *pmkid);
Dctrl_iface_ap.c942 u8 pmkid[PMKID_LEN]; in hostapd_ctrl_iface_pmksa_add() local
961 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_add()
983 pmkid, expiration, akmp); in hostapd_ctrl_iface_pmksa_add()
1000 u8 pmkid[PMKID_LEN]; in hostapd_ctrl_iface_pmksa_create_entry() local
1018 if (hexstr2bin(pos, pmkid, PMKID_LEN) < 0) in hostapd_ctrl_iface_pmksa_create_entry()
1037 return wpa_auth_pmksa_create_entry(aa, spa, pmk, pmkid, expiration); in hostapd_ctrl_iface_pmksa_create_entry()
Dieee802_11.c910 params.pmkid = sta->sae->pmkid; in sae_sme_send_external_auth_status()
956 sta->sae->pmk, sta->sae->pmkid); in sae_accept_sta()
1895 if (rsn.pmkid && rsn.num_pmkid > 0) { in handle_auth_fils()
1897 const u8 *pmkid; in handle_auth_fils() local
1900 rsn.pmkid, rsn.num_pmkid * PMKID_LEN); in handle_auth_fils()
1902 pmkid = rsn.pmkid; in handle_auth_fils()
1905 wpa_hexdump(MSG_DEBUG, "FILS: PMKID", pmkid, PMKID_LEN); in handle_auth_fils()
1907 pmkid); in handle_auth_fils()
1912 pmkid); in handle_auth_fils()
1915 pmkid += PMKID_LEN; in handle_auth_fils()
[all …]
/external/wpa_supplicant_8/src/rsn_supp/
Dpmksa_cache.c49 entry->pmkid, in pmksa_cache_free_entry()
134 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
152 if (pmkid) in pmksa_cache_add()
153 os_memcpy(entry->pmkid, pmkid, PMKID_LEN); in pmksa_cache_add()
155 rsn_pmkid_suite_b_192(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add()
157 rsn_pmkid_suite_b(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add()
159 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, akmp); in pmksa_cache_add()
191 os_memcmp_const(pos->pmkid, entry->pmkid, in pmksa_cache_add_entry()
271 wpa_sm_add_pmkid(pmksa->sm, entry->network_ctx, entry->aa, entry->pmkid, in pmksa_cache_add_entry()
355 const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
[all …]
Dpmksa_cache.h17 u8 pmkid[PMKID_LEN]; member
64 const u8 *aa, const u8 *pmkid,
71 const u8 *pmkid, const u8 *kck, size_t kck_len,
79 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid,
104 pmksa_cache_get(struct rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
137 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
148 static inline int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current() argument
Dwpa.h44 const u8 *pmkid, const u8 *fils_cache_id,
48 const u8 *pmkid, const u8 *fils_cache_id);
145 const u8 *pmkid, const u8 *bssid);
190 const u8 *pmkid, const u8 *bssid,
197 const u8 *pmkid,
240 size_t pmk_len, const u8 *pmkid, in wpa_sm_set_pmk() argument
382 wpa_sm_pmksa_cache_get(struct wpa_sm *sm, const u8 *aa, const u8 *pmkid, in wpa_sm_pmksa_cache_get() argument
561 const u8 *pmkid, const u8 *bssid, int key_mgmt);
Dwpa.c274 const u8 *pmkid) in wpa_supplicant_get_pmk() argument
278 if (pmkid && !sm->cur_pmksa) { in wpa_supplicant_get_pmk()
283 sm->cur_pmksa = pmksa_cache_get(sm->pmksa, src_addr, pmkid, in wpa_supplicant_get_pmk()
295 if (pmkid && sm->cur_pmksa && in wpa_supplicant_get_pmk()
296 os_memcmp_const(pmkid, sm->cur_pmksa->pmkid, PMKID_LEN) == 0) { in wpa_supplicant_get_pmk()
297 wpa_hexdump(MSG_DEBUG, "RSN: matched PMKID", pmkid, PMKID_LEN); in wpa_supplicant_get_pmk()
397 if (!sm->cur_pmksa && pmkid && in wpa_supplicant_get_pmk()
398 pmksa_cache_get(sm->pmksa, src_addr, pmkid, NULL, in wpa_supplicant_get_pmk()
404 } else if (sa && !sm->cur_pmksa && pmkid) { in wpa_supplicant_get_pmk()
706 if (ie.pmkid) { in wpa_supplicant_process_1_of_4()
[all …]
Dwpa_i.h298 const u8 *bssid, const u8 *pmkid, in wpa_sm_add_pmkid() argument
304 return sm->ctx->add_pmkid(sm->ctx->ctx, network_ctx, bssid, pmkid, in wpa_sm_add_pmkid()
310 const u8 *bssid, const u8 *pmkid, in wpa_sm_remove_pmkid() argument
314 return sm->ctx->remove_pmkid(sm->ctx->ctx, network_ctx, bssid, pmkid, in wpa_sm_remove_pmkid()
/external/wpa_supplicant_8/src/drivers/
Ddriver_ndis.c1208 entry = drv->pmkid; in wpa_driver_ndis_set_pmkid()
1222 entry = drv->pmkid; in wpa_driver_ndis_set_pmkid()
1225 os_memcpy(&p->BSSIDInfo[i].PMKID, entry->pmkid, 16); in wpa_driver_ndis_set_pmkid()
1241 const u8 *pmkid = params->pmkid; in wpa_driver_ndis_add_pmkid() local
1243 if (!bssid || !pmkid) in wpa_driver_ndis_add_pmkid()
1249 entry = drv->pmkid; in wpa_driver_ndis_add_pmkid()
1260 os_memcpy(entry->pmkid, pmkid, 16); in wpa_driver_ndis_add_pmkid()
1263 entry->next = drv->pmkid; in wpa_driver_ndis_add_pmkid()
1264 drv->pmkid = entry; in wpa_driver_ndis_add_pmkid()
1270 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.h397 u8 *pmkid);
446 const u8 *pmkid; member
458 u8 *pmkid, int akmp);
461 const u8 *spa, u8 *pmkid);
464 const u8 *spa, u8 *pmkid) in rsn_pmkid_suite_b() argument
471 const u8 *spa, u8 *pmkid);
474 const u8 *aa, const u8 *spa, u8 *pmkid) in rsn_pmkid_suite_b_192() argument
486 int wpa_insert_pmkid(u8 *ies, size_t *ies_len, const u8 *pmkid);
557 const u8 *pmkid; member
653 int wpa_pasn_add_rsne(struct wpabuf *buf, const u8 *pmkid,
Dwpa_common.c567 u8 *pmkid) in fils_pmkid_erp() argument
585 os_memcpy(pmkid, hash, PMKID_LEN); in fils_pmkid_erp()
586 wpa_hexdump(MSG_DEBUG, "FILS: PMKID", pmkid, PMKID_LEN); in fils_pmkid_erp()
1037 if (data.num_pmkid == 1 && data.pmkid) in wpa_ft_parse_ies()
1038 parse->rsn_pmkid = data.pmkid; in wpa_ft_parse_ies()
1552 data->pmkid = NULL; in wpa_parse_wpa_ie_rsn()
1679 data->pmkid = pos; in wpa_parse_wpa_ie_rsn()
1746 data->pmkid = NULL; in wpa_parse_wpa_ie_wpa()
2195 u8 *pmkid, int akmp) in rsn_pmkid() argument
2220 os_memcpy(pmkid, hash, PMKID_LEN); in rsn_pmkid()
[all …]
Dcommon_module_tests.c323 const u8 pmkid[] = { in sae_tests() local
463 if (os_memcmp(pmkid, sae.pmkid, SAE_PMKID_LEN) != 0) { in sae_tests()
Dsae.h108 u8 pmkid[SAE_PMKID_LEN]; member
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.4/
Dmisc_utils.h72 ss.write((char *) pmksa_entry->pmkid, PMKID_LEN); in serializePmkCacheEntry()
91 ss.read((char *) pmksa_entry->pmkid, PMKID_LEN); in deserializePmkCacheEntry()
/external/wpa_supplicant_8/wpa_supplicant/
Dpasn_supplicant.c619 const u8 *pmkid; in wpas_pasn_build_auth_1() local
647 pmkid = NULL; in wpas_pasn_build_auth_1()
660 pmkid = pasn->pmk_r1_name; in wpas_pasn_build_auth_1()
667 pmkid = pmksa->pmkid; in wpas_pasn_build_auth_1()
676 if (wpa_pasn_add_rsne(buf, pmkid, pasn->akmp, pasn->cipher) < 0) in wpas_pasn_build_auth_1()
878 rsn_data->pmkid, NULL, in wpas_pasn_set_pmk()
908 pasn->pmk_len, pasn->sae.pmkid, in wpas_pasn_set_pmk()
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()
658 os_memcmp(chosen_pmk, sta->sae->pmkid, PMKID_LEN) != 0)) { in mesh_rsn_process_ampe()
Dmesh_rsn.h34 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid);
Dpreauth_test.c154 const u8 *bssid, const u8 *pmkid, in wpa_supplicant_add_pmkid() argument
166 const u8 *bssid, const u8 *pmkid, in wpa_supplicant_remove_pmkid() argument
Dwpas_glue.c586 const u8 *bssid, const u8 *pmkid, in wpa_supplicant_add_pmkid() argument
622 params.pmkid = pmkid; in wpa_supplicant_add_pmkid()
633 const u8 *bssid, const u8 *pmkid, in wpa_supplicant_remove_pmkid() argument
653 params.pmkid = pmkid; in wpa_supplicant_remove_pmkid()

12