SAE hash-to-element configuration

Add parsing of sae_pwe argument to ap_set_security/sta_set_security and
map this to sae_pwe parameter for hostapd/wpa_supplicant.

Add -2 command line argument to allow overriding the hostapd and
wpa_supplicant default value for sae_pwe=0 with 2, i.e., to enable both
hunting-and-pecking loop and hash-to-element. This is needed for now
since hash-to-element is not enabled by default, but this part may be
removed once the sae_pwe default value is changed.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
4 files changed