diff --git a/src/ssl.c b/src/ssl.c index 15d78c4f3..56795dbf3 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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) { diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index af9e696df..7f9f1f0e1 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -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) {