]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/mesh_rsn.c
mesh: Fix PMKID to match the standard
authorBob Copeland <me@bobcopeland.com>
Sun, 27 Dec 2015 02:20:51 +0000 (21:20 -0500)
committerJouni Malinen <j@w1.fi>
Mon, 28 Dec 2015 15:21:08 +0000 (17:21 +0200)
commit6c33eed3ee7fd6bd9c561295e001a6b63adbb88d
treee84caa820b43ebc8fe5f7d70ce1df85dd7b9f34c
parentede7770180f6ad27f1cade7ed0cf782e39400e79
mesh: Fix PMKID to match the standard

IEEE Std 802.11-2012 11.3.5.4 specifies the PMKID for SAE-derived keys
as:

   L((commit-scalar + peer-commit-scalar) mod r, 0, 128)

This is already calculated in the SAE code when the PMK is derived, but
not saved anywhere. Later, when generating the PMKID for plink action
frames, the definition for PMKID from 11.6.1.3 is incorrectly used.
Correct this by saving the PMKID when the key is generated and use it
subsequently.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
src/common/sae.c
src/common/sae.h
wpa_supplicant/mesh_rsn.c