/external/wpa_supplicant_8/src/rsn_supp/ |
D | pmksa_cache.c | 127 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 134 if (pmk_len > PMK_LEN_MAX) in pmksa_cache_add() 143 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_add() 144 entry->pmk_len = pmk_len; in pmksa_cache_add() 152 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_add() 168 if (pos->pmk_len == pmk_len && in pmksa_cache_add() 169 os_memcmp_const(pos->pmk, pmk, pmk_len) == 0 && in pmksa_cache_add() 196 pos->pmk_len); in pmksa_cache_add() 262 const u8 *pmk, size_t pmk_len) in pmksa_cache_flush() argument 272 (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, NULL, in rsn_preauth_eapol_cb()
|
D | wpa.c | 172 if (wpa_sm_key_mgmt_set_pmk(sm, sm->pmk, sm->pmk_len)) in wpa_supplicant_key_mgmt_set_pmk() 209 sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk() 215 int res, pmk_len; in wpa_supplicant_get_pmk() local 218 pmk_len = PMK_LEN_SUITE_B_192; in wpa_supplicant_get_pmk() 220 pmk_len = PMK_LEN; in wpa_supplicant_get_pmk() 221 res = eapol_sm_get_key(sm->eapol, sm->pmk, pmk_len); in wpa_supplicant_get_pmk() 223 if (pmk_len == PMK_LEN) { in wpa_supplicant_get_pmk() 229 pmk_len = 16; in wpa_supplicant_get_pmk() 245 "machines", sm->pmk, pmk_len); in wpa_supplicant_get_pmk() 246 sm->pmk_len = pmk_len; in wpa_supplicant_get_pmk() [all …]
|
D | wpa_i.h | 23 size_t pmk_len; member 349 const u8 *pmk, size_t pmk_len) in wpa_sm_key_mgmt_set_pmk() argument 353 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); 116 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, 184 size_t pmk_len, const u8 *pmkid, in wpa_sm_set_pmk() argument
|
/external/wpa_supplicant_8/src/ap/ |
D | pmksa_cache_auth.c | 280 const u8 *pmk, size_t pmk_len, const u8 *pmkid, in pmksa_cache_auth_add() argument 288 if (pmk_len > PMK_LEN_MAX) in pmksa_cache_auth_add() 297 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_auth_add() 298 entry->pmk_len = pmk_len; in pmksa_cache_auth_add() 306 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_auth_add() 349 os_memcpy(entry->pmk, old_entry->pmk, old_entry->pmk_len); in pmksa_cache_add_okc() 350 entry->pmk_len = old_entry->pmk_len; in pmksa_cache_add_okc() 464 rsn_pmkid(entry->pmk, entry->pmk_len, aa, spa, new_pmkid, in pmksa_cache_get_okc()
|
D | wpa_auth.c | 47 const u8 *pmk, unsigned int pmk_len, 831 unsigned int pmk_len; in wpa_try_alt_snonce() local 839 pmk_len = PMK_LEN; in wpa_try_alt_snonce() 842 pmk_len = sm->pmk_len; in wpa_try_alt_snonce() 845 wpa_derive_ptk(sm, sm->alt_SNonce, pmk, pmk_len, &PTK); in wpa_try_alt_snonce() 1912 os_memcpy(sm->PMK, sm->pmksa->pmk, sm->pmksa->pmk_len); in SM_STATE() 1913 sm->pmk_len = sm->pmksa->pmk_len; in SM_STATE() 1915 unsigned int pmk_len; in SM_STATE() local 1918 pmk_len = PMK_LEN_SUITE_B_192; in SM_STATE() 1920 pmk_len = PMK_LEN; in SM_STATE() [all …]
|
D | pmksa_cache_auth.h | 21 size_t pmk_len; member 51 const u8 *pmk, size_t pmk_len, const u8 *pmkid,
|
D | wpa_auth_i.h | 64 unsigned int pmk_len; member
|
D | wpa_auth.h | 291 unsigned int 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() 1027 size_t pmk_len) in wpa_supplicant_key_mgmt_set_pmk() argument 1034 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 sha384_prf(pmk, pmk_len, label, data, sizeof(data), in wpa_pmk_to_ptk() 181 sha256_prf(pmk, pmk_len, label, data, sizeof(data), in wpa_pmk_to_ptk() 185 sha1_prf(pmk, pmk_len, label, data, sizeof(data), tmp, ptk_len); in wpa_pmk_to_ptk() 191 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK", pmk, pmk_len); in wpa_pmk_to_ptk() 1044 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, in rsn_pmkid() argument 1058 hmac_sha256_vector(pmk, pmk_len, 3, addr, len, hash); in rsn_pmkid() 1061 hmac_sha1_vector(pmk, pmk_len, 3, addr, len, hash); in rsn_pmkid()
|
D | wpa_common.h | 339 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, 383 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa,
|