Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/rsn_supp/
Dpmksa_cache.c126 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 …]
Dpmksa_cache.h19 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
Dpreauth.c81 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()
Dwpa.c165 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 …]
Dwpa_i.h23 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()
Dwpa.h79 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/
Dpmksa_cache_auth.c253 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()
Dpmksa_cache_auth.h21 size_t pmk_len; member
52 const u8 *pmk, size_t pmk_len,
/external/wpa_supplicant_8/wpa_supplicant/
Dwpas_glue.c272 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/
Dwpa_common.c141 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()
Dwpa_common.h337 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,