Home
last modified time | relevance | path

Searched refs:PMK_LEN (Results 1 – 25 of 37) sorted by relevance

12

/external/wpa_supplicant_8/src/ap/
Dpeerkey_auth.c163 2 + RSN_SELECTOR_LEN + PMK_LEN + WPA_NONCE_LEN + in wpa_send_smk_m4()
178 pos = wpa_add_kde(pos, RSN_KEY_DATA_SMK, smk, PMK_LEN, in wpa_send_smk_m4()
217 2 + RSN_SELECTOR_LEN + PMK_LEN + WPA_NONCE_LEN + in wpa_send_smk_m5()
235 pos = wpa_add_kde(pos, RSN_KEY_DATA_SMK, smk, PMK_LEN, in wpa_send_smk_m5()
292 if (random_get_bytes(smk, PMK_LEN)) { in wpa_smk_m3()
308 sha256_prf(smk, PMK_LEN, "SMK Derivation", buf, sizeof(buf), in wpa_smk_m3()
309 smk, PMK_LEN); in wpa_smk_m3()
311 sha1_prf(smk, PMK_LEN, "SMK Derivation", buf, sizeof(buf), in wpa_smk_m3()
312 smk, PMK_LEN); in wpa_smk_m3()
315 wpa_hexdump_key(MSG_DEBUG, "RSN: SMK", smk, PMK_LEN); in wpa_smk_m3()
Dwpa_auth_ft.c146 u8 pmk_r0[PMK_LEN];
156 u8 pmk_r1[PMK_LEN];
187 os_memset(r0prev->pmk_r0, 0, PMK_LEN); in wpa_ft_pmk_cache_deinit()
195 os_memset(r1prev->pmk_r1, 0, PMK_LEN); in wpa_ft_pmk_cache_deinit()
216 os_memcpy(r0->pmk_r0, pmk_r0, PMK_LEN); in wpa_ft_store_pmk_r0()
240 os_memcpy(pmk_r0, r0->pmk_r0, PMK_LEN); in wpa_ft_fetch_pmk_r0()
266 os_memcpy(r1->pmk_r1, pmk_r1, PMK_LEN); in wpa_ft_store_pmk_r1()
290 os_memcpy(pmk_r1, r1->pmk_r1, PMK_LEN); in wpa_ft_fetch_pmk_r1()
365 u8 pmk_r0[PMK_LEN], pmk_r0_name[WPA_PMK_NAME_LEN]; in wpa_auth_derive_ptk_ft()
366 u8 pmk_r1[PMK_LEN]; in wpa_auth_derive_ptk_ft()
[all …]
Dap_config.h100 #define PMK_LEN 32 macro
103 u8 psk[PMK_LEN];
109 u8 psk[PMK_LEN];
Dpreauth_auth.c205 if (len > PMK_LEN) in rsn_preauth_finished()
206 len = PMK_LEN; in rsn_preauth_finished()
Dwpa_auth_i.h61 u8 PMK[PMK_LEN];
112 u8 xxkey[PMK_LEN]; /* PSK or the second 256 bits of MSK */
Dpmksa_cache_auth.h20 u8 pmk[PMK_LEN];
Dwpa_auth.c1714 u8 msk[2 * PMK_LEN]; in SM_STATE()
1715 size_t len = 2 * PMK_LEN; in SM_STATE()
1723 os_memcpy(sm->PMK, sm->pmksa->pmk, PMK_LEN); in SM_STATE()
1727 os_memcpy(sm->PMK, msk, PMK_LEN); in SM_STATE()
1729 if (len >= 2 * PMK_LEN) { in SM_STATE()
1730 os_memcpy(sm->xxkey, msk + PMK_LEN, PMK_LEN); in SM_STATE()
1731 sm->xxkey_len = PMK_LEN; in SM_STATE()
1757 os_memcpy(sm->PMK, psk, PMK_LEN); in SM_STATE()
1759 os_memcpy(sm->xxkey, psk, PMK_LEN); in SM_STATE()
1760 sm->xxkey_len = PMK_LEN; in SM_STATE()
[all …]
Dwps_hostapd.c115 if (psk_len != PMK_LEN) { in hostapd_wps_new_psk_cb()
127 os_memcpy(p->psk, psk, PMK_LEN); in hostapd_wps_new_psk_cb()
139 char hex[PMK_LEN * 2 + 1]; in hostapd_wps_new_psk_cb()
373 bss->ssid.wpa_psk->psk, PMK_LEN) == 0) { in hapd_wps_reconfig_in_memory()
1081 wps->network_key = os_malloc(2 * PMK_LEN + 1); in hostapd_init_wps()
1084 wpa_snprintf_hex((char *) wps->network_key, 2 * PMK_LEN + 1, in hostapd_init_wps()
1085 conf->ssid.wpa_psk->psk, PMK_LEN); in hostapd_init_wps()
1086 wps->network_key_len = 2 * PMK_LEN; in hostapd_init_wps()
1097 os_memcpy(wps->psk, conf->ssid.wpa_psk->psk, PMK_LEN); in hostapd_init_wps()
Dwpa_auth.h70 u8 pmk_r1[PMK_LEN];
89 u8 pmk_r1[PMK_LEN];
Dap_config.c269 if (len == 64 && hexstr2bin(pos, psk->psk, PMK_LEN) == 0) in hostapd_config_read_wpa_psk()
273 4096, psk->psk, PMK_LEN); in hostapd_config_read_wpa_psk()
308 4096, ssid->wpa_psk->psk, PMK_LEN); in hostapd_derive_psk()
310 ssid->wpa_psk->psk, PMK_LEN); in hostapd_derive_psk()
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_i.h22 u8 pmk[PMK_LEN];
108 u8 xxkey[PMK_LEN]; /* PSK or the second 256 bits of MSK */
110 u8 pmk_r0[PMK_LEN];
112 u8 pmk_r1[PMK_LEN];
Dpeerkey.c314 hmac_sha256_vector(smk, PMK_LEN, 5, addr, len, hash); in rsn_smkid()
317 hmac_sha1_vector(smk, PMK_LEN, 5, addr, len, hash); in rsn_smkid()
440 if (os_memcmp(kde->smk + PMK_LEN, peerkey->pnonce, WPA_NONCE_LEN) != 0) in wpa_supplicant_process_smk_m4()
482 if (os_memcmp(kde->smk + PMK_LEN, peerkey->inonce, WPA_NONCE_LEN) != 0) in wpa_supplicant_process_smk_m5()
534 kde.smk == NULL || kde.smk_len < PMK_LEN + WPA_NONCE_LEN || in wpa_supplicant_process_smk_m45()
564 os_memcpy(peerkey->smk, kde.smk, PMK_LEN); in wpa_supplicant_process_smk_m45()
566 wpa_hexdump_key(MSG_DEBUG, "RSN: SMK", peerkey->smk, PMK_LEN); in wpa_supplicant_process_smk_m45()
694 wpa_pmk_to_ptk(peerkey->smk, PMK_LEN, "Peer key expansion", in wpa_supplicant_process_stk_1_of_4()
919 wpa_pmk_to_ptk(peerkey->smk, PMK_LEN, "Peer key expansion", in peerkey_verify_eapol_key_mic()
Dpreauth.c78 u8 pmk[PMK_LEN]; in rsn_preauth_eapol_cb()
82 pmk_len = PMK_LEN; in rsn_preauth_eapol_cb()
83 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in rsn_preauth_eapol_cb()
Dpeerkey.h23 u8 smk[PMK_LEN];
Dpmksa_cache.h18 u8 pmk[PMK_LEN];
Dwpa.c176 pmk_len = PMK_LEN; in wpa_supplicant_get_pmk()
177 res = eapol_sm_get_key(sm->eapol, sm->pmk, PMK_LEN); in wpa_supplicant_get_pmk()
187 u8 buf[2 * PMK_LEN]; in wpa_supplicant_get_pmk()
188 if (eapol_sm_get_key(sm->eapol, buf, 2 * PMK_LEN) == 0) in wpa_supplicant_get_pmk()
190 os_memcpy(sm->xxkey, buf + PMK_LEN, PMK_LEN); in wpa_supplicant_get_pmk()
191 sm->xxkey_len = PMK_LEN; in wpa_supplicant_get_pmk()
2221 sm->pmk_len = PMK_LEN; in wpa_sm_set_pmk_from_pmksa()
2222 os_memset(sm->pmk, 0, PMK_LEN); in wpa_sm_set_pmk_from_pmksa()
Dwpa_ft.c38 wpa_hexdump_key(MSG_DEBUG, "FT: PMK-R0", sm->pmk_r0, PMK_LEN); in wpa_derive_ptk_ft()
43 wpa_hexdump_key(MSG_DEBUG, "FT: PMK-R1", sm->pmk_r1, PMK_LEN); in wpa_derive_ptk_ft()
476 wpa_hexdump_key(MSG_DEBUG, "FT: PMK-R1", sm->pmk_r1, PMK_LEN); in wpa_ft_process_response()
/external/wpa_supplicant_8/wpa_supplicant/
Dwpas_glue.c240 u8 pmk[PMK_LEN]; in wpa_supplicant_eapol_cb()
272 pmk_len = PMK_LEN; in wpa_supplicant_eapol_cb()
275 u8 buf[2 * PMK_LEN]; in wpa_supplicant_eapol_cb()
278 res = eapol_sm_get_key(eapol, buf, 2 * PMK_LEN); in wpa_supplicant_eapol_cb()
280 os_memcpy(pmk, buf + PMK_LEN, PMK_LEN); in wpa_supplicant_eapol_cb()
287 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); in wpa_supplicant_eapol_cb()
Dibss_rsn.h50 u8 psk[PMK_LEN];
Deapol_test.c60 u8 authenticator_pmk[PMK_LEN];
347 u8 pmk[PMK_LEN]; in eapol_test_compare_pmk()
352 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) { in eapol_test_compare_pmk()
353 wpa_hexdump(MSG_DEBUG, "PMK from EAPOL", pmk, PMK_LEN); in eapol_test_compare_pmk()
354 if (os_memcmp(pmk, e->authenticator_pmk, PMK_LEN) != 0) { in eapol_test_compare_pmk()
357 e->authenticator_pmk, PMK_LEN); in eapol_test_compare_pmk()
809 keys->recv_len > PMK_LEN ? PMK_LEN : in ieee802_1x_get_keys()
Dwpa_supplicant.c1170 wpa_sm_set_pmk(wpa_s->wpa, ssid->psk, PMK_LEN); in wpa_supplicant_set_suites()
1174 u8 psk[PMK_LEN]; in wpa_supplicant_set_suites()
1176 4096, psk, PMK_LEN); in wpa_supplicant_set_suites()
1178 psk, PMK_LEN); in wpa_supplicant_set_suites()
1179 wpa_sm_set_pmk(wpa_s->wpa, psk, PMK_LEN); in wpa_supplicant_set_suites()
1187 u8 psk[PMK_LEN]; in wpa_supplicant_set_suites()
1210 4096, psk, PMK_LEN); in wpa_supplicant_set_suites()
1214 psk, PMK_LEN); in wpa_supplicant_set_suites()
1215 wpa_sm_set_pmk(wpa_s->wpa, psk, PMK_LEN); in wpa_supplicant_set_suites()
1218 if (wpabuf_len(pw) == 2 * PMK_LEN) { in wpa_supplicant_set_suites()
[all …]
Dconfig.c337 if (hexstr2bin(value, ssid->psk, PMK_LEN) || in wpa_config_parse_psk()
338 value[PMK_LEN * 2] != '\0') { in wpa_config_parse_psk()
348 wpa_hexdump_key(MSG_MSGDUMP, "PSK", ssid->psk, PMK_LEN); in wpa_config_parse_psk()
374 return wpa_config_write_string_hex(ssid->psk, PMK_LEN); in wpa_config_write_psk()
1522 if (hexstr2bin(pos, p->psk, PMK_LEN) || pos[PMK_LEN * 2] != '\0') { in wpa_config_parse_psk_list()
2437 ssid->psk, PMK_LEN); in wpa_config_update_psk()
2439 ssid->psk, PMK_LEN); in wpa_config_update_psk()
/external/wpa_supplicant_8/wpa_supplicant/tests/
Dtest_wpa.c23 u8 psk[PMK_LEN];
194 wpa_sm_set_pmk(wpa->supp, wpa->psk, PMK_LEN); in supp_init()
339 os_memset(wpa.psk, 0x44, PMK_LEN); in main()
/external/wpa_supplicant_8/src/common/
Dwpa_common.c772 os_memcpy(pmk_r0, r0_key_data, PMK_LEN); in wpa_derive_pmk_r0()
779 addr[1] = r0_key_data + PMK_LEN; in wpa_derive_pmk_r0()
836 sha256_prf(pmk_r0, PMK_LEN, "FT-R1", buf, pos - buf, pmk_r1, PMK_LEN); in wpa_derive_pmk_r1()
871 sha256_prf(pmk_r1, PMK_LEN, "FT-PTK", buf, pos - buf, ptk, ptk_len); in wpa_pmk_r1_to_ptk()
Dwpa_common.h16 #define PMK_LEN 32 macro

12