From 4950c644cd988b26a796c50d5ece0f37716b5157 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 19 Jun 2017 10:15:05 -0700 Subject: [PATCH] Fix edge case on 32-bit with ED small only. --- wolfcrypt/src/fe_operations.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/fe_operations.c b/wolfcrypt/src/fe_operations.c index fe67ed711..f6d77faa6 100755 --- a/wolfcrypt/src/fe_operations.c +++ b/wolfcrypt/src/fe_operations.c @@ -112,7 +112,8 @@ void fe_0(fe h) h[9] = 0; } -#if !defined(CURVE25519_SMALL) && !defined(FREESCALE_LTC_ECC) +#if defined(HAVE_CURVE25519) && !defined(CURVE25519_SMALL) && \ + !defined(FREESCALE_LTC_ECC) int curve25519(byte* q, byte* n, byte* p) { #if 0 @@ -188,7 +189,7 @@ int curve25519(byte* q, byte* n, byte* p) return 0; } -#endif /* !CURVE25519_SMALL && !FREESCALE_LTC_ECC */ +#endif /* HAVE_CURVE25519 && !CURVE25519_SMALL && !FREESCALE_LTC_ECC */ /*