@@ -513,7 +513,7 @@ WOLFSSL_TEST_SUBROUTINE int scrypt_test(void);
513513 #if defined(USE_CERT_BUFFERS_256) && !defined(WOLFSSL_ATECC508A) && \
514514 !defined(WOLFSSL_ATECC608A) && !defined(NO_ECC256) && \
515515 defined(HAVE_ECC_VERIFY) && defined(HAVE_ECC_SIGN) && \
516- !defined(WOLF_CRYPTO_CB_ONLY_ECC)
516+ !defined(WOLF_CRYPTO_CB_ONLY_ECC) && !defined(NO_ECC_SECP)
517517 /* skip for ATECC508/608A, cannot import private key buffers */
518518 WOLFSSL_TEST_SUBROUTINE int ecc_test_buffers(void);
519519 #endif
@@ -1453,7 +1453,7 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\
14531453 #if defined(USE_CERT_BUFFERS_256) && !defined(WOLFSSL_ATECC508A) && \
14541454 !defined(WOLFSSL_ATECC608A) && !defined(NO_ECC256) && \
14551455 defined(HAVE_ECC_VERIFY) && defined(HAVE_ECC_SIGN) && \
1456- !defined(WOLF_CRYPTO_CB_ONLY_ECC)
1456+ !defined(WOLF_CRYPTO_CB_ONLY_ECC) && !defined(NO_ECC_SECP)
14571457 /* skip for ATECC508/608A, cannot import private key buffers */
14581458 if ( (ret = ecc_test_buffers()) != 0)
14591459 TEST_FAIL("ECC buffer test failed!\n", ret);
@@ -13778,7 +13778,8 @@ WOLFSSL_TEST_SUBROUTINE int memory_test(void)
1377813778 #endif
1377913779#endif
1378013780#if !defined(USE_CERT_BUFFERS_256) && !defined(NO_ASN)
13781- #if defined(HAVE_ECC) && defined(WOLFSSL_CERT_GEN)
13781+ #if defined(HAVE_ECC) && defined(WOLFSSL_CERT_GEN) && \
13782+ !defined(NO_ECC_SECP)
1378213783 #ifndef NO_RSA
1378313784 static const char* eccKeyPubFileDer = CERT_ROOT "ecc-keyPub.der";
1378413785 #endif
@@ -13827,13 +13828,15 @@ WOLFSSL_TEST_SUBROUTINE int memory_test(void)
1382713828
1382813829#ifndef NO_WRITE_TEMP_FILES
1382913830#ifdef HAVE_ECC
13830- #if defined(WOLFSSL_CERT_GEN) && !defined(NO_ASN_TIME)
13831- static const char* certEccPemFile = CERT_WRITE_TEMP_DIR "certecc.pem";
13832- static const char* certEccDerFile = CERT_WRITE_TEMP_DIR "certecc.der";
13833- #endif
13834- #if defined(WOLFSSL_CERT_GEN) && !defined(NO_RSA)
13831+ #ifndef NO_ECC_SECP
13832+ #if defined(WOLFSSL_CERT_GEN) && !defined(NO_ASN_TIME)
13833+ static const char* certEccPemFile = CERT_WRITE_TEMP_DIR "certecc.pem";
13834+ static const char* certEccDerFile = CERT_WRITE_TEMP_DIR "certecc.der";
13835+ #endif
13836+ #if defined(WOLFSSL_CERT_GEN) && !defined(NO_RSA)
1383513837 static const char* certEccRsaPemFile = CERT_WRITE_TEMP_DIR "certeccrsa.pem";
1383613838 static const char* certEccRsaDerFile = CERT_WRITE_TEMP_DIR "certeccrsa.der";
13839+ #endif
1383713840 #endif
1383813841 #if defined(HAVE_ECC_KEY_EXPORT) && !defined(WC_NO_RNG) && \
1383913842 !defined(WOLF_CRYPTO_CB_ONLY_ECC) && !defined(NO_ASN_CRYPT)
@@ -16298,7 +16301,8 @@ static int rsa_certgen_test(RsaKey* key, RsaKey* keypub, WC_RNG* rng, byte* tmp)
1629816301}
1629916302#endif
1630016303
16301- #if !defined(NO_RSA) && defined(HAVE_ECC) && defined(WOLFSSL_CERT_GEN)
16304+ #if !defined(NO_RSA) && defined(HAVE_ECC) && !defined(NO_ECC_SECP) && \
16305+ defined(WOLFSSL_CERT_GEN)
1630216306/* Make Cert / Sign example for ECC cert and RSA CA */
1630316307static int rsa_ecc_certgen_test(WC_RNG* rng, byte* tmp)
1630416308{
@@ -17445,7 +17449,7 @@ WOLFSSL_TEST_SUBROUTINE int rsa_test(void)
1744517449 if (ret != 0)
1744617450 goto exit_rsa;
1744717451
17448- #if !defined(NO_RSA) && defined(HAVE_ECC)
17452+ #if !defined(NO_RSA) && defined(HAVE_ECC) && !defined(NO_ECC_SECP)
1744917453 ret = rsa_ecc_certgen_test(&rng, tmp);
1745017454 if (ret != 0)
1745117455 goto exit_rsa;
@@ -26268,7 +26272,7 @@ static int ecc_test_custom_curves(WC_RNG* rng)
2626826272}
2626926273#endif /* WOLFSSL_CUSTOM_CURVES */
2627026274
26271- #if defined(WOLFSSL_CERT_GEN) && !defined(NO_ASN_TIME)
26275+ #if defined(WOLFSSL_CERT_GEN) && !defined(NO_ECC_SECP) && !defined( NO_ASN_TIME)
2627226276
2627326277/* Make Cert / Sign example for ECC cert and ECC CA */
2627426278static int ecc_test_cert_gen(WC_RNG* rng)
@@ -27167,7 +27171,8 @@ WOLFSSL_TEST_SUBROUTINE int ecc_test(void)
2716727171 goto done;
2716827172 }
2716927173#endif
27170- #if defined(HAVE_ECC_CDH) && defined(HAVE_ECC_DHE)
27174+ #if defined(HAVE_ECC_VECTOR_TEST) && defined(HAVE_ECC_CDH) && \
27175+ defined(HAVE_ECC_DHE)
2717127176 ret = ecc_test_cdh_vectors(&rng);
2717227177 if (ret != 0) {
2717327178 printf("ecc_test_cdh_vectors failed! %d\n", ret);
@@ -27185,7 +27190,7 @@ WOLFSSL_TEST_SUBROUTINE int ecc_test(void)
2718527190#elif defined(HAVE_ECC_KEY_IMPORT)
2718627191 (void)ecc_test_make_pub; /* for compiler warning */
2718727192#endif
27188- #if defined(WOLFSSL_CERT_GEN) && !defined(NO_ASN_TIME)
27193+ #if defined(WOLFSSL_CERT_GEN) && !defined(NO_ECC_SECP) && !defined( NO_ASN_TIME)
2718927194 ret = ecc_test_cert_gen(&rng);
2719027195 if (ret != 0) {
2719127196 printf("ecc_test_cert_gen failed!: %d\n", ret);
@@ -27996,7 +28001,7 @@ WOLFSSL_TEST_SUBROUTINE int ecc_encrypt_test(void)
2799628001#if defined(USE_CERT_BUFFERS_256) && !defined(WOLFSSL_ATECC508A) && \
2799728002 !defined(WOLFSSL_ATECC608A) && !defined(NO_ECC256) && \
2799828003 defined(HAVE_ECC_VERIFY) && defined(HAVE_ECC_SIGN) && \
27999- !defined(WOLF_CRYPTO_CB_ONLY_ECC)
28004+ !defined(WOLF_CRYPTO_CB_ONLY_ECC) && !defined(NO_ECC_SECP)
2800028005WOLFSSL_TEST_SUBROUTINE int ecc_test_buffers(void)
2800128006{
2800228007 size_t bytes;
0 commit comments