mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
build for ed25519 only
This commit is contained in:
@@ -242,6 +242,9 @@ src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_low_mem.c
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
src_libwolfssl_la_SOURCES += wolfcrypt/src/ge_operations.c
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ge_operations.c
|
||||||
|
if !BUILD_FEMATH
|
||||||
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_operations.c
|
||||||
|
endif
|
||||||
if BUILD_CURVE25519_SMALL
|
if BUILD_CURVE25519_SMALL
|
||||||
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_operations.c
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_operations.c
|
||||||
endif
|
endif
|
||||||
|
@@ -45,7 +45,8 @@
|
|||||||
#include "fe_x25519_128.i"
|
#include "fe_x25519_128.i"
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef HAVE_CURVE25519
|
#if defined(HAVE_CURVE25519) || \
|
||||||
|
(defined(HAVE_ED25519) && !defined(ED25519_SMALL))
|
||||||
/*
|
/*
|
||||||
fe means field element.
|
fe means field element.
|
||||||
Here the field is \Z/(2^255-19).
|
Here the field is \Z/(2^255-19).
|
||||||
@@ -573,7 +574,8 @@ void fe_sub(fe h,const fe f,const fe g)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_CURVE25519
|
#if defined(HAVE_CURVE25519) || \
|
||||||
|
(defined(HAVE_ED25519) && !defined(ED25519_SMALL))
|
||||||
/*
|
/*
|
||||||
Ignores top bit of h.
|
Ignores top bit of h.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user