Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c26 wpabuf_free(wps->dh_privkey); in wps_build_public_key()
27 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey) { in wps_build_public_key()
29 wps->dh_privkey = wpabuf_dup(wps->wps->dh_privkey); in wps_build_public_key()
35 wps->dh_privkey = NULL; in wps_build_public_key()
37 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key()
40 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key()
46 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_build_public_key()
Dwps_common.c67 if (wps->dh_privkey == NULL) { in wps_derive_keys()
78 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_derive_keys()
80 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys()
90 wpabuf_free(wps->dh_privkey); in wps_derive_keys()
91 wps->dh_privkey = NULL; in wps_derive_keys()
Dwps_i.h58 struct wpabuf *dh_privkey; member
Dwps.h632 struct wpabuf *dh_privkey; member
Dwps.c130 wpabuf_free(data->dh_privkey); in wps_deinit()
/external/wpa_supplicant_6/wpa_supplicant/src/wps/
Dwps_common.c72 if (wps->dh_privkey == NULL) { in wps_derive_keys()
83 dh_shared = dh_derive_shared(pubkey, wps->dh_privkey, in wps_derive_keys()
92 wpabuf_free(wps->dh_privkey); in wps_derive_keys()
93 wps->dh_privkey = NULL; in wps_derive_keys()
Dwps.c110 wpabuf_free(data->dh_privkey); in wps_deinit()
Dwps_attr_build.c29 pubkey = dh_init(dh_groups_get(WPS_DH_GROUP), &wps->dh_privkey); in wps_build_public_key()
Dwps_i.h59 struct wpabuf *dh_privkey; member
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c1000 wpabuf_free(hapd->wps->dh_privkey); in hostapd_deinit_wps()
1121 wpabuf_free(wps->dh_privkey); in hostapd_wps_start_oob()
1122 wps->dh_privkey = NULL; in hostapd_wps_start_oob()
1124 &wps->dh_privkey); in hostapd_wps_start_oob()
1148 wpabuf_free(wps->dh_privkey); in hostapd_wps_start_oob()
1149 wps->dh_privkey = NULL; in hostapd_wps_start_oob()
/external/wpa_supplicant_8/wpa_supplicant/
Dwps_supplicant.c958 wpabuf_free(wps->dh_privkey); in wpas_wps_start_oob()
959 wps->dh_privkey = NULL; in wpas_wps_start_oob()
962 wps->dh_ctx = dh5_init(&wps->dh_privkey, &wps->dh_pubkey); in wpas_wps_start_oob()
1228 wpabuf_free(wpa_s->wps->dh_privkey); in wpas_wps_deinit()