Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
f8dc477c
Unverified
Commit
f8dc477c
authored
Aug 15, 2019
by
a72d9e2bad9edfd58d6c0248c12c953b71d409d2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
parent
8454303a
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
358 additions
and
721 deletions
+358
-721
EnclaveGmpTest_t.Po
EnclaveGmpTest/.deps/EnclaveGmpTest_t.Po
+40
-39
Makefile
EnclaveGmpTest/Makefile
+99
-51
Makefile.am
EnclaveGmpTest/Makefile.am
+4
-2
Makefile.in
EnclaveGmpTest/Makefile.in
+97
-49
Makefile
Makefile
+15
-130
Makefile.am
Makefile.am
+2
-8
Makefile.in
Makefile.in
+38
-192
compile
compile
+1
-1
config.log
config.log
+45
-228
config.status
config.status
+12
-12
depcomp
depcomp
+1
-1
install-sh
install-sh
+1
-1
missing
missing
+1
-1
build.py
scripts/build.py
+2
-6
No files found.
EnclaveGmpTest/.deps/EnclaveGmpTest_t.Po
View file @
f8dc477c
EnclaveGmpTest_t.o: EnclaveGmpTest_t.c EnclaveGmpTest_t.h \
EnclaveGmpTest_t.o: EnclaveGmpTest_t.c EnclaveGmpTest_t.h \
/opt/intel/sgxsdk/include/tlibc/stdint.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/stdint.h \
/opt/intel/sgxsdk/include/tlibc/sys/stdint.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/sys/stdint.h \
/opt/intel/sgxsdk/include/tlibc/sys/cdefs.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/sys/cdefs.h \
/opt/intel/sgxsdk/include/tlibc/sys/_types.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/sys/_types.h \
/opt/intel/sgxsdk/include/tlibc/wchar.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/wchar.h \
/opt/intel/sgxsdk/include/tlibc/stddef.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/stddef.h \
/opt/intel/sgxsdk/include/sgx_edger8r.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/sgx_edger8r.h \
/opt/intel/sgxsdk/include/sgx_defs.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/sgx_defs.h \
/opt/intel/sgxsdk/include/sgx_error.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/sgx_error.h \
/opt/intel/sgxsdk/include/sgx_eid.h /opt/gmp/6.1.2/include/sgx_tgmp.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/sgx_eid.h \
/opt/intel/sgxsdk/include/tlibc/limits.h \
/d/sgxd/tgmp-build/include/sgx_tgmp.h \
/opt/intel/sgxsdk/include/tlibc/sys/limits.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/limits.h \
/opt/intel/sgxsdk/include/tlibc/stdlib.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/sys/limits.h \
/opt/intel/sgxsdk/include/sgx_trts.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/stdlib.h \
/opt/intel/sgxsdk/include/sgx_lfence.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/sgx_trts.h \
/opt/intel/sgxsdk/include/tlibc/errno.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/sgx_lfence.h \
/opt/intel/sgxsdk/include/tlibc/mbusafecrt.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/errno.h \
/opt/intel/sgxsdk/include/tlibc/string.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/mbusafecrt.h \
/opt/intel/sgxsdk/include/tlibc/stdarg.h
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/string.h \
/d/sgxd/sgx-sdk-build/sgxsdk/include/tlibc/stdarg.h
EnclaveGmpTest_t.h:
EnclaveGmpTest_t.h:
/
opt/intel
/sgxsdk/include/tlibc/stdint.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/stdint.h:
/
opt/intel
/sgxsdk/include/tlibc/sys/stdint.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/sys/stdint.h:
/
opt/intel
/sgxsdk/include/tlibc/sys/cdefs.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/sys/cdefs.h:
/
opt/intel
/sgxsdk/include/tlibc/sys/_types.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/sys/_types.h:
/
opt/intel
/sgxsdk/include/tlibc/wchar.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/wchar.h:
/
opt/intel
/sgxsdk/include/tlibc/stddef.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/stddef.h:
/
opt/intel
/sgxsdk/include/sgx_edger8r.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/sgx_edger8r.h:
/
opt/intel
/sgxsdk/include/sgx_defs.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/sgx_defs.h:
/
opt/intel
/sgxsdk/include/sgx_error.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/sgx_error.h:
/
opt/intel
/sgxsdk/include/sgx_eid.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/sgx_eid.h:
/
opt/gmp/6.1.2
/include/sgx_tgmp.h:
/
d/sgxd/tgmp-build
/include/sgx_tgmp.h:
/
opt/intel
/sgxsdk/include/tlibc/limits.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/limits.h:
/
opt/intel
/sgxsdk/include/tlibc/sys/limits.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/sys/limits.h:
/
opt/intel
/sgxsdk/include/tlibc/stdlib.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/stdlib.h:
/
opt/intel
/sgxsdk/include/sgx_trts.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/sgx_trts.h:
/
opt/intel
/sgxsdk/include/sgx_lfence.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/sgx_lfence.h:
/
opt/intel
/sgxsdk/include/tlibc/errno.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/errno.h:
/
opt/intel
/sgxsdk/include/tlibc/mbusafecrt.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/mbusafecrt.h:
/
opt/intel
/sgxsdk/include/tlibc/string.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/string.h:
/
opt/intel
/sgxsdk/include/tlibc/stdarg.h:
/
d/sgxd/sgx-sdk-build
/sgxsdk/include/tlibc/stdarg.h:
EnclaveGmpTest/Makefile
View file @
f8dc477c
This diff is collapsed.
Click to expand it.
EnclaveGmpTest/Makefile.am
View file @
f8dc477c
...
@@ -63,7 +63,7 @@ ENCLAVE_KEY=$(ENCLAVE)_private.pem
...
@@ -63,7 +63,7 @@ ENCLAVE_KEY=$(ENCLAVE)_private.pem
## Additional Automake flags needed to build the enclave.
## Additional Automake flags needed to build the enclave.
##
##
AM_CPPFLAGS
+=
$(TGMP_CPPFLAGS)
AM_CPPFLAGS
+=
$(TGMP_CPPFLAGS)
-I
../libff
-I
../sgx-sdk-build/sgxsdk/include/libcxx
AM_CXXFLAGS
+=
-fno-builtin
AM_CXXFLAGS
+=
-fno-builtin
...
@@ -83,7 +83,9 @@ CLEANFILES+= EnclaveGmpTest_t.c EnclaveGmpTest_t.h
...
@@ -83,7 +83,9 @@ CLEANFILES+= EnclaveGmpTest_t.c EnclaveGmpTest_t.h
## target name (i.e., $(ENCLAVE)_SOURCES will not work).
## target name (i.e., $(ENCLAVE)_SOURCES will not work).
EnclaveGmpTest_SOURCES
=
EnclaveGmpTest_t.c EnclaveGmpTest_t.h
\
EnclaveGmpTest_SOURCES
=
EnclaveGmpTest_t.c EnclaveGmpTest_t.h
\
EnclaveGmpTest.c
$(ENCLAVE_KEY)
$(ENCLAVE_CONFIG)
EnclaveGmpTest.c
\
EnclaveGmpTest.c BLSUtils.cpp ../libff/libff/algebra/curves/alt_bn128/alt_bn128_init.cpp
\
../libff/libff/libff/algebra/curves/alt_bn128/alt_bn128_g1.cpp
$(ENCLAVE_KEY)
$(ENCLAVE_CONFIG)
## Add additional linker flags to AM_LDFLAGS here. Don't put
## Add additional linker flags to AM_LDFLAGS here. Don't put
...
...
EnclaveGmpTest/Makefile.in
View file @
f8dc477c
This diff is collapsed.
Click to expand it.
Makefile
View file @
f8dc477c
This diff is collapsed.
Click to expand it.
Makefile.am
View file @
f8dc477c
...
@@ -45,7 +45,7 @@ EnclaveGmpTest.edl: EnclaveGmpTest/EnclaveGmpTest.edl
...
@@ -45,7 +45,7 @@ EnclaveGmpTest.edl: EnclaveGmpTest/EnclaveGmpTest.edl
## AM_CFLAGS =
## AM_CFLAGS =
## AM_CXXFLAGS =
## AM_CXXFLAGS =
AM_CPPFLAGS
+=
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-IlibBLS
-Ilibff
-fno-builtin-memset
$(GMP_CPPFLAGS)
AM_CPPFLAGS
+=
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-Ilibff
-fno-builtin-memset
$(GMP_CPPFLAGS)
## Additional targets to remove with 'make clean'. You must list
## Additional targets to remove with 'make clean'. You must list
## any edger8r generated files here.
## any edger8r generated files here.
...
@@ -63,13 +63,7 @@ bin_PROGRAMS = sgxgmpmath sgxgmppi
...
@@ -63,13 +63,7 @@ bin_PROGRAMS = sgxgmpmath sgxgmppi
## have to be explicitly listed.
## have to be explicitly listed.
COMMON_SRC
=
sgx_stub.c sgx_detect_linux.c create_enclave.c oc_alloc.c
COMMON_SRC
=
sgx_stub.c sgx_detect_linux.c create_enclave.c oc_alloc.c
COMMON_ENCLAVE_SRC
=
EnclaveGmpTest_u.c EnclaveGmpTest_u.h
\
COMMON_ENCLAVE_SRC
=
EnclaveGmpTest_u.c EnclaveGmpTest_u.h
libBLS/bls/BLSPrivateKey.cpp
\
libBLS/bls/BLSSignature.cpp
\
libBLS/bls/BLSutils.cpp
\
libff/libff/algebra/curves/alt_bn128/alt_bn128_init.cpp
\
libff/libff/algebra/curves/alt_bn128/alt_bn128_g1.cpp
sgxgmpmath_SOURCES
=
sgxgmpmath.c
$(COMMON_SRC)
sgxgmpmath_SOURCES
=
sgxgmpmath.c
$(COMMON_SRC)
nodist_sgxgmpmath_SOURCES
=
$(COMMON_ENCLAVE_SRC)
nodist_sgxgmpmath_SOURCES
=
$(COMMON_ENCLAVE_SRC)
...
...
Makefile.in
View file @
f8dc477c
This diff is collapsed.
Click to expand it.
compile
View file @
f8dc477c
/usr/share/automake-1.16/compile
/usr/share/automake-1.15/compile
\ No newline at end of file
\ No newline at end of file
config.log
View file @
f8dc477c
This diff is collapsed.
Click to expand it.
config.status
View file @
f8dc477c
...
@@ -421,7 +421,7 @@ $config_commands
...
@@ -421,7 +421,7 @@ $config_commands
Report bugs to <john.p.mechalas@intel.com>."
Report bugs to <john.p.mechalas@intel.com>."
ac_cs_config
=
"
'--with-trusted-gmpdir=/opt/gmp/6.1.2' '--with-gmpdir=/d/gmp-build/'
"
ac_cs_config
=
""
ac_cs_version
=
"
\
ac_cs_version
=
"
\
SGX GMP Test config.status 1.0
SGX GMP Test config.status 1.0
configured by ./configure, generated by GNU Autoconf 2.69,
configured by ./configure, generated by GNU Autoconf 2.69,
...
@@ -435,7 +435,7 @@ ac_pwd='/d/sgxd'
...
@@ -435,7 +435,7 @@ ac_pwd='/d/sgxd'
srcdir
=
'.'
srcdir
=
'.'
INSTALL
=
'/usr/bin/install -c'
INSTALL
=
'/usr/bin/install -c'
MKDIR_P
=
'/bin/mkdir -p'
MKDIR_P
=
'/bin/mkdir -p'
AWK
=
'
m
awk'
AWK
=
'
g
awk'
test
-n
"
$AWK
"
||
AWK
=
awk
test
-n
"
$AWK
"
||
AWK
=
awk
# The default lists apply if the user does not specify any file.
# The default lists apply if the user does not specify any file.
ac_need_defaults
=
:
ac_need_defaults
=
:
...
@@ -502,7 +502,7 @@ if $ac_cs_silent; then
...
@@ -502,7 +502,7 @@ if $ac_cs_silent; then
fi
fi
if
$ac_cs_recheck
;
then
if
$ac_cs_recheck
;
then
set
X /bin/bash
'./configure'
'--with-trusted-gmpdir=/opt/gmp/6.1.2'
'--with-gmpdir=/d/gmp-build/'
$ac_configure_extra_args
--no-create
--no-recursion
set
X /bin/bash
'./configure'
$ac_configure_extra_args
--no-create
--no-recursion
shift
shift
$as_echo
"running CONFIG_SHELL=/bin/bash
$*
"
>
&6
$as_echo
"running CONFIG_SHELL=/bin/bash
$*
"
>
&6
CONFIG_SHELL
=
'/bin/bash'
CONFIG_SHELL
=
'/bin/bash'
...
@@ -600,10 +600,10 @@ S["am__EXEEXT_FALSE"]=""
...
@@ -600,10 +600,10 @@ S["am__EXEEXT_FALSE"]=""
S["am__EXEEXT_TRUE"]="#"
S["am__EXEEXT_TRUE"]="#"
S["LTLIBOBJS"]=""
S["LTLIBOBJS"]=""
S["LIBOBJS"]=""
S["LIBOBJS"]=""
S["TGMP_LDFLAGS"]="-L/
opt/gmp/6.1.2
/lib"
S["TGMP_LDFLAGS"]="-L/
d/sgxd/tgmp-build
/lib"
S["TGMP_CPPFLAGS"]="-I/
opt/gmp/6.1.2
/include"
S["TGMP_CPPFLAGS"]="-I/
d/sgxd/tgmp-build/include -I/d/sgxd/gmp-build
/include"
S["GMP_LDFLAGS"]="-L/d/
gmp-build/
/lib"
S["GMP_LDFLAGS"]="-L/d/
sgxd/gmp-build
/lib"
S["GMP_CPPFLAGS"]="-I/d/
gmp-build/
/include"
S["GMP_CPPFLAGS"]="-I/d/
sgxd/gmp-build/include -I/d/sgxd/tgmp-build
/include"
S["SGX_HW_SIM_FALSE"]=""
S["SGX_HW_SIM_FALSE"]=""
S["SGX_HW_SIM_TRUE"]="#"
S["SGX_HW_SIM_TRUE"]="#"
S["ENCLAVE_RELEASE_SIGN_FALSE"]=""
S["ENCLAVE_RELEASE_SIGN_FALSE"]=""
...
@@ -621,10 +621,10 @@ S["SGXSSL_LIBDIR"]="/opt/intel/sgxssl/lib64"
...
@@ -621,10 +621,10 @@ S["SGXSSL_LIBDIR"]="/opt/intel/sgxssl/lib64"
S["SGXSSL_INCDIR"]="/opt/intel/sgxssl/include"
S["SGXSSL_INCDIR"]="/opt/intel/sgxssl/include"
S["SGXSSL"]="/opt/intel/sgxssl"
S["SGXSSL"]="/opt/intel/sgxssl"
S["enclave_libdir"]="
${
exec_prefix
}
/libexec"
S["enclave_libdir"]="
${
exec_prefix
}
/libexec"
S["SGXSDK_BINDIR"]="/
opt/intel
/sgxsdk/bin/x64"
S["SGXSDK_BINDIR"]="/
d/sgxd/sgx-sdk-build
/sgxsdk/bin/x64"
S["SGXSDK_LIBDIR"]="/
opt/intel
/sgxsdk/lib64"
S["SGXSDK_LIBDIR"]="/
d/sgxd/sgx-sdk-build
/sgxsdk/lib64"
S["SGXSDK_INCDIR"]="/
opt/intel
/sgxsdk/include"
S["SGXSDK_INCDIR"]="/
d/sgxd/sgx-sdk-build
/sgxsdk/include"
S["SGXSDK"]="/
opt/intel
/sgxsdk"
S["SGXSDK"]="/
d/sgxd/sgx-sdk-build
/sgxsdk"
S["SGX_DEBUG_FLAGS"]=""
S["SGX_DEBUG_FLAGS"]=""
S["ENCLAVE_SIGN_TARGET"]="signed_enclave_dev"
S["ENCLAVE_SIGN_TARGET"]="signed_enclave_dev"
S["LIBS_HW_SIMU"]=""
S["LIBS_HW_SIMU"]=""
...
@@ -667,7 +667,7 @@ S["am__tar"]="$${TAR-tar} chof - \"$$tardir\""
...
@@ -667,7 +667,7 @@ S["am__tar"]="$${TAR-tar} chof - \"$$tardir\""
S["AMTAR"]="
$$
{TAR-tar}"
S["AMTAR"]="
$$
{TAR-tar}"
S["am__leading_dot"]="."
S["am__leading_dot"]="."
S["SET_MAKE"]=""
S["SET_MAKE"]=""
S["AWK"]="
m
awk"
S["AWK"]="
g
awk"
S["mkdir_p"]="
$(
MKDIR_P
)
"
S["mkdir_p"]="
$(
MKDIR_P
)
"
S["MKDIR_P"]="/bin/mkdir -p"
S["MKDIR_P"]="/bin/mkdir -p"
S["INSTALL_STRIP_PROGRAM"]="
$(
install_sh
)
-c -s"
S["INSTALL_STRIP_PROGRAM"]="
$(
install_sh
)
-c -s"
...
...
depcomp
View file @
f8dc477c
/usr/share/automake-1.16/depcomp
/usr/share/automake-1.15/depcomp
\ No newline at end of file
\ No newline at end of file
install-sh
View file @
f8dc477c
/usr/share/automake-1.16/install-sh
/usr/share/automake-1.15/install-sh
\ No newline at end of file
\ No newline at end of file
missing
View file @
f8dc477c
/usr/share/automake-1.16/missing
/usr/share/automake-1.15/missing
\ No newline at end of file
\ No newline at end of file
scripts/build.py
View file @
f8dc477c
...
@@ -66,13 +66,9 @@ GMP_BUILD_DIR = topDir + "/gmp-build"
...
@@ -66,13 +66,9 @@ GMP_BUILD_DIR = topDir + "/gmp-build"
TGMP_BUILD_DIR
=
topDir
+
"/tgmp-build"
TGMP_BUILD_DIR
=
topDir
+
"/tgmp-build"
SDK_DIR
=
topDir
+
"/sgx-sdk-build"
SDK_DIR
=
topDir
+
"/sgx-sdk-build"
AUTOMAKE_DIR
=
"/usr/share/automake-1.16"
AUTOMAKE_DIR
=
"/usr/share/automake-1.15"
if
not
os
.
path
.
isdir
(
AUTOMAKE_DIR
):
if
not
os
.
path
.
isdir
(
AUTOMAKE_DIR
):
AUTOMAKE_DIR
=
"/usr/share/automake-1.15"
if
not
os
.
path
.
isdir
(
AUTOMAKE_DIR
):
raise
Exception
(
"Could not find "
+
AUTOMAKE_DIR
)
raise
Exception
(
"Could not find "
+
AUTOMAKE_DIR
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment