Merge pull request #1279 from SparkiDev/fe_init_ed25519

Fix fe_init to be avaible when compiling ED25519 only
This commit is contained in:
Chris Conlon
2017-12-20 09:12:42 -07:00
committed by GitHub

View File

@ -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