/external/wpa_supplicant_8/src/rsn_supp/ |
D | pmksa_cache.c | 126 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 133 if (pmk_len > PMK_LEN) in pmksa_cache_add() 142 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_add() 143 entry->pmk_len = pmk_len; in pmksa_cache_add() 149 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_add() 165 if (pos->pmk_len == pmk_len && in pmksa_cache_add() 166 os_memcmp_const(pos->pmk, pmk, pmk_len) == 0 && in pmksa_cache_add() 193 pos->pmk_len); in pmksa_cache_add() 259 const u8 *pmk, size_t pmk_len) in pmksa_cache_flush() argument 269 (pmk_len == entry->pmk_len && in pmksa_cache_flush() [all …]
|
D | pmksa_cache.h | 19 size_t pmk_len; member 59 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, 71 const u8 *pmk, size_t pmk_len); 107 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 128 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, in rsn_preauth_eapol_cb()
|
D | wpa.c | 165 if (wpa_sm_key_mgmt_set_pmk(sm, sm->pmk, sm->pmk_len)) in wpa_supplicant_key_mgmt_set_pmk() 202 sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk() 208 int res, pmk_len; in wpa_supplicant_get_pmk() local 209 pmk_len = PMK_LEN; in wpa_supplicant_get_pmk() 217 pmk_len = 16; in wpa_supplicant_get_pmk() 232 "machines", sm->pmk, pmk_len); in wpa_supplicant_get_pmk() 233 sm->pmk_len = pmk_len; in wpa_supplicant_get_pmk() 239 sm->pmk, pmk_len, in wpa_supplicant_get_pmk() 416 return wpa_pmk_to_ptk(sm->pmk, sm->pmk_len, "Pairwise key expansion", in wpa_derive_ptk() 1239 sa = pmksa_cache_add(sm->pmksa, sm->pmk, sm->pmk_len, in wpa_supplicant_process_3_of_4() [all …]
|
D | wpa_i.h | 23 size_t pmk_len; member 343 const u8 *pmk, size_t pmk_len) in wpa_sm_key_mgmt_set_pmk() argument 349 return sm->ctx->key_mgmt_set_pmk(sm->ctx->ctx, pmk, pmk_len); in wpa_sm_key_mgmt_set_pmk()
|
D | wpa.h | 79 int (*key_mgmt_set_pmk)(void *ctx, const u8 *pmk, size_t pmk_len); 115 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, 183 size_t pmk_len) in wpa_sm_set_pmk() argument
|
/external/wpa_supplicant_8/src/ap/ |
D | pmksa_cache_auth.c | 253 const u8 *pmk, size_t pmk_len, in pmksa_cache_auth_add() argument 261 if (pmk_len > PMK_LEN) in pmksa_cache_auth_add() 270 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_auth_add() 271 entry->pmk_len = pmk_len; in pmksa_cache_auth_add() 277 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_auth_add() 320 os_memcpy(entry->pmk, old_entry->pmk, old_entry->pmk_len); in pmksa_cache_add_okc() 321 entry->pmk_len = old_entry->pmk_len; in pmksa_cache_add_okc() 429 rsn_pmkid(entry->pmk, entry->pmk_len, aa, spa, new_pmkid, in pmksa_cache_get_okc()
|
D | pmksa_cache_auth.h | 21 size_t pmk_len; member 52 const u8 *pmk, size_t pmk_len,
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpas_glue.c | 272 int res, pmk_len; in wpa_supplicant_eapol_cb() local 305 pmk_len = PMK_LEN; in wpa_supplicant_eapol_cb() 327 pmk_len = 16; in wpa_supplicant_eapol_cb() 338 "handshake", pmk, pmk_len); in wpa_supplicant_eapol_cb() 341 pmk_len)) { in wpa_supplicant_eapol_cb() 1020 size_t pmk_len) in wpa_supplicant_key_mgmt_set_pmk() argument 1027 NULL, 0, pmk, pmk_len); in wpa_supplicant_key_mgmt_set_pmk()
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_common.c | 141 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, in wpa_pmk_to_ptk() argument 175 sha256_prf(pmk, pmk_len, label, data, sizeof(data), in wpa_pmk_to_ptk() 179 sha1_prf(pmk, pmk_len, label, data, sizeof(data), tmp, ptk_len); in wpa_pmk_to_ptk() 185 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK", pmk, pmk_len); in wpa_pmk_to_ptk() 1017 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, in rsn_pmkid() argument 1031 hmac_sha256_vector(pmk, pmk_len, 3, addr, len, hash); in rsn_pmkid() 1034 hmac_sha1_vector(pmk, pmk_len, 3, addr, len, hash); in rsn_pmkid()
|
D | wpa_common.h | 337 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, 381 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa,
|