From 476a3e5d4ff9c040c731cdae1bdf9e37fb048fa0 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Mon, 21 Dec 2020 09:25:47 -0700 Subject: [PATCH] fix wc_curve25519_generic() ifdef on NXP LTC builds --- wolfcrypt/src/curve25519.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/curve25519.c b/wolfcrypt/src/curve25519.c index 5ff32ad18..8d086bed5 100644 --- a/wolfcrypt/src/curve25519.c +++ b/wolfcrypt/src/curve25519.c @@ -114,7 +114,7 @@ int wc_curve25519_generic(int public_size, byte* pub, /* unsupported with NXP LTC, onlly supports single basepoint with * nxp_ltc_curve25519_GetBasePoint() */ return WC_HW_E; -#endif +#else if ((public_size != CURVE25519_KEYSIZE) || (private_size != CURVE25519_KEYSIZE) || @@ -143,6 +143,8 @@ int wc_curve25519_generic(int public_size, byte* pub, #endif return ret; + +#endif /* FREESCALE_LTC_ECC */ } /* generate a new private key, as a bare vector.