Home
last modified time | relevance | path

Searched refs:pmk_len (Results 1 – 20 of 20) sorted by relevance

/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/
Dpmksa_cache.c52 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 …]
Dpmksa_cache.h25 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
Dpreauth.c90 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()
Dwpa.c218 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 …]
Dwpa.h97 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
Dwpa_i.h27 size_t pmk_len; member
/external/wpa_supplicant_8/src/ap/
Dpmksa_cache_auth.c230 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()
Dpmksa_cache_auth.h21 size_t pmk_len; member
48 const u8 *pmk, size_t pmk_len,
/external/wpa_supplicant_8/src/rsn_supp/
Dpmksa_cache.c124 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()
Dpmksa_cache.h19 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
Dpreauth.c80 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()
Dwpa.c165 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 …]
Dwpa.h99 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
Dwpa_i.h23 size_t pmk_len; member
/external/wpa_supplicant_8/src/common/
Dwpa_common.c87 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()
Dwpa_common.h302 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/
Dwpa_common.c93 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()
Dwpa_common.h294 void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
/external/wpa_supplicant_6/wpa_supplicant/
Dwpas_glue.c226 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/
Dwpas_glue.c223 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()