@@ -577,6 +577,7 @@ int wc_CryptoCb_RsaGetSize(const RsaKey* key, int* keySize)
577577#endif /* !NO_RSA */
578578
579579#ifdef HAVE_ECC
580+ #ifdef HAVE_ECC_DHE
580581int wc_CryptoCb_MakeEccKey (WC_RNG * rng , int keySize , ecc_key * key , int curveId )
581582{
582583 int ret = WC_NO_ERR_TRACE (CRYPTOCB_UNAVAILABLE );
@@ -629,7 +630,9 @@ int wc_CryptoCb_Ecdh(ecc_key* private_key, ecc_key* public_key,
629630
630631 return wc_CryptoCb_TranslateErrorCode (ret );
631632}
633+ #endif
632634
635+ #ifdef HAVE_ECC_SIGN
633636int wc_CryptoCb_EccSign (const byte * in , word32 inlen , byte * out ,
634637 word32 * outlen , WC_RNG * rng , ecc_key * key )
635638{
@@ -658,7 +661,9 @@ int wc_CryptoCb_EccSign(const byte* in, word32 inlen, byte* out,
658661
659662 return wc_CryptoCb_TranslateErrorCode (ret );
660663}
664+ #endif
661665
666+ #ifdef HAVE_ECC_VERIFY
662667int wc_CryptoCb_EccVerify (const byte * sig , word32 siglen ,
663668 const byte * hash , word32 hashlen , int * res , ecc_key * key )
664669{
@@ -687,7 +692,9 @@ int wc_CryptoCb_EccVerify(const byte* sig, word32 siglen,
687692
688693 return wc_CryptoCb_TranslateErrorCode (ret );
689694}
695+ #endif
690696
697+ #ifdef HAVE_ECC_CHECK_KEY
691698int wc_CryptoCb_EccCheckPrivKey (ecc_key * key , const byte * pubKey ,
692699 word32 pubKeySz )
693700{
@@ -713,6 +720,7 @@ int wc_CryptoCb_EccCheckPrivKey(ecc_key* key, const byte* pubKey,
713720
714721 return wc_CryptoCb_TranslateErrorCode (ret );
715722}
723+ #endif
716724#endif /* HAVE_ECC */
717725
718726#ifdef HAVE_CURVE25519
0 commit comments