Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wolfcrypt/src/fe_operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/* Based On Daniel J Bernstein's curve25519 Public Domain ref10 work. */

#if defined(HAVE_CURVE25519) || defined(HAVE_ED25519)
#if !defined(CURVE25519_SMALL) || !defined(ED25519_SMALL) /* run when not defined to use small memory math */
#if !defined(CURVE25519_SMALL) && !defined(ED25519_SMALL)

#include <wolfssl/wolfcrypt/fe_operations.h>

Expand Down Expand Up @@ -1479,5 +1479,5 @@ void fe_cmov(fe f, const fe g, int b)
}
#endif

#endif /* !CURVE25519_SMALL || !ED25519_SMALL */
#endif /* !CURVE25519_SMALL && !ED25519_SMALL */
#endif /* HAVE_CURVE25519 || HAVE_ED25519 */
7 changes: 4 additions & 3 deletions wolfssl/wolfcrypt/fe_operations.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ WOLFSSL_LOCAL void fe_mul121666(fe h,fe f);
WOLFSSL_LOCAL void fe_cmov(fe f, const fe g, int b);
WOLFSSL_LOCAL void fe_pow22523(fe out,const fe z);

/* 64 type needed for SHA512 */
WOLFSSL_LOCAL sword64 load_3(const unsigned char *in);
WOLFSSL_LOCAL sword64 load_4(const unsigned char *in);
#if !defined(CURVE25519_SMALL) && !defined(ED25519_SMALL)
WOLFSSL_LOCAL sword64 load_3(const unsigned char *in);
WOLFSSL_LOCAL sword64 load_4(const unsigned char *in);
#endif

#ifdef CURVED25519_ASM
WOLFSSL_LOCAL void fe_cmov_table(fe* r, fe* base, signed char b);
Expand Down
Loading