/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/ |
D | pmksa_cache.c | 52 static void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, in rsn_pmkid() argument 66 hmac_sha256_vector(pmk, pmk_len, 3, addr, len, hash); in rsn_pmkid() 69 hmac_sha1_vector(pmk, pmk_len, 3, addr, len, hash); in rsn_pmkid() 164 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 170 if (pmksa->sm->proto != WPA_PROTO_RSN || pmk_len > PMK_LEN) in pmksa_cache_add() 176 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_add() 177 entry->pmk_len = pmk_len; in pmksa_cache_add() 178 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_add() 194 if (pos->pmk_len == pmk_len && in pmksa_cache_add() 195 os_memcmp(pos->pmk, pmk, pmk_len) == 0 && in pmksa_cache_add() [all …]
|
D | pmksa_cache.h | 25 size_t pmk_len; member 58 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, 102 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() 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, in rsn_preauth_eapol_cb()
|
D | wpa.c | 218 sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk() 224 int res, pmk_len; in wpa_supplicant_get_pmk() local 225 pmk_len = PMK_LEN; in wpa_supplicant_get_pmk() 233 pmk_len = 16; in wpa_supplicant_get_pmk() 247 "machines", sm->pmk, pmk_len); in wpa_supplicant_get_pmk() 248 sm->pmk_len = pmk_len; in wpa_supplicant_get_pmk() 249 pmksa_cache_add(sm->pmksa, sm->pmk, pmk_len, src_addr, in wpa_supplicant_get_pmk() 368 wpa_pmk_to_ptk(sm->pmk, sm->pmk_len, "Pairwise key expansion", in wpa_derive_ptk() 1832 (sm->pmk_len == entry->pmk_len && in wpa_sm_pmksa_free_cb() 1833 os_memcmp(sm->pmk, entry->pmk, sm->pmk_len) == 0)) { in wpa_sm_pmksa_free_cb() [all …]
|
D | wpa.h | 97 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len); 151 size_t pmk_len) in wpa_sm_set_pmk() argument
|
D | wpa_i.h | 27 size_t pmk_len; member
|
/external/wpa_supplicant_8/src/ap/ |
D | pmksa_cache_auth.c | 230 const u8 *pmk, size_t pmk_len, in pmksa_cache_auth_add() argument 237 if (pmk_len > PMK_LEN) in pmksa_cache_auth_add() 243 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_auth_add() 244 entry->pmk_len = pmk_len; in pmksa_cache_auth_add() 245 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_auth_add() 288 os_memcpy(entry->pmk, old_entry->pmk, old_entry->pmk_len); in pmksa_cache_add_okc() 289 entry->pmk_len = old_entry->pmk_len; in pmksa_cache_add_okc() 390 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 48 const u8 *pmk, size_t pmk_len,
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | pmksa_cache.c | 124 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument 130 if (pmk_len > PMK_LEN) in pmksa_cache_add() 136 os_memcpy(entry->pmk, pmk, pmk_len); in pmksa_cache_add() 137 entry->pmk_len = pmk_len; in pmksa_cache_add() 138 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, in pmksa_cache_add() 154 if (pos->pmk_len == pmk_len && in pmksa_cache_add() 155 os_memcmp(pos->pmk, pmk, pmk_len) == 0 && in pmksa_cache_add() 321 new_entry = pmksa_cache_add(pmksa, old_entry->pmk, old_entry->pmk_len, in pmksa_cache_clone_entry()
|
D | pmksa_cache.h | 19 size_t pmk_len; member 53 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, 99 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, in pmksa_cache_add() argument
|
D | preauth.c | 80 int res, pmk_len; in rsn_preauth_eapol_cb() local 81 pmk_len = PMK_LEN; in rsn_preauth_eapol_cb() 89 pmk_len = 16; in rsn_preauth_eapol_cb() 93 pmk, pmk_len); in rsn_preauth_eapol_cb() 94 sm->pmk_len = pmk_len; in rsn_preauth_eapol_cb() 95 pmksa_cache_add(sm->pmksa, pmk, pmk_len, in rsn_preauth_eapol_cb()
|
D | wpa.c | 165 sm->pmk, sm->pmk_len); in wpa_supplicant_get_pmk() 171 int res, pmk_len; in wpa_supplicant_get_pmk() local 172 pmk_len = PMK_LEN; in wpa_supplicant_get_pmk() 180 pmk_len = 16; in wpa_supplicant_get_pmk() 194 "machines", sm->pmk, pmk_len); in wpa_supplicant_get_pmk() 195 sm->pmk_len = pmk_len; in wpa_supplicant_get_pmk() 198 pmksa_cache_add(sm->pmksa, sm->pmk, pmk_len, in wpa_supplicant_get_pmk() 359 wpa_pmk_to_ptk(sm->pmk, sm->pmk_len, "Pairwise key expansion", in wpa_derive_ptk() 2009 (sm->pmk_len == entry->pmk_len && in wpa_sm_pmksa_free_cb() 2010 os_memcmp(sm->pmk, entry->pmk, sm->pmk_len) == 0)) { in wpa_sm_pmksa_free_cb() [all …]
|
D | wpa.h | 99 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len); 160 size_t pmk_len) in wpa_sm_set_pmk() argument
|
D | wpa_i.h | 23 size_t pmk_len; member
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_common.c | 87 void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, in wpa_pmk_to_ptk() argument 114 sha256_prf(pmk, pmk_len, label, data, sizeof(data), in wpa_pmk_to_ptk() 118 sha1_prf(pmk, pmk_len, label, data, sizeof(data), ptk, in wpa_pmk_to_ptk() 125 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK", pmk, pmk_len); in wpa_pmk_to_ptk() 867 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, in rsn_pmkid() argument 881 hmac_sha256_vector(pmk, pmk_len, 3, addr, len, hash); in rsn_pmkid() 884 hmac_sha1_vector(pmk, pmk_len, 3, addr, len, hash); in rsn_pmkid()
|
D | wpa_common.h | 302 void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, 345 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa,
|
/external/wpa_supplicant_6/wpa_supplicant/src/common/ |
D | wpa_common.c | 93 void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, in wpa_pmk_to_ptk() argument 120 sha256_prf(pmk, pmk_len, label, data, sizeof(data), in wpa_pmk_to_ptk() 124 sha1_prf(pmk, pmk_len, label, data, sizeof(data), ptk, in wpa_pmk_to_ptk() 129 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK", pmk, pmk_len); in wpa_pmk_to_ptk()
|
D | wpa_common.h | 294 void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
|
/external/wpa_supplicant_6/wpa_supplicant/ |
D | wpas_glue.c | 226 int res, pmk_len; in wpa_supplicant_eapol_cb() local 253 pmk_len = PMK_LEN; in wpa_supplicant_eapol_cb() 261 pmk_len = 16; in wpa_supplicant_eapol_cb() 271 pmk_len)) { in wpa_supplicant_eapol_cb()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpas_glue.c | 223 int res, pmk_len; in wpa_supplicant_eapol_cb() local 250 pmk_len = PMK_LEN; in wpa_supplicant_eapol_cb() 272 pmk_len = 16; in wpa_supplicant_eapol_cb() 283 "handshake", pmk, pmk_len); in wpa_supplicant_eapol_cb() 286 pmk_len)) { in wpa_supplicant_eapol_cb()
|