/external/wpa_supplicant_8/src/ap/ |
D | peerkey_auth.c | 163 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()
|
D | wpa_auth_ft.c | 146 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 …]
|
D | ap_config.h | 100 #define PMK_LEN 32 macro 103 u8 psk[PMK_LEN]; 109 u8 psk[PMK_LEN];
|
D | preauth_auth.c | 205 if (len > PMK_LEN) in rsn_preauth_finished() 206 len = PMK_LEN; in rsn_preauth_finished()
|
D | wpa_auth_i.h | 61 u8 PMK[PMK_LEN]; 112 u8 xxkey[PMK_LEN]; /* PSK or the second 256 bits of MSK */
|
D | pmksa_cache_auth.h | 20 u8 pmk[PMK_LEN];
|
D | wpa_auth.c | 1714 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 …]
|
D | wps_hostapd.c | 115 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()
|
D | wpa_auth.h | 70 u8 pmk_r1[PMK_LEN]; 89 u8 pmk_r1[PMK_LEN];
|
D | ap_config.c | 269 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/ |
D | wpa_i.h | 22 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];
|
D | peerkey.c | 314 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()
|
D | preauth.c | 78 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()
|
D | peerkey.h | 23 u8 smk[PMK_LEN];
|
D | pmksa_cache.h | 18 u8 pmk[PMK_LEN];
|
D | wpa.c | 176 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()
|
D | wpa_ft.c | 38 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/ |
D | wpas_glue.c | 240 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()
|
D | ibss_rsn.h | 50 u8 psk[PMK_LEN];
|
D | eapol_test.c | 60 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()
|
D | wpa_supplicant.c | 1170 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 …]
|
D | config.c | 337 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/ |
D | test_wpa.c | 23 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/ |
D | wpa_common.c | 772 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()
|
D | wpa_common.h | 16 #define PMK_LEN 32 macro
|