hostapd: Update to version 2.8 (2019-04-21)
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 066-0005-EAP-pwd-Run-through-prf-result-processing-even-if-it.patch
index 9ad474757dd972a4f22a57c27d8bd6d17fcc2cc3..1eb47c5314ed8d615a0eda228a3d7b3a63a6efb5 100644 (file)
@@ -17,7 +17,7 @@ Signed-off-by: Jouni Malinen <j@w1.fi>
 --- a/src/eap_common/eap_pwd_common.c
 +++ b/src/eap_common/eap_pwd_common.c
 @@ -155,6 +155,8 @@ int compute_password_element(EAP_PWD_gro
 --- a/src/eap_common/eap_pwd_common.c
 +++ b/src/eap_common/eap_pwd_common.c
 @@ -155,6 +155,8 @@ int compute_password_element(EAP_PWD_gro
-       struct crypto_bignum *x_candidate = NULL, *cofactor = NULL;
+       struct crypto_bignum *x_candidate = NULL;
        const struct crypto_bignum *prime;
        u8 mask, found_ctr = 0, is_odd = 0;
 +      int cmp_prime;
        const struct crypto_bignum *prime;
        u8 mask, found_ctr = 0, is_odd = 0;
 +      int cmp_prime;
@@ -25,7 +25,7 @@ Signed-off-by: Jouni Malinen <j@w1.fi>
  
        if (grp->pwe)
                return -1;
  
        if (grp->pwe)
                return -1;
-@@ -247,8 +249,13 @@ int compute_password_element(EAP_PWD_gro
+@@ -241,8 +243,13 @@ int compute_password_element(EAP_PWD_gro
                if (primebitlen % 8)
                        buf_shift_right(prfbuf, primebytelen,
                                        8 - primebitlen % 8);
                if (primebitlen % 8)
                        buf_shift_right(prfbuf, primebytelen,
                                        8 - primebitlen % 8);
@@ -41,7 +41,7 @@ Signed-off-by: Jouni Malinen <j@w1.fi>
  
                crypto_bignum_deinit(x_candidate, 1);
                x_candidate = crypto_bignum_init_set(prfbuf, primebytelen);
  
                crypto_bignum_deinit(x_candidate, 1);
                x_candidate = crypto_bignum_init_set(prfbuf, primebytelen);
-@@ -311,7 +318,7 @@ int compute_password_element(EAP_PWD_gro
+@@ -306,7 +313,7 @@ int compute_password_element(EAP_PWD_gro
                        goto fail;
                mask = const_time_eq(res, check);
                found_ctr = const_time_select_u8(found, found_ctr, ctr);
                        goto fail;
                mask = const_time_eq(res, check);
                found_ctr = const_time_select_u8(found, found_ctr, ctr);