diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 1a879b055..2e3b49173 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -2821,9 +2821,11 @@ static int wc_ecc_shared_secret_gen_sync(ecc_key* private_key, ecc_point* point, #endif #endif #ifdef WOLFSSL_SP_MATH + { err = WC_KEY_SIZE_E; (void)curve; + } #else { /* make new point */