mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
fix github issue #24, settings first before ifdef checks on 25519_fe files
This commit is contained in:
@@ -22,6 +22,12 @@
|
|||||||
/* Based On Daniel J Bernstein's curve25519 Public Domain ref10 work. */
|
/* Based On Daniel J Bernstein's curve25519 Public Domain ref10 work. */
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
|
|
||||||
#ifdef HAVE_ECC25519
|
#ifdef HAVE_ECC25519
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/ecc25519_fe.h>
|
#include <wolfssl/wolfcrypt/ecc25519_fe.h>
|
||||||
|
@@ -21,11 +21,13 @@
|
|||||||
|
|
||||||
/* Based On Daniel J Bernstein's curve25519 Public Domain ref10 work. */
|
/* Based On Daniel J Bernstein's curve25519 Public Domain ref10 work. */
|
||||||
|
|
||||||
#ifdef HAVE_ECC25519
|
|
||||||
#ifndef WOLF_CRYPT_ECC25519_FE_H
|
#ifndef WOLF_CRYPT_ECC25519_FE_H
|
||||||
#define WOLF_CRYPT_ECC25519_FE_H
|
#define WOLF_CRYPT_ECC25519_FE_H
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_ECC25519
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef int32_t fe[10];
|
typedef int32_t fe[10];
|
||||||
@@ -53,7 +55,7 @@ void fe_sq(fe,fe);
|
|||||||
void fe_mul121666(fe,fe);
|
void fe_mul121666(fe,fe);
|
||||||
void fe_invert(fe,fe);
|
void fe_invert(fe,fe);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /*HAVE_ECC25519*/
|
#endif /* HAVE_ECC25519 */
|
||||||
|
#endif /* include guard */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user