From 7122a02fa5b73865b6e5f7604edb8f6d2da6461a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 5 Aug 2019 16:52:20 +0300 Subject: [PATCH] SAE: Fix order_len for FFC groups The KCK, PMK, and PMKID derivation fix broke SAE key derivation for all FFC groups. Fix that by setting sae->tmp->order_len for FFC groups (it was only set for ECC groups). Fixes: ac734a342ed1 ("SAE: Fix KCK, PMK, and PMKID derivation for groups 22, 23, 24") Signed-off-by: Jouni Malinen --- src/common/sae.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/sae.c b/src/common/sae.c index 5614fe960..08fdbfd18 100644 --- a/src/common/sae.c +++ b/src/common/sae.c @@ -70,6 +70,7 @@ int sae_set_group(struct sae_data *sae, int group) } tmp->prime = tmp->prime_buf; + tmp->order_len = tmp->dh->order_len; tmp->order_buf = crypto_bignum_init_set(tmp->dh->order, tmp->dh->order_len); if (tmp->order_buf == NULL) {