Commit Graph

221 Commits

Author SHA1 Message Date
lzha101 e410bb922d Merge pull request #356 from akryeem-INTC/openssl_update
Update OpenSSL version used in Tcrypto to 1.1.0j.

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-12-21 13:25:01 +08:00
Alaa Kryeem cc72b823da Update OpenSSL version used in Tcrypto to 1.1.0j.
This version mitigates a side channel attack on ECDSA.

Signed-off-by: Kryeem, Alaa <alaa.kryeem@intel.com>
2018-12-20 22:00:09 +02:00
lzha101 d3bcf9918d Merge pull request #352 from deeglaze/parse_setcontext
Fix setcontext.S parse error

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-12-20 15:38:33 +08:00
Li, Xun 28817533cc Linux 2.4 Open Source Gold Release
Added support for the Key Separation and Sharing (KSS) feature.
Provided a set of new encryption and decryption functions such as sgx_hmac256_*.
Provided a new untrusted API: sgx_get_target_info.
Provided a new untrusted API: sgx_create_enclave_from_buffer_ex.
Updated the cryptography library and Architecture Enclaves to use Intel(R) Integrated
  Performance Primitives Cryptography 2019 Update 1.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.4
2018-12-20 11:02:39 +08:00
Dionna Glaze 411424e8c6 Fix setcontext.S parse error
When this file is parsed on its own for syntactic correctness (via
bazel's parse_headers feature), the use of SIGSET_BYTE_SIZE in
$SIGSET_BYTE_SIZE fails to parse as $(64/8). This simplifies the
expression so that $8 is syntactically correct.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2018-12-12 10:51:04 -08:00
lzha101 bf22963411 Merge pull request #339 from dingelish/master
Fix typo

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-11-13 09:30:24 +08:00
Yu Ding aa51bdf614 Fix typo
Signed-off-by: Yu Ding <dingelish@gmail.com>
2018-11-12 13:47:51 -08:00
lzha101 af25522a05 Merge pull request #323 from deeglaze/remove_using_std
Remove using namespace std

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-10-30 08:46:19 +08:00
Li Xun a048ccad5b Merge pull request #331 from dingelish/master
Fix typo
2018-10-26 09:54:48 +08:00
Yu Ding 477ab4f562 Fix typo
Signed-off-by: Yu Ding <dingelish@gmail.com>
2018-10-25 10:56:12 -07:00
Li Xun 6d373e5cb3 Merge pull request #327 from Icaro-Lima/hotfix/eclipse/static_library
Resolves issue when cleaning a trusted static library.
2018-10-19 16:51:28 +08:00
icarolima be3b084fcc Resolves issue when cleaning a static library. 2018-10-09 18:06:48 -03:00
Dionna Glaze 1cd53405cc Remove using namespace std
Header files that contain "using namespace std;" do not work well in
codebases that have custom implementations for common classes such as
"string". This is a C++ Core guideline (SF.7).

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2018-09-29 21:01:49 -07:00
lzha101 31aa52227b Merge pull request #312 from lzha101/dev_deb
Add scripts to generate sgx-enclave-common-dev debian package.

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-29 10:38:40 +08:00
Zhang Lili Z db7fbf8712 Merge branch 'master' into dev_deb
Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-29 18:26:23 +08:00
lzha101 93c84d4adc Merge pull request #321 from llly/remergePR
Remerge PR #311 

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-28 10:55:57 +08:00
Li, Xun a825b067b4 Remerge PR #311
Remerge README.md changes to Linux 2.3.1 Open Source Gold Release

Signed-off-by: Li, Xun <xun.li@intel.com>
2018-09-28 10:23:18 +08:00
Andy Zhao 03f1bef164 Merge pull request #320 from llly/remergePR
Remerge PR #304 #308 #309 #310 #313
2018-09-28 10:23:05 +08:00
Li, Xun d9ba97c7fa Remerge PR #304 #308 #309 #310 #313
These PRs are lost in Linux 2.3.1 Open Source Gold Release

Signed-off-by: Li, Xun <xun.li@intel.com>
2018-09-28 09:52:02 +08:00
Li, Xun 12223e5a17 Linux 2.3.1 Open Source Gold Release
Bug fixes

Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.3.1
2018-09-28 08:42:40 +08:00
lzha101 c08051ec13 Merge pull request #313 from dingelish/master
Fix buffer check error of p_additional_MACtext_length

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-19 10:45:21 +08:00
lzha101 5a0de5910e Merge pull request #308 from deeglaze/expand_undefined_min_macro
Include sl_util.h to define MIN in mini_snprintf.h

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-19 10:43:17 +08:00
Dionna Glaze ebf217908d Include sl_util.h to define MIN in mini_snprintf.h
Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2018-09-17 11:41:17 -07:00
Yu Ding b38e0d8cdd Fix buffer check error of p_decrypted_text_length
Signed-off-by: Yu Ding <dingelish@gmail.com>
2018-09-17 10:06:41 -07:00
lzha101 58b9fa905c Merge pull request #310 from jat001/patch-1
fix #177 - Fullwidth character issue

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-17 14:39:34 +08:00
lzha101 ef91b293ad Merge pull request #309 from deeglaze/remove_sgx_urts_include
Remove #include sgx_urts.h from sgx_uswitchless

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-17 14:36:54 +08:00
lzha101 76b8328a63 Merge pull request #304 from Naoya-Horiguchi/post/nanosecond_seeding
seed with nanosecond timestamp in simulation mode

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-17 14:36:31 +08:00
Jat d7bc7f84e4 fix #177 2018-09-17 11:25:00 +08:00
Yu Ding 371d48e89d Fix buffer check error of p_additional_MACtext_length
Signed-off-by: Yu Ding <dingelish@gmail.com>
2018-09-13 19:26:02 -07:00
Zhang Lili Z 6aa92d70f7 Add scripts to generate sgx-enclave-common-dev debian package.
Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-13 22:11:07 +08:00
Andy Zhao 18d0f68e2b Merge pull request #311 from lzha101/rd_up
Add Ubuntu 16.04 description in README
sgx_2.3
2018-09-13 13:49:10 +08:00
Zhang Lili Z 467ba70ec1 Add Ubuntu 16.04 description in README
Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-13 21:21:26 +08:00
Li, Xun 68f44d6e68 Linux 2.3 Open Source Gold Release
Support for Ubuntu 18.04 LTS 64-bit Desktop and Server version
Provided a new set of SGX common loader APIs in sgx_enclave_common.h
Provided the sample code for Switchless Call
Provided a new API in tcrypto: sgx_ecc256_calculate_pub_from_priv
sgx_create_enclave API will ignore the parameter of launch token and will not update it after function successfully returns
Change Intel SGX PSW installer for Ubuntu by
    - Using .deb installer.
    - Using name libsgx-enclave-common_{version string}-1_amd64.deb.
    - Installing Intel SGX Enclave Common loader library.
Bug fixes

Signed-off-by: Li, Xun <xun.li@intel.com>
2018-09-13 09:47:41 +08:00
Dionna Glaze 7785922829 Remove #include sgx_urts.h from sgx_uswitchless
The sgx_uswitchless.h header is used in both trusted and untrusted
contexts from transitive inclusions. The sgx_urts.h header is strictly
an untrusted domain header. Users that depend on the untrusted runtime
should not depend on the transitive include behavior to provide
sgx_urts.h.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2018-09-04 17:21:19 -07:00
lzha101 d607c790bc Merge pull request #210 from deeglaze/remove_u_int64_defines
Remove #defines reserved by the C standard

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-03 14:34:47 +08:00
lzha101 3b529087a5 Merge pull request #307 from deeglaze/remove_unnecessary_include
Remove an unused #include

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-09-03 14:34:12 +08:00
Dionna Glaze f60ac7fe75 Remove #defines reserved by the C standard
The libc implementation newlib defines these symbols and causes a compiler error. Per the standard (ISO 9899:1999 reserved identifiers section), any identifier beginning with two underscores or an underscore and a capital letter is reserved for libc. The definitions are not used anywhere in the source code either.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2018-08-31 09:35:19 -07:00
Dionna Glaze 8da0d8a297 Remove an unused #include
Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2018-08-27 09:27:22 -07:00
Naoya Horiguchi 82407a5e46 seed with nanosecond timestamp in simulation mode
Currently we seed random number generator with timestamp in seconds.
Because of this we have to insert 1 second delay in each testcase to
ensure the randomness, which prevents us from testing applications
effeciently.

Simulation mode is not supposed to be used in production, but
developing applications on environtment without SGX HW is still common.
So let's seed with timestamp in nanoseconds in simulation mode.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
2018-08-21 08:40:18 +09:00
lzha101 b0cc03a818 Merge pull request #301 from deeglaze/frame_pointer_pragma
Localize -O0 to necessary functions

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-08-17 09:01:17 +08:00
Dionna Glaze 4495449cea Localize -O0 to necessary functions
The load_regs assembly function uses its caller's frame pointer.
C/C++ compilers are allowed to make optimizations to their
representation of the stack, and frequently omit the frame pointer.

The functions _EEXIT in t_instructions.cpp and _SE3 in
u_instructions.cpp both call load_regs, and thus should be the only ones
that should be affected by deoptimization.

Even -O0 may omit the frame pointer (indeed we found this to be the case
when compiling with GCC 7.3.0), so this change also makes that requirement
explicit by by means of -fno-omit-frame-pointer.

The analogous attribute for -fno-omit-frame-pointer is not available in
clang, so the clang version of the LOAD_REGS_ATTRIBUTES is simply
[[clang:optnone]].

An added bonus of switching the -O0 flag over to an attribute in source
code is that alternate build tools are easier to port to :)

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2018-08-14 08:11:31 -07:00
Li Xun abb0d35a39 Merge pull request #298 from anakrish/master
Emitter Plugin for Edger8r.
2018-08-10 09:23:11 +08:00
lzha101 f54da2d12b Merge pull request #297 from deeglaze/minor_compilation_fixes
Minor fixes for compilation errors

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-08-09 15:18:50 +08:00
Dionna Glaze fb5a866289 Minor fixes for compilation errors
Document that _mm_pause definition requires -ffreestanding.
Guard the definition of __STDC_FORMAT_MACROS with #ifndef/#endif.
Consistently refer to std::hex with std:: qualification in SignTool.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2018-08-08 22:30:07 -07:00
lzha101 5234aa7210 Merge pull request #299 from lzha101/create_enclave_ex
Add 'const' to sgx_create_enclave_ex()

Signed-off-by: Zhang Lili Z lili.z.zhang@intel.com
2018-08-07 15:59:25 +08:00
Zhang Lili Z 62dc69d355 Add 'const' to sgx_create_enclave_ex()
Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-08-07 22:31:27 +08:00
Anand Krishnamoorthi ca6d709fcd Emitter Plugin for Edger8r.
CodeGen.ml checks whether a plugin is available and if so, invoked the plugin to emit edge routines.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2018-08-05 15:21:03 -07:00
Li, Xun a169a69497 Linux 2.2 Open Source Gold Release
Support for Switchless Calls
Bug fixes

Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.2
2018-07-03 10:48:20 +08:00
lzha101 8f48696ec3 Merge pull request #286 from lzha101/dp_script
Update checksum in the download script.

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-06-28 12:27:43 +08:00
Zhang Lili Z ec46250251 Update download script.
Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-06-28 20:21:07 +08:00