-
Committer:
Jouni Malinen
-
Author(s):
Andrei Otcheretianski
-
Date:
2020-10-19 21:37:01 UTC
-
Revision ID:
git-v1:80662accb5e945a7ac285e023138a5f79798b417
SAE: Don't use potentially uninitialized keys
If SAE_CONFIG_PK is not defined and sae->pk isn't zero (which is
possible as it is controlled by the commit message status code),
sae_derive_keys() may end up deriving PMK and KCK from an
uninitialized array. Fix that.
Fixes: 6b9e99e571ee ("SAE-PK: Extend SAE functionality for AP validation")
Fixes: 20ccf97b3dc1 ("SAE-PK: AP functionality")
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>