/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/ |
D | pmksa_cache.c | 131 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 139 if (pmk_len > PMK_LEN_MAX) in pmksa_cache_add() 148 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_add() 149 entry->pmk_len = pmk_len; in pmksa_cache_add() 157 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, akmp); in pmksa_cache_add() 186 if (pos->pmk_len == entry->pmk_len && in pmksa_cache_add_entry() 188 entry->pmk_len) == 0 && in pmksa_cache_add_entry() 215 pos->pmk, pos->pmk_len); in pmksa_cache_add_entry() 270 entry->pmk, entry->pmk_len); in pmksa_cache_add_entry() 284 const u8 *pmk, size_t pmk_len) in pmksa_cache_flush() argument [all …]
|
D | pmksa_cache.h | 19 size_t pmk_len; member 69 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, 86 const u8 *pmk, size_t pmk_len); 135 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 159 const u8 *pmk, size_t pmk_len) in pmksa_cache_flush() argument
|
D | preauth.c | 81 int res, pmk_len; in rsn_preauth_eapol_cb() local 82 pmk_len = PMK_LEN; in rsn_preauth_eapol_cb() 90 pmk_len = 16; in rsn_preauth_eapol_cb() 94 pmk, pmk_len); in rsn_preauth_eapol_cb() 95 sm->pmk_len = pmk_len; in rsn_preauth_eapol_cb() 96 pmksa_cache_add(sm->pmksa, pmk, pmk_len, NULL, in rsn_preauth_eapol_cb() 346 NULL, p->pmk, p->pmk_len); in rsn_preauth_candidate_process()
|
D | wpa.c | 55 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_eapol_key_send() 202 mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_sm_key_request() 252 if (wpa_sm_key_mgmt_set_pmk(sm, sm->pmk, sm->pmk_len)) in wpa_supplicant_key_mgmt_set_pmk() 289 sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk() 295 sm->pmk_len == PMK_LEN) { in wpa_supplicant_get_pmk() 301 os_memcpy(sm->xxkey, sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk() 302 sm->xxkey_len = sm->pmk_len; in wpa_supplicant_get_pmk() 307 int res, pmk_len; in wpa_supplicant_get_pmk() local 313 pmk_len = PMK_LEN_SUITE_B_192; in wpa_supplicant_get_pmk() 315 pmk_len = PMK_LEN; in wpa_supplicant_get_pmk() [all …]
|
D | wpa_i.h | 22 size_t pmk_len; member 250 size_t pmk_len) in wpa_sm_add_pmkid() argument 254 cache_id, pmk, pmk_len); in wpa_sm_add_pmkid() 389 const u8 *pmk, size_t pmk_len) in wpa_sm_key_mgmt_set_pmk() argument 393 return sm->ctx->key_mgmt_set_pmk(sm->ctx->ctx, pmk, pmk_len); in wpa_sm_key_mgmt_set_pmk()
|
D | wpa.h | 44 const u8 *pmk, size_t pmk_len); 83 int (*key_mgmt_set_pmk)(void *ctx, const u8 *pmk, size_t pmk_len); 124 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, 163 void wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, 203 size_t pmk_len, const u8 *pmkid, in wpa_sm_set_pmk() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/ |
D | pmksa_cache.c | 173 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 181 if (pmk_len > PMK_LEN_MAX) in pmksa_cache_add() 190 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_add() 191 entry->pmk_len = pmk_len; in pmksa_cache_add() 199 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, akmp); in pmksa_cache_add() 228 if (pos->pmk_len == entry->pmk_len && in pmksa_cache_add_entry() 230 entry->pmk_len) == 0 && in pmksa_cache_add_entry() 257 pos->pmk, pos->pmk_len, in pmksa_cache_add_entry() 313 entry->pmk, entry->pmk_len, in pmksa_cache_add_entry() 332 const u8 *pmk, size_t pmk_len, bool external_only) in pmksa_cache_flush() argument [all …]
|
D | pmksa_cache.h | 19 size_t pmk_len; member 73 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, 90 const u8 *pmk, size_t pmk_len, bool external_only); 142 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 166 const u8 *pmk, size_t pmk_len, in pmksa_cache_flush() argument
|
D | preauth.c | 90 int res, pmk_len; in rsn_preauth_eapol_cb() local 91 pmk_len = PMK_LEN; in rsn_preauth_eapol_cb() 99 pmk_len = 16; in rsn_preauth_eapol_cb() 103 pmk, pmk_len); in rsn_preauth_eapol_cb() 104 sm->pmk_len = pmk_len; in rsn_preauth_eapol_cb() 105 pmksa_cache_add(sm->pmksa, pmk, pmk_len, NULL, in rsn_preauth_eapol_cb() 352 NULL, p->pmk, p->pmk_len, 0, 0, in rsn_preauth_candidate_process()
|
D | wpa.c | 57 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_eapol_key_send() 212 mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_sm_key_request() 262 if (wpa_sm_key_mgmt_set_pmk(sm, sm->pmk, sm->pmk_len)) in wpa_supplicant_key_mgmt_set_pmk() 299 sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk() 305 sm->pmk_len == PMK_LEN) { in wpa_supplicant_get_pmk() 311 os_memcpy(sm->xxkey, sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk() 312 sm->xxkey_len = sm->pmk_len; in wpa_supplicant_get_pmk() 317 int res, pmk_len; in wpa_supplicant_get_pmk() local 323 pmk_len = PMK_LEN_SUITE_B_192; in wpa_supplicant_get_pmk() 325 pmk_len = PMK_LEN; in wpa_supplicant_get_pmk() [all …]
|
D | wpa.h | 45 const u8 *pmk, size_t pmk_len, u32 pmk_lifetime, 88 int (*key_mgmt_set_pmk)(void *ctx, const u8 *pmk, size_t pmk_len); 147 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, 193 void wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, 241 size_t pmk_len, const u8 *pmkid, in wpa_sm_set_pmk() argument 560 void wpa_pasn_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
|
D | wpa_i.h | 27 size_t pmk_len; member 300 size_t pmk_len, u32 pmk_lifetime, in wpa_sm_add_pmkid() argument 305 cache_id, pmk, pmk_len, pmk_lifetime, in wpa_sm_add_pmkid() 446 const u8 *pmk, size_t pmk_len) in wpa_sm_key_mgmt_set_pmk() argument 450 return sm->ctx->key_mgmt_set_pmk(sm->ctx->ctx, pmk, pmk_len); in wpa_sm_key_mgmt_set_pmk()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | wpa_common.c | 24 static unsigned int wpa_kck_len(int akmp, size_t pmk_len) in wpa_kck_len() argument 36 return pmk_len / 2; in wpa_kck_len() 38 return pmk_len / 2; in wpa_kck_len() 60 static unsigned int wpa_kek_len(int akmp, size_t pmk_len) in wpa_kek_len() argument 72 return pmk_len <= 32 ? 16 : 32; in wpa_kek_len() 74 return pmk_len <= 32 ? 16 : 32; in wpa_kek_len() 96 unsigned int wpa_mic_len(int akmp, size_t pmk_len) in wpa_mic_len() argument 108 return pmk_len / 2; in wpa_mic_len() 110 return pmk_len / 2; in wpa_mic_len() 349 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, in wpa_pmk_to_ptk() argument [all …]
|
D | wpa_common.h | 347 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, 354 size_t dh_ss_len, u8 *pmk, size_t *pmk_len); 357 int fils_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const u8 *spa, const u8 *aa, 413 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, 488 unsigned int wpa_mic_len(int akmp, size_t pmk_len);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | pmksa_cache_auth.c | 280 const u8 *pmk, size_t pmk_len, const u8 *pmkid, in pmksa_cache_auth_add() argument 287 entry = pmksa_cache_auth_create_entry(pmk, pmk_len, pmkid, kck, kck_len, in pmksa_cache_auth_add() 315 pmksa_cache_auth_create_entry(const u8 *pmk, size_t pmk_len, const u8 *pmkid, in pmksa_cache_auth_create_entry() argument 323 if (pmk_len > PMK_LEN_MAX) in pmksa_cache_auth_create_entry() 332 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_auth_create_entry() 333 entry->pmk_len = pmk_len; in pmksa_cache_auth_create_entry() 341 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, akmp); in pmksa_cache_auth_create_entry() 404 os_memcpy(entry->pmk, old_entry->pmk, old_entry->pmk_len); in pmksa_cache_add_okc() 405 entry->pmk_len = old_entry->pmk_len; in pmksa_cache_add_okc() 519 rsn_pmkid(entry->pmk, entry->pmk_len, aa, spa, new_pmkid, in pmksa_cache_get_okc() [all …]
|
D | wpa_auth.c | 41 static int wpa_verify_key_mic(int akmp, size_t pmk_len, struct wpa_ptk *PTK, 58 const u8 *pmk, unsigned int pmk_len, 886 size_t pmk_len; in wpa_try_alt_snonce() local 894 sm->p2p_dev_addr, pmk, &pmk_len, in wpa_try_alt_snonce() 900 os_memcpy(sm->xxkey, pmk, pmk_len); in wpa_try_alt_snonce() 901 sm->xxkey_len = pmk_len; in wpa_try_alt_snonce() 906 pmk_len = sm->pmk_len; in wpa_try_alt_snonce() 909 if (wpa_derive_ptk(sm, sm->alt_SNonce, pmk, pmk_len, &PTK) < 0) in wpa_try_alt_snonce() 912 if (wpa_verify_key_mic(sm->wpa_key_mgmt, pmk_len, &PTK, in wpa_try_alt_snonce() 915 os_memcpy(sm->PMK, pmk, pmk_len); in wpa_try_alt_snonce() [all …]
|
D | pmksa_cache_auth.h | 21 size_t pmk_len; member 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,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | pmksa_cache_auth.c | 280 const u8 *pmk, size_t pmk_len, const u8 *pmkid, in pmksa_cache_auth_add() argument 287 entry = pmksa_cache_auth_create_entry(pmk, pmk_len, pmkid, kck, kck_len, in pmksa_cache_auth_add() 315 pmksa_cache_auth_create_entry(const u8 *pmk, size_t pmk_len, const u8 *pmkid, in pmksa_cache_auth_create_entry() argument 323 if (pmk_len > PMK_LEN_MAX) in pmksa_cache_auth_create_entry() 332 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_auth_create_entry() 333 entry->pmk_len = pmk_len; in pmksa_cache_auth_create_entry() 341 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, akmp); in pmksa_cache_auth_create_entry() 404 os_memcpy(entry->pmk, old_entry->pmk, old_entry->pmk_len); in pmksa_cache_add_okc() 405 entry->pmk_len = old_entry->pmk_len; in pmksa_cache_add_okc() 525 rsn_pmkid(entry->pmk, entry->pmk_len, aa, spa, new_pmkid, in pmksa_cache_get_okc() [all …]
|
D | wpa_auth.c | 43 static int wpa_verify_key_mic(int akmp, size_t pmk_len, struct wpa_ptk *PTK, 60 const u8 *pmk, unsigned int pmk_len, 945 size_t pmk_len; in wpa_try_alt_snonce() local 953 sm->p2p_dev_addr, pmk, &pmk_len, in wpa_try_alt_snonce() 959 os_memcpy(sm->xxkey, pmk, pmk_len); in wpa_try_alt_snonce() 960 sm->xxkey_len = pmk_len; in wpa_try_alt_snonce() 965 pmk_len = sm->pmk_len; in wpa_try_alt_snonce() 968 if (wpa_derive_ptk(sm, sm->alt_SNonce, pmk, pmk_len, &PTK, 0) < in wpa_try_alt_snonce() 972 if (wpa_verify_key_mic(sm->wpa_key_mgmt, pmk_len, &PTK, in wpa_try_alt_snonce() 975 os_memcpy(sm->PMK, pmk, pmk_len); in wpa_try_alt_snonce() [all …]
|
D | pmksa_cache_auth.h | 21 size_t pmk_len; member 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,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | wpa_common.c | 24 static unsigned int wpa_kck_len(int akmp, size_t pmk_len) in wpa_kck_len() argument 36 return pmk_len / 2; in wpa_kck_len() 38 return pmk_len / 2; in wpa_kck_len() 60 static unsigned int wpa_kek_len(int akmp, size_t pmk_len) in wpa_kek_len() argument 72 return pmk_len <= 32 ? 16 : 32; in wpa_kek_len() 74 return pmk_len <= 32 ? 16 : 32; in wpa_kek_len() 96 unsigned int wpa_mic_len(int akmp, size_t pmk_len) in wpa_mic_len() argument 108 return pmk_len / 2; in wpa_mic_len() 110 return pmk_len / 2; in wpa_mic_len() 348 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, in wpa_pmk_to_ptk() argument [all …]
|
D | wpa_common.h | 388 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, 395 size_t dh_ss_len, u8 *pmk, size_t *pmk_len); 398 int fils_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const u8 *spa, const u8 *aa, 457 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, 635 unsigned int wpa_mic_len(int akmp, size_t pmk_len); 641 int pasn_pmk_to_ptk(const u8 *pmk, size_t pmk_len,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | wpas_glue.c | 279 int res, pmk_len; in wpa_supplicant_eapol_cb() local 312 pmk_len = PMK_LEN; in wpa_supplicant_eapol_cb() 334 pmk_len = 16; in wpa_supplicant_eapol_cb() 345 "handshake", pmk, pmk_len); in wpa_supplicant_eapol_cb() 348 pmk_len)) { in wpa_supplicant_eapol_cb() 550 const u8 *pmk, size_t pmk_len) in wpa_supplicant_add_pmkid() argument 571 params.pmk_len = pmk_len; in wpa_supplicant_add_pmkid() 1157 size_t pmk_len) in wpa_supplicant_key_mgmt_set_pmk() argument 1164 NULL, 0, pmk, pmk_len); in wpa_supplicant_key_mgmt_set_pmk()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | wpas_glue.c | 292 int res, pmk_len; in wpa_supplicant_eapol_cb() local 325 pmk_len = PMK_LEN; in wpa_supplicant_eapol_cb() 347 pmk_len = 16; in wpa_supplicant_eapol_cb() 358 "handshake", pmk, pmk_len); in wpa_supplicant_eapol_cb() 361 pmk_len, KEY_FLAG_PMK)) { in wpa_supplicant_eapol_cb() 582 const u8 *pmk, size_t pmk_len, in wpa_supplicant_add_pmkid() argument 618 params.pmk_len = pmk_len; in wpa_supplicant_add_pmkid() 1230 size_t pmk_len) in wpa_supplicant_key_mgmt_set_pmk() argument 1237 NULL, 0, pmk, pmk_len, KEY_FLAG_PMK); in wpa_supplicant_key_mgmt_set_pmk()
|
D | pasn_supplicant.c | 561 pasn->pmk, &pasn->pmk_len); in wpas_pasn_wd_fils_rx() 576 pasn->pmk_len, pasn->fils.erp_pmkid, in wpas_pasn_wd_fils_rx() 865 pasn->pmk_len = 0; in wpas_pasn_reset() 905 pasn->pmk_len = 0; in wpas_pasn_set_pmk() 910 pasn->pmk_len = WPA_PASN_PMK_LEN; in wpas_pasn_set_pmk() 919 pasn->pmk_len = pasn->pmk_r1_len; in wpas_pasn_set_pmk() 938 pasn->pmk_len = pmksa->pmk_len; in wpas_pasn_set_pmk() 939 os_memcpy(pasn->pmk, pmksa->pmk, pmksa->pmk_len); in wpas_pasn_set_pmk() 959 pasn->pmk_len = PMK_LEN; in wpas_pasn_set_pmk() 963 pasn->pmk_len, pasn->sae.pmkid, in wpas_pasn_set_pmk() [all …]
|