Home
last modified time | relevance | path

Searched refs:dh_privkey (Results 1 – 8 of 8) sorted by relevance

/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c26 wpabuf_clear_free(wps->dh_privkey); in wps_build_public_key()
27 wps->dh_privkey = NULL; in wps_build_public_key()
28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey && in wps_build_public_key()
36 wps->dh_privkey = wpabuf_dup(wps->wps->dh_privkey); in wps_build_public_key()
61 wps->dh_privkey = wpabuf_dup(wps->wps->ap_nfc_dh_privkey); in wps_build_public_key()
63 if (wps->dh_privkey && pubkey) in wps_build_public_key()
64 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key()
69 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key()
72 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key()
78 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_build_public_key()
Dwps_common.c70 if (wps->dh_privkey == NULL) { in wps_derive_keys()
81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_derive_keys()
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys()
93 wpabuf_clear_free(wps->dh_privkey); in wps_derive_keys()
94 wps->dh_privkey = NULL; in wps_derive_keys()
Dwps_i.h61 struct wpabuf *dh_privkey; member
Dwps.c175 wpabuf_clear_free(data->dh_privkey); in wps_deinit()
Dwps.h689 struct wpabuf *dh_privkey; member
/external/wpa_supplicant_8/wpa_supplicant/
Dwps_supplicant.c1689 wpabuf_free(wpa_s->wps->dh_privkey); in wpas_wps_deinit()
2384 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc()
2385 wps->dh_privkey = wpabuf_dup(wpa_s->conf->wps_nfc_dh_privkey); in wpas_wps_start_nfc()
2387 if (wps->dh_privkey == NULL || wps->dh_pubkey == NULL) { in wpas_wps_start_nfc()
2391 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc()
2392 wps->dh_privkey = NULL; in wpas_wps_start_nfc()
2396 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_wps_start_nfc()
2400 wpabuf_free(wps->dh_privkey); in wpas_wps_start_nfc()
2401 wps->dh_privkey = NULL; in wpas_wps_start_nfc()
Dap.c1612 wpabuf_free(wps->dh_privkey); in wpas_ap_wps_add_nfc_pw()
1613 wps->dh_privkey = wpabuf_dup( in wpas_ap_wps_add_nfc_pw()
1617 if (wps->dh_privkey == NULL || wps->dh_pubkey == NULL) { in wpas_ap_wps_add_nfc_pw()
1621 wpabuf_free(wps->dh_privkey); in wpas_ap_wps_add_nfc_pw()
1622 wps->dh_privkey = NULL; in wpas_ap_wps_add_nfc_pw()
1625 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, wps->dh_pubkey); in wpas_ap_wps_add_nfc_pw()
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c1075 wpabuf_free(wps->dh_privkey); in hostapd_free_wps()