@@ -34905,8 +34905,8 @@ static wc_test_ret_t ecc_point_test(void)
3490534905 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
3490634906 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
3490734907 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
34908- #if defined(HAVE_COMP_KEY) && (!defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) || \
34909- (defined(HAVE_FIPS_VERSION ) && (HAVE_FIPS_VERSION > 2 )))
34908+ #if defined(HAVE_COMP_KEY) && (( !defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) ) || \
34909+ (defined(FIPS_VERSION3_GE ) && FIPS_VERSION3_GE(7,0,0 )))
3491034910 byte derComp0[] = { 0x02, /* = Compressed, y even */
3491134911 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
3491234912 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
@@ -35070,8 +35070,8 @@ static wc_test_ret_t ecc_point_test(void)
3507035070 goto done;
3507135071 }
3507235072
35073- #if defined(HAVE_COMP_KEY) && (!defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) || \
35074- (defined(HAVE_FIPS_VERSION ) && (HAVE_FIPS_VERSION > 2 )))
35073+ #if defined(HAVE_COMP_KEY) && (( !defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) ) || \
35074+ (defined(FIPS_VERSION3_GE ) && FIPS_VERSION3_GE(7,0,0 )))
3507535075 /* Test compressed point with missing x coordinate bytes */
3507635076 ret = wc_ecc_import_point_der(derComp0, 1, curve_idx, point3);
3507735077 if (ret != WC_NO_ERR_TRACE(ECC_BAD_ARG_E)) {
@@ -35125,7 +35125,8 @@ static wc_test_ret_t ecc_point_test(void)
3512535125 ret = WC_TEST_RET_ENC_EC(ret);
3512635126 goto done;
3512735127 }
35128- #endif
35128+ #endif /* HAVE_COMP_KEY && ((!HAVE_FIPS && !HAVE_SELFTEST) || */
35129+ /* FIPS_VERSION3_GE(7,0,0)) */
3512935130
3513035131done:
3513135132#ifdef HAVE_COMP_KEY
0 commit comments