Fix FIPS compile errors

This commit is contained in:
Eric Blankenhorn 2021-01-21 15:27:42 -06:00
parent 57b06f700d
commit fd8527c15e
2 changed files with 7 additions and 1 deletions

View File

@ -36039,7 +36039,6 @@ WOLFSSL_BIGNUM *wolfSSL_EC_POINT_point2bn(const WOLFSSL_EC_GROUP *group,
return ret;
}
#endif /* !HAVE_FIPS || HAVE_FIPS_VERSION > 2 */
#ifdef USE_ECC_B_PARAM
int wolfSSL_EC_POINT_is_on_curve(const WOLFSSL_EC_GROUP *group,
@ -36063,6 +36062,7 @@ int wolfSSL_EC_POINT_is_on_curve(const WOLFSSL_EC_GROUP *group,
== MP_OKAY ? WOLFSSL_SUCCESS : WOLFSSL_FAILURE;
}
#endif /* USE_ECC_B_PARAM */
#endif /* !HAVE_FIPS || HAVE_FIPS_VERSION > 2 */
WOLFSSL_EC_POINT *wolfSSL_EC_POINT_new(const WOLFSSL_EC_GROUP *group)
{

View File

@ -21044,11 +21044,14 @@ static int ecc_point_test(void)
goto done;
}
#if !defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))
ret = wc_ecc_import_point_der_ex(derComp0, sizeof(derComp0), curve_idx, point4, 0);
if (ret != 0) {
ret = -10027;
goto done;
}
#endif
ret = wc_ecc_cmp_point(point3, point4);
if (ret != MP_EQ) {
@ -21062,11 +21065,14 @@ static int ecc_point_test(void)
goto done;
}
#if !defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))
ret = wc_ecc_import_point_der_ex(derComp1, sizeof(derComp1), curve_idx, point4, 0);
if (ret != 0) {
ret = -10030;
goto done;
}
#endif
ret = wc_ecc_cmp_point(point3, point4);
if (ret != MP_EQ) {