Home
last modified time | relevance | path

Searched refs:pmkid (Results 1 – 25 of 34) 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
45 const u8 *spa, const u8 *pmkid);
48 const u8 *pmkid);
51 const u8 *pmk, size_t pmk_len, const u8 *pmkid,
58 const u8 *aa, const u8 *pmkid);
Dwpa_auth_ie.c92 const u8 *pmkid) in wpa_write_rsn_ie() argument
253 if (pmkid) { in wpa_write_rsn_ie()
259 os_memcpy(pos, pmkid, PMKID_LEN); in wpa_write_rsn_ie()
268 if (pmkid == NULL) { in wpa_write_rsn_ie()
304 int pmkid_count_set = pmkid != NULL; in wpa_write_rsn_ie()
459 const u8 *pmkid; member
467 data->pmkid); in wpa_auth_okc_iter()
483 const u8 *pmkid = NULL; in wpa_validate_wpa_ie() local
687 &data.pmkid[i * PMKID_LEN], PMKID_LEN); in wpa_validate_wpa_ie()
689 &data.pmkid[i * PMKID_LEN]); in wpa_validate_wpa_ie()
[all …]
Dwpa_auth_ie.h17 const u8 *pmkid; member
Dwpa_auth.c751 ie.num_pmkid != 1 || ie.pmkid == NULL) { in ft_check_msg_2_of_4()
757 os_memcpy(sm->sup_pmk_r1_name, ie.pmkid, PMKID_LEN); in ft_check_msg_2_of_4()
1979 u8 buf[2 + RSN_SELECTOR_LEN + PMKID_LEN], *pmkid = NULL; in SM_STATE() local
2003 pmkid = buf; in SM_STATE()
2005 pmkid[0] = WLAN_EID_VENDOR_SPECIFIC; in SM_STATE()
2006 pmkid[1] = RSN_SELECTOR_LEN + PMKID_LEN; in SM_STATE()
2007 RSN_SELECTOR_PUT(&pmkid[2], RSN_KEY_DATA_PMKID); in SM_STATE()
2009 os_memcpy(&pmkid[2 + RSN_SELECTOR_LEN], in SM_STATE()
2010 sm->pmksa->pmkid, PMKID_LEN); in SM_STATE()
2013 pmkid = NULL; in SM_STATE()
[all …]
Dwpa_auth.h298 const u8 *pmk, const u8 *pmkid);
309 u8 *pmkid, u8 *pmk);
/external/wpa_supplicant_8/src/rsn_supp/
Dpmksa_cache.c46 wpa_sm_remove_pmkid(pmksa->sm, entry->aa, entry->pmkid); in pmksa_cache_free_entry()
128 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
145 if (pmkid) in pmksa_cache_add()
146 os_memcpy(entry->pmkid, pmkid, PMKID_LEN); in pmksa_cache_add()
148 rsn_pmkid_suite_b_192(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add()
150 rsn_pmkid_suite_b(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add()
152 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_add()
170 os_memcmp_const(pos->pmkid, entry->pmkid, in pmksa_cache_add()
248 wpa_sm_add_pmkid(pmksa->sm, entry->aa, entry->pmkid); in pmksa_cache_add()
326 const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
[all …]
Dpmksa_cache.h17 u8 pmkid[PMKID_LEN]; member
55 const u8 *aa, const u8 *pmkid,
60 const u8 *pmkid, const u8 *kck, size_t kck_len,
64 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid,
88 pmksa_cache_get(struct rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
108 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
118 static inline int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current() argument
Dwpa_i.h213 const u8 *pmkid) in wpa_sm_add_pmkid() argument
216 return sm->ctx->add_pmkid(sm->ctx->ctx, bssid, pmkid); in wpa_sm_add_pmkid()
220 const u8 *pmkid) in wpa_sm_remove_pmkid() argument
223 return sm->ctx->remove_pmkid(sm->ctx->ctx, bssid, pmkid); in wpa_sm_remove_pmkid()
Dwpa.h41 int (*add_pmkid)(void *ctx, const u8 *bssid, const u8 *pmkid);
42 int (*remove_pmkid)(void *ctx, const u8 *bssid, const u8 *pmkid);
117 const u8 *pmkid, const u8 *bssid);
184 size_t pmk_len, const u8 *pmkid, in wpa_sm_set_pmk() argument
Dwpa.c183 const u8 *pmkid) in wpa_supplicant_get_pmk() argument
187 if (pmkid && !sm->cur_pmksa) { in wpa_supplicant_get_pmk()
192 sm->cur_pmksa = pmksa_cache_get(sm->pmksa, src_addr, pmkid, in wpa_supplicant_get_pmk()
204 if (pmkid && sm->cur_pmksa && in wpa_supplicant_get_pmk()
205 os_memcmp_const(pmkid, sm->cur_pmksa->pmkid, PMKID_LEN) == 0) { in wpa_supplicant_get_pmk()
206 wpa_hexdump(MSG_DEBUG, "RSN: matched PMKID", pmkid, PMKID_LEN); in wpa_supplicant_get_pmk()
258 if (!sm->cur_pmksa && pmkid && in wpa_supplicant_get_pmk()
259 pmksa_cache_get(sm->pmksa, src_addr, pmkid, NULL)) in wpa_supplicant_get_pmk()
265 } else if (sa && !sm->cur_pmksa && pmkid) { in wpa_supplicant_get_pmk()
474 if (ie.pmkid) { in wpa_supplicant_process_1_of_4()
[all …]
Dwpa_ie.h19 const u8 *pmkid; member
Dpeerkey.c674 ie.pmkid == NULL) { in wpa_supplicant_process_stk_1_of_4()
678 if (os_memcmp_const(ie.pmkid, peerkey->smkid, PMKID_LEN) != 0) { in wpa_supplicant_process_stk_1_of_4()
680 ie.pmkid, PMKID_LEN); in wpa_supplicant_process_stk_1_of_4()
776 kde.pmkid == NULL || kde.rsn_ie == NULL) { in wpa_supplicant_process_stk_2_of_4()
781 if (os_memcmp_const(kde.pmkid, peerkey->smkid, PMKID_LEN) != 0) { in wpa_supplicant_process_stk_2_of_4()
783 kde.pmkid, PMKID_LEN); in wpa_supplicant_process_stk_2_of_4()
Dwpa_ie.c206 os_memcpy(pos, sm->cur_pmksa->pmkid, PMKID_LEN); in wpa_gen_wpa_ie_rsn()
384 ie->pmkid = pos + 2 + RSN_SELECTOR_LEN; in wpa_parse_generic()
/external/wpa_supplicant_8/src/common/
Dwpa_common.h373 const u8 *pmkid; member
384 u8 *pmkid, int use_sha256);
387 const u8 *spa, u8 *pmkid);
390 const u8 *spa, u8 *pmkid) in rsn_pmkid_suite_b() argument
397 const u8 *spa, u8 *pmkid);
400 const u8 *aa, const u8 *spa, u8 *pmkid) in rsn_pmkid_suite_b_192() argument
412 int wpa_insert_pmkid(u8 *ies, size_t *ies_len, const u8 *pmkid);
Dwpa_common.c377 if (data.num_pmkid == 1 && data.pmkid) in wpa_ft_parse_ies()
378 parse->rsn_pmkid = data.pmkid; in wpa_ft_parse_ies()
557 data->pmkid = NULL; in wpa_parse_wpa_ie_rsn()
684 data->pmkid = pos; in wpa_parse_wpa_ie_rsn()
753 data->pmkid = NULL; in wpa_parse_wpa_ie_wpa()
1045 u8 *pmkid, int use_sha256) in rsn_pmkid() argument
1062 os_memcpy(pmkid, hash, PMKID_LEN); in rsn_pmkid()
1080 const u8 *spa, u8 *pmkid) in rsn_pmkid_suite_b() argument
1093 os_memcpy(pmkid, hash, PMKID_LEN); in rsn_pmkid_suite_b()
1113 const u8 *spa, u8 *pmkid) in rsn_pmkid_suite_b_192() argument
[all …]
Dsae.h48 u8 pmkid[SAE_PMKID_LEN]; 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()
1224 const u8 *pmkid) in wpa_driver_ndis_add_pmkid() argument
1233 entry = drv->pmkid; in wpa_driver_ndis_add_pmkid()
1244 os_memcpy(entry->pmkid, pmkid, 16); in wpa_driver_ndis_add_pmkid()
1247 entry->next = drv->pmkid; in wpa_driver_ndis_add_pmkid()
1248 drv->pmkid = entry; in wpa_driver_ndis_add_pmkid()
1254 os_memcpy(entry->pmkid, pmkid, 16); in wpa_driver_ndis_add_pmkid()
1255 entry->next = drv->pmkid; in wpa_driver_ndis_add_pmkid()
[all …]
Ddriver_ndis.h23 u8 pmkid[16]; member
46 struct ndis_pmkid_entry *pmkid; member
Ddriver_wext.c2326 u32 cmd, const u8 *bssid, const u8 *pmkid) in wpa_driver_wext_pmksa() argument
2339 if (pmkid) in wpa_driver_wext_pmksa()
2340 os_memcpy(pmksa.pmkid, pmkid, IW_PMKID_LEN); in wpa_driver_wext_pmksa()
2356 const u8 *pmkid) in wpa_driver_wext_add_pmkid() argument
2359 return wpa_driver_wext_pmksa(drv, IW_PMKSA_ADD, bssid, pmkid); in wpa_driver_wext_add_pmkid()
2364 const u8 *pmkid) in wpa_driver_wext_remove_pmkid() argument
2367 return wpa_driver_wext_pmksa(drv, IW_PMKSA_REMOVE, bssid, pmkid); in wpa_driver_wext_remove_pmkid()
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_rsn.c323 sta->sae->pmkid, sta->sae->pmk); in mesh_rsn_auth_sae_sta()
350 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid) in mesh_rsn_get_pmkid() argument
352 os_memcpy(pmkid, sta->sae->pmkid, SAE_PMKID_LEN); in mesh_rsn_get_pmkid()
549 if (chosen_pmk && os_memcmp(chosen_pmk, sta->sae->pmkid, PMKID_LEN)) { in mesh_rsn_process_ampe()
Dmesh_rsn.h26 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
155 const u8 *bssid, const u8 *pmkid) in wpa_supplicant_remove_pmkid() argument
Dwpas_glue.c517 const u8 *bssid, const u8 *pmkid) in wpa_supplicant_add_pmkid() argument
519 return wpa_drv_add_pmkid(wpa_s, bssid, pmkid); in wpa_supplicant_add_pmkid()
524 const u8 *bssid, const u8 *pmkid) in wpa_supplicant_remove_pmkid() argument
526 return wpa_drv_remove_pmkid(wpa_s, bssid, pmkid); in wpa_supplicant_remove_pmkid()
Ddriver_i.h183 const u8 *bssid, const u8 *pmkid) in wpa_drv_add_pmkid() argument
186 return wpa_s->driver->add_pmkid(wpa_s->drv_priv, bssid, pmkid); in wpa_drv_add_pmkid()
192 const u8 *bssid, const u8 *pmkid) in wpa_drv_remove_pmkid() argument
196 pmkid); in wpa_drv_remove_pmkid()

12