From aa4f38143e39b9bb61b20dc4793c5a2312624a71 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Wed, 20 Dec 2017 09:27:50 +1000 Subject: [PATCH] Fix fe_init to be avaible when compiling ED25519 only --- wolfcrypt/src/fe_operations.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/fe_operations.c b/wolfcrypt/src/fe_operations.c index 7c8748fdd..33b25fbd3 100644 --- a/wolfcrypt/src/fe_operations.c +++ b/wolfcrypt/src/fe_operations.c @@ -115,12 +115,17 @@ void fe_0(fe h) h[9] = 0; } -#if defined(HAVE_CURVE25519) && !defined(CURVE25519_SMALL) && \ + +#if ((defined(HAVE_CURVE25519) && !defined(CURVE25519_SMALL)) || \ + (defined(HAVE_ED25519) && !defined(ED25519_SMALL))) && \ !defined(FREESCALE_LTC_ECC) void fe_init() { } +#endif +#if defined(HAVE_CURVE25519) && !defined(CURVE25519_SMALL) && \ + !defined(FREESCALE_LTC_ECC) int curve25519(byte* q, byte* n, byte* p) { #if 0