SKALE-2794 move libff to third party

parent 90ca5d82
......@@ -2,4 +2,4 @@
exclude_paths:
- 'scripts/**'
- '.github/**'
- 'trusted_libff/**'
- 'SCIPR/**'
......@@ -29,10 +29,10 @@
#include <../tgmp-build/include/sgx_tgmp.h>
#endif
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
#include <../trusted_libff/libff/algebra/fields/fp.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
#include <../SCIPR/libff/algebra/fields/fp.hpp>
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp>
#include "EnclaveConstants.h"
#include <cstdio>
......
......@@ -26,8 +26,8 @@
#include <string.h>
#include <cstdint>
#include "../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp"
#include "../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp"
#include "../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp"
#include "../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp"
#include "secure_enclave_t.h"
......
......@@ -61,9 +61,9 @@ ENCLAVE_KEY=test_insecure_private_key.pem #$(ENCLAVE)_private.pem
## Additional Automake flags needed to build the enclave.
##
## ## -I./trusted_libff -I../trusted_libff
AM_CPPFLAGS += -Wall -Wno-implicit-function-declaration $(TGMP_CPPFLAGS) -I./trusted_libff -I../trusted_libff -I../sgx-sdk-build/sgxsdk/include/libcxx \
AM_CPPFLAGS += -Wall -Wno-implicit-function-declaration $(TGMP_CPPFLAGS) -I./third_party/SCIPR -I../third_party/SCIPR -I../sgx-sdk-build/sgxsdk/include/libcxx \
-I../intel-sgx-ssl/Linux/package/include
AM_CXXFLAGS += -fno-builtin -fstack-protector-strong
......@@ -86,9 +86,9 @@ CLEANFILES+= secure_enclave_t.c secure_enclave_t.h
secure_enclave_SOURCES = secure_enclave_t.c secure_enclave_t.h \
secure_enclave.c \
Curves.c DomainParameters.c NumberTheory.c Point.c Signature.c DHDkg.c AESUtils.c \
DKGUtils.cpp EnclaveCommon.cpp ../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_init.cpp \
../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_g2.cpp \
../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_g1.cpp $(ENCLAVE_KEY) $(ENCLAVE_CONFIG)
DKGUtils.cpp EnclaveCommon.cpp ../third_party/SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_init.cpp \
../third_party/SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_g2.cpp \
../third_party/SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_g1.cpp $(ENCLAVE_KEY) $(ENCLAVE_CONFIG)
## Add additional linker flags to AM_LDFLAGS here. Don't put
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
* @copyright MIT license (see LICENSE file)
*****************************************************************************/
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp>
namespace libff {
......
......@@ -9,10 +9,10 @@
#define ALT_BN128_G1_HPP_
#include <vector>
#include <../trusted_libff/libff/common/utils.hpp>
#include <../SCIPR/libff/common/utils.hpp>
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <../trusted_libff/libff/algebra/curves/curve_utils.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <../SCIPR/libff/algebra/curves/curve_utils.hpp>
namespace libff {
......
......@@ -5,7 +5,7 @@
* @copyright MIT license (see LICENSE file)
*****************************************************************************/
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp>
namespace libff {
......
......@@ -9,8 +9,8 @@
#define ALT_BN128_G2_HPP_
#include <vector>
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <../trusted_libff/libff/algebra/curves/curve_utils.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <../SCIPR/libff/algebra/curves/curve_utils.hpp>
namespace libff {
......
......@@ -5,9 +5,9 @@
* @copyright MIT license (see LICENSE file)
*****************************************************************************/
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp>
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp>
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_g2.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
namespace libff {
......
......@@ -7,9 +7,9 @@
#ifndef ALT_BN128_INIT_HPP_
#define ALT_BN128_INIT_HPP_
#include <../trusted_libff/libff/algebra/curves/public_params.hpp>
#include <../trusted_libff/libff/algebra/fields/fp.hpp>
#include <../trusted_libff/libff/algebra/fields/fp2.hpp>
#include <../SCIPR/libff/algebra/curves/public_params.hpp>
#include <../SCIPR/libff/algebra/fields/fp.hpp>
#include <../SCIPR/libff/algebra/fields/fp2.hpp>
namespace libff {
......
......@@ -5,7 +5,7 @@
* @copyright MIT license (see LICENSE file)
*****************************************************************************/
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
namespace libff {
......
......@@ -7,9 +7,9 @@
#ifndef ALT_BN128_PP_HPP_
#define ALT_BN128_PP_HPP_
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp>
#include <../trusted_libff/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <../trusted_libff/libff/algebra/curves/public_params.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_g1.hpp>
#include <../SCIPR/libff/algebra/curves/alt_bn128/alt_bn128_init.hpp>
#include <../SCIPR/libff/algebra/curves/public_params.hpp>
namespace libff {
......
......@@ -9,7 +9,7 @@
#define CURVE_UTILS_HPP_
#include <cstdint>
#include <../trusted_libff/libff/algebra/fields/bigint.hpp>
#include <../SCIPR/libff/algebra/fields/bigint.hpp>
namespace libff {
......
......@@ -14,7 +14,7 @@
#include <cstdint>
#include <../trusted_libff/libff/algebra/fields/bigint.hpp>
#include <../SCIPR/libff/algebra/fields/bigint.hpp>
namespace libff {
......
......@@ -14,7 +14,7 @@
#ifndef EXPONENTIATION_TCC_
#define EXPONENTIATION_TCC_
#include <../trusted_libff/libff/common/utils.hpp>
#include <../SCIPR/libff/common/utils.hpp>
namespace libff {
......
......@@ -9,9 +9,9 @@
#define FIELD_UTILS_HPP_
#include <cstdint>
#include <../trusted_libff/libff/algebra/fields/bigint.hpp>
#include <../trusted_libff/libff/common/double.hpp>
#include <../trusted_libff/libff/common/utils.hpp>
#include <../SCIPR/libff/algebra/fields/bigint.hpp>
#include <../SCIPR/libff/common/double.hpp>
#include <../SCIPR/libff/common/utils.hpp>
namespace libff {
......
......@@ -13,8 +13,8 @@
#include <complex>
#include <stdexcept>
#include <../trusted_libff/libff/common/double.hpp>
#include <../trusted_libff/libff/common/utils.hpp>
#include <../SCIPR/libff/common/double.hpp>
#include <../SCIPR/libff/common/utils.hpp>
namespace libff {
......
......@@ -10,9 +10,9 @@
#ifndef FP_HPP_
#define FP_HPP_
#include <../trusted_libff/libff/common/utils.hpp>
#include <../trusted_libff/libff/algebra/exponentiation/exponentiation.hpp>
#include <../trusted_libff/libff/algebra/fields/bigint.hpp>
#include <../SCIPR/libff/common/utils.hpp>
#include <../SCIPR/libff/algebra/exponentiation/exponentiation.hpp>
#include <../SCIPR/libff/algebra/fields/bigint.hpp>
namespace libff {
......
......@@ -14,8 +14,8 @@
#include <cstdlib>
#include <limits>
#include <../trusted_libff/libff/algebra/fields/field_utils.hpp>
#include <../trusted_libff/libff/algebra/fields/fp_aux.tcc>
#include <../SCIPR/libff/algebra/fields/field_utils.hpp>
#include <../SCIPR/libff/algebra/fields/fp_aux.tcc>
namespace libff {
......
......@@ -11,8 +11,8 @@
#define FP2_HPP_
#include <vector>
#include <../trusted_libff/libff/algebra/fields/fp.hpp>
#include <../trusted_libff/libff/algebra/fields/fp.hpp>
#include <../SCIPR/libff/algebra/fields/fp.hpp>
#include <../SCIPR/libff/algebra/fields/fp.hpp>
namespace libff {
......
......@@ -10,7 +10,7 @@
#ifndef FP2_TCC_
#define FP2_TCC_
#include <../trusted_libff/libff/algebra/fields/field_utils.hpp>
#include <../SCIPR/libff/algebra/fields/field_utils.hpp>
namespace libff {
......
......@@ -18,12 +18,12 @@
#include <cassert>
#include <type_traits>
#include <../trusted_libff/libff/algebra/fields/bigint.hpp>
#include <../trusted_libff/libff/algebra/fields/fp_aux.tcc>
#include <../trusted_libff/libff/algebra/scalar_multiplication/multiexp.hpp>
#include <../trusted_libff/libff/algebra/scalar_multiplication/wnaf.hpp>
#include <../trusted_libff/libff/common/profiling.hpp>
#include <../trusted_libff/libff/common/utils.hpp>
#include <../SCIPR/libff/algebra/fields/bigint.hpp>
#include <../SCIPR/libff/algebra/fields/fp_aux.tcc>
#include <../SCIPR/libff/algebra/scalar_multiplication/multiexp.hpp>
#include <../SCIPR/libff/algebra/scalar_multiplication/wnaf.hpp>
#include <../SCIPR/libff/common/profiling.hpp>
#include <../SCIPR/libff/common/utils.hpp>
namespace libff {
......
#include <cstdio>
#include <vector>
#include <../trusted_libff/libff/algebra/curves/bn128/bn128_pp.hpp>
#include <../trusted_libff/libff/algebra/scalar_multiplication/multiexp.hpp>
#include <../trusted_libff/libff/common/profiling.hpp>
#include <../trusted_libff/libff/common/rng.hpp>
#include <../SCIPR/libff/algebra/curves/bn128/bn128_pp.hpp>
#include <../SCIPR/libff/algebra/scalar_multiplication/multiexp.hpp>
#include <../SCIPR/libff/common/profiling.hpp>
#include <../SCIPR/libff/common/rng.hpp>
using namespace libff;
......
......@@ -14,8 +14,8 @@
#include <math.h>
#include <../trusted_libff/libff/algebra/fields/bigint.hpp>
#include <../trusted_libff/libff/common/double.hpp>
#include <../SCIPR/libff/algebra/fields/bigint.hpp>
#include <../SCIPR/libff/common/double.hpp>
namespace libff {
......
......@@ -14,7 +14,7 @@
#include <complex>
#include <../trusted_libff/libff/algebra/fields/bigint.hpp>
#include <../SCIPR/libff/algebra/fields/bigint.hpp>
namespace libff {
......
......@@ -19,9 +19,9 @@
#include <stdexcept>
#include <vector>
#include <../trusted_libff/libff/common/default_types/ec_pp.hpp>
#include <../trusted_libff/libff/common/profiling.hpp>
#include <../trusted_libff/libff/common/utils.hpp>
#include <../SCIPR/libff/common/default_types/ec_pp.hpp>
#include <../SCIPR/libff/common/profiling.hpp>
#include <../SCIPR/libff/common/utils.hpp>
#ifndef NO_PROCPS
#include <proc/readproc.h>
......
......@@ -21,6 +21,6 @@ FieldT SHA512_rng(const uint64_t idx);
} // libff
#include <../trusted_libff/libff/common/rng.tcc>
#include <../SCIPR/libff/common/rng.tcc>
#endif // RNG_HPP_
......@@ -17,9 +17,9 @@
#include <gmp.h>
#include <openssl/sha.h>
#include <../trusted_libff/libff/algebra/fields/bigint.hpp>
#include <../trusted_libff/libff/common/rng.hpp>
#include <../trusted_libff/libff/common/utils.hpp>
#include <../SCIPR/libff/algebra/fields/bigint.hpp>
#include <../SCIPR/libff/common/rng.hpp>
#include <../SCIPR/libff/common/utils.hpp>
namespace libff {
......
......@@ -12,7 +12,7 @@
#include <cstdarg>
#include <cstdint>
#include <../trusted_libff/libff/common/utils.hpp>
#include <../SCIPR/libff/common/utils.hpp>
namespace libff {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment