hostap/src/common
Jouni Malinen ac734a342e SAE: Fix KCK, PMK, and PMKID derivation for groups 22, 23, 24
IEEE Std 802.11-2016 is not exactly clear on the encoding of the bit
string that is needed for KCK, PMK, and PMKID derivation, but it seems
to make most sense to encode the (commit-scalar + peer-commit-scalar)
mod r part as a bit string by zero padding it from left to the length of
the order (in full octets).

The previous implementation used the length of the prime (in full
octets). This would work for KCK/PMK, but this results in deriving all
zero PMKIDs for the groups where the size of the order is smaller than
the size of the prime. This is the case for groups 22, 23, and 24.
However, those groups have been marked as being unsuitable for use with
SAE, so this fix should not really have a practical impact anymore.
Anyway, better fix it and document this clearly in the implementation
taken into account the unclarity of the standard in this area.

Signed-off-by: Jouni Malinen <j@w1.fi>
2019-08-03 17:00:39 +03:00
..
cli.c cli: Share a common tokenize_cmd() implementation 2016-08-06 12:46:39 +03:00
cli.h cli: Share a common tokenize_cmd() implementation 2016-08-06 12:46:39 +03:00
common_module_tests.c tests: Fix build without CONFIG_SAE 2019-04-09 16:24:38 +03:00
ctrl_iface_common.c hostapd: Add wpa_msg_ctrl() to report Probe Request frames from STA 2017-11-23 20:12:34 +02:00
ctrl_iface_common.h hostapd: Add wpa_msg_ctrl() to report Probe Request frames from STA 2017-11-23 20:12:34 +02:00
defs.h Avoid forward references to enum types in ieee802_11_common.h 2019-01-07 17:26:40 +02:00
dhcp.h FILS: Fix fils_hlp.c build with older netinet/udp.h definitions 2017-02-26 12:18:29 +02:00
dpp.c DPP: Avoid void pointer arithmetic 2019-07-24 19:32:52 +03:00
dpp.h DPP2: Protocol exchange over TCP using Controller/Relay 2019-04-22 21:08:59 +03:00
dragonfly.c dragonfly: Disable use of groups using Brainpool curves 2019-07-27 23:36:27 +03:00
dragonfly.h dragonfly: SAE/EAP-pwd min PWE derivation iteration count to shared code 2019-07-23 21:21:30 +03:00
eapol_common.h PAE: Use be16/be32 instead of u16/u32 for spartse 2016-06-24 01:38:48 +03:00
gas.c DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
gas.h DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
gas_server.c DPP: Fix error path handling for GAS Comeback Response building 2018-11-25 13:51:26 +02:00
gas_server.h DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
hw_features_common.c HE: Pass in HE information into hostapd_set_freq_params() 2019-05-27 17:33:59 +03:00
hw_features_common.h HE: Pass in HE information into hostapd_set_freq_params() 2019-05-27 17:33:59 +03:00
ieee802_1x_defs.h mka: Support GCM-AES-256 2018-08-21 19:28:20 +03:00
ieee802_11_common.c HE: Remove VHT_ prefix from CHANWITDH_* define 2019-05-27 16:27:49 +03:00
ieee802_11_common.h HE: Add HE Operation element to element parser 2019-05-27 16:27:41 +03:00
ieee802_11_defs.h HE: Make the basic NSS/MCS configurable 2019-05-27 17:45:04 +03:00
linux_bridge.h vlan: Use new bridge ioctl() 2019-01-02 00:23:43 +02:00
linux_vlan.h Use own header file for defining Linux VLAN kernel interface 2016-03-26 11:24:38 +02:00
Makefile tests: Add p2p-fuzzer 2015-04-22 11:44:19 +03:00
ocv.c OCV: Add function to verify a received OCI element 2018-12-17 00:02:14 +02:00
ocv.h OCV: Add function to verify a received OCI element 2018-12-17 00:02:14 +02:00
privsep_commands.h Remove all PeerKey functionality 2017-10-16 02:03:47 +03:00
qca-vendor-attr.h Make qca-vendor.h independent of other header files 2014-04-25 11:41:36 +03:00
qca-vendor.h Add QCA vendor attributes for ELNA bypass 2019-07-22 20:48:43 +03:00
sae.c SAE: Fix KCK, PMK, and PMKID derivation for groups 22, 23, 24 2019-08-03 17:00:39 +03:00
sae.h SAE: Fix KCK, PMK, and PMKID derivation for groups 22, 23, 24 2019-08-03 17:00:39 +03:00
tnc.h tests: TNC testing 2014-05-17 20:05:55 +03:00
version.h The master branch is now used for v2.9 development 2019-04-21 17:04:07 +03:00
wpa_common.c Add missed wpa_akm_to_suite() selectors 2019-07-24 12:48:44 +03:00
wpa_common.h DPP2: Extend wpa_pmk_to_ptk() to support extra Z.x component in context 2019-03-18 01:31:31 +02:00
wpa_ctrl.c Android: Harden wpa_ctrl_open2() against potential race conditions 2019-01-06 20:20:20 +02:00
wpa_ctrl.h Make channel switch started event available over control interface 2019-04-22 22:08:07 +03:00
wpa_helpers.c wpa_helpers: Ignore link-local IPv4 address while waiting for DHCP 2017-03-26 21:13:21 +03:00
wpa_helpers.h Add wpa_ctrl helper functions for upper level functionality 2014-03-12 01:09:21 +02:00