]> git.ipfire.org Git - thirdparty/hostap.git/commit
SAE: Minimize timing differences in PWE derivation
authorJouni Malinen <jouni@codeaurora.org>
Tue, 26 Feb 2019 11:05:09 +0000 (13:05 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 9 Apr 2019 14:11:15 +0000 (17:11 +0300)
commit6513db3e96c43c2e36805cf5ead349765d18eaf7
tree748f228a9bf72e36b5d28577aed2023a21d90a92
parentaaf65feac67c3993935634eefe5bc76b9fce03aa
SAE: Minimize timing differences in PWE derivation

The QR test result can provide information about the password to an
attacker, so try to minimize differences in how the
sae_test_pwd_seed_ecc() result is used. (CVE-2019-9494)

Use heap memory for the dummy password to allow the same password length
to be used even with long passwords.

Use constant time selection functions to track the real vs. dummy
variables so that the exact same operations can be performed for both QR
test results.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/sae.c