]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Fix order_len for FFC groups
authorJouni Malinen <jouni@codeaurora.org>
Mon, 5 Aug 2019 13:52:20 +0000 (16:52 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 5 Aug 2019 13:52:20 +0000 (16:52 +0300)
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 <jouni@codeaurora.org>
src/common/sae.c

index 5614fe960cd4a171a24e7d98895a67268bfc2e2d..08fdbfd181732d18fe5bffa44865af7a46419a35 100644 (file)
@@ -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) {