mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
WPS: Add more debug info for DH keys
This commit is contained in:
parent
a33c5f96b8
commit
c01106f3e8
@ -47,6 +47,8 @@ int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg)
|
|||||||
wpabuf_free(pubkey);
|
wpabuf_free(pubkey);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey);
|
||||||
|
wpa_hexdump_buf(MSG_DEBUG, "WPS: DH Public Key", pubkey);
|
||||||
|
|
||||||
wpabuf_put_be16(msg, ATTR_PUBLIC_KEY);
|
wpabuf_put_be16(msg, ATTR_PUBLIC_KEY);
|
||||||
wpabuf_put_be16(msg, wpabuf_len(pubkey));
|
wpabuf_put_be16(msg, wpabuf_len(pubkey));
|
||||||
|
@ -81,6 +81,8 @@ int wps_derive_keys(struct wps_data *wps)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey);
|
||||||
|
wpa_hexdump_buf(MSG_DEBUG, "WPS: DH Public Key", pubkey);
|
||||||
dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey);
|
dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey);
|
||||||
dh5_free(wps->dh_ctx);
|
dh5_free(wps->dh_ctx);
|
||||||
wps->dh_ctx = NULL;
|
wps->dh_ctx = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user