Commit Graph

277 Commits

Author SHA1 Message Date
Dionna Amalie Glaze 5bb8bd7738 Add missing #include to trts_veh.cpp
The ce_cdefs header defines SE_64, which this source file depends on.
When building with clang, this missing header causes the build to break.

Signed-off-by: Dionna Glaze <drdeeglaze@gmail.com>
2019-10-01 13:53:52 -07:00
Li Xun 50d5bec588 Merge pull request #385 from pdxjohnny/remote_attestation_readme
Remote Attestation sample update README
2019-08-14 11:23:38 +08:00
Andy Zhao 7ba318fcf2 Merge pull request #432 from deeglaze/weak_alias_guard
Guard weak_alias definition with ifndef
2019-08-14 09:41:16 +08:00
Dionna Glaze f271c87d0a Guard weak_alias definition with ifndef
The musl libc implementation already defines weak_alias and conflicts
with this unguarded define.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2019-08-13 11:52:03 -07:00
Andy Zhao 34421657a3 Merge pull request #427 from llly/pib_update
Handle new PIB flag in AESM to close #306
2019-07-26 10:54:05 +08:00
Li, Xun 100ca03afd Handle new PIB flag in AESM to close #306
CONFIGURATION_NEEDED Flag is added to Platform Info Blob TLV (version 2). Current implementation is based on version 1.

Signed-off-by: Li, Xun <xun.li@intel.com>
2019-07-26 09:50:31 +08:00
Andy Zhao 394ddc852d Merge pull request #426 from llly/origin/fix_RA_sample
Refine output message for RemoteAttestation sample code
2019-07-24 11:09:44 +08:00
Li, Xun a58a732114 Refine output message for RemoteAttestation sample code
wSigned-off-by: Li, Xun <xun.li@intel.com>
2019-07-24 10:26:00 +08:00
Andy Zhao a9f7bc42e0 Merge pull request #425 from llly/origin/fix_RA_sample
fix Remote Attestation sample code
2019-07-24 08:53:02 +08:00
Li, Xun 1e37f48d4f fix Remote Attestation sample code
Signed-off-by: Li, Xun <xun.li@intel.com>
2019-07-24 08:06:18 +08:00
Andy Zhao 5e2cf6fe93 Merge pull request #422 from lzha101/readme
Add RHEL 7.6 description in README.
2019-07-17 10:59:56 +08:00
Zhang Lili Z c081ab89bc Add RHEL 7.6 description in README.
Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2019-07-17 18:46:27 +08:00
Andy Zhao 8867f57645 Merge pull request #419 from deeglaze/rdrand_license
Change rdrand license entry to 3-clause BSD
2019-07-09 16:27:38 +08:00
lzha101 991bd53a76 Update README.md
Fix ECDSA part in README.md

Signed-off-by: Zhang Lili Z lili.z.zhang@intel.com
sgx_2.6
2019-07-06 07:46:46 +08:00
Li, Xun c505e6129a Linux 2.6 Open Source Gold Release
Added support for Reproducible Enclave Build using Docker file.
Added support for Intel AVX-512 instructions and Intel SHA Extensions New Instructions (SHA-NI) in trusted libraries.
Support both EPID and ECDSA based quote for quoting related interfaces in sgx_uae_service library.
Updated key exchange library to support both EPID and ECDSA based remote attestation.
Support new interface to check platform information blob from remote attestation response message.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
2019-07-05 14:12:24 +08:00
Dionna Glaze 7eee85b9af Change rdrand license entry to 3-clause BSD
The headers for all rdrand sources reference 3-clause BSD, and the Intel
Sample Source Code License is almost assuredly too restrictive. For one,
the license restricts the platform to Windows, which this project does
not support.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2019-07-02 10:21:52 -07:00
lzha101 da495bd6bf Update README.md
Update the link for Programming reference in README. 

Signed-off-by: Zhang Lili Z lili.z.zhang@intel.com
2019-05-29 09:52:37 +08:00
lzha101 de4c4816dc Update README.md
Fix format in README.md

Signed-off-by: Zhang Lili Z lili.z.zhang@intel.com
2019-05-22 15:08:59 +08:00
Andy Zhao 7e95195841 Merge pull request #408 from lingyuj/lingyuj/update_readme
Update readme for ECDSA support
2019-05-22 14:58:59 +08:00
lingyuji 1db7d13ecb Merge branch 'lingyuj/update_readme' of https://github.com/lingyuj/linux-sgx into lingyuj/update_readme 2019-05-22 22:37:29 +08:00
lingyuji 3a6549d455 Update README for ECDSA attestation
Signed-off-by: lingyuji <lingyu.jiang@intel.com>
2019-05-22 22:36:16 +08:00
lingyuji c59769990e Update README 2019-05-22 22:27:53 +08:00
lzha101 dc07760567 Merge pull request #221 from ghost/enable-typeindex
Expose typeinfo and type_index in SGX

Signed-off-by: Zhang Lili Z lili.z.zhang@intel.com
2019-05-16 16:30:33 +08:00
Li Xun 1248fc21c6 Merge pull request #397 from ffosilva/master
Typo on edger8r *_u.h generated header file
2019-05-10 14:34:08 +08:00
lzha101 2d6e3df819 Update README.md (#398)
Update README.md

Signed-off-by: Zhang Lili Z lili.z.zhang@intel.com
2019-05-08 10:29:30 +08:00
Fábio Silva f0685312de Fix typo on edger8r *_u.h generated header file
- "sgx_satus_t" -> "sgx_status_t"

Signed-off-by: Fábio Silva <fabio.fernando.osilva@gmail.com>
2019-05-07 23:17:56 -03:00
lzha101 734513886f Update README.md
Update README.md for iclsclient.

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2019-04-24 11:48:36 +08:00
Seonghyun Park 4230bbfb08 Download dcap from the archive if no git repository is found (#391)
* Download dcap from the archive if not in the git work-tree

Signed-off-by: Seonghyun Park <shpark3@hotmail.com>
2019-04-23 10:21:01 +08:00
Li, Xun b46e0b0003 Update Deb installer
Signed-off-by: Li, Xun <xun.li@intel.com>
2019-04-15 16:19:09 +08:00
lzha101 958ee63728 Merge pull request #386 from ao2/makefile-refuse-to-build-with-spaces-in-root-dir
Refuse to build when there are spaces in the project root path

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2019-04-12 08:48:36 +08:00
Li, Xun ba7ecb3f24 Update submodule URL
Signed-off-by: Li, Xun <xun.li@intel.com>
sgx_2.5
2019-04-02 19:41:02 +08:00
Li, Xun d10cabebb5 Linux 2.5 Open Source Gold Release
Added new APIs in sgx_uae_service.h and sgx_ukey_exchange.h to support ECDSA quote based remote attestation.
  The set of legacy APIs supports EPID only and the set of new APIs supports ECDSA quotes.
Enhanced Edger8r with structure deep-copy feature.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
2019-04-02 13:26:58 +08:00
Antonio Ospite 047ff2d081 Refuse to build when there are spaces in the project root path
When there are spaces in the ROOT_DIR, some make targets fail because
paths are not properly quoted:

-----------------------------------------------------------------------
$ make -C sdk/ USE_OPT_LIBS=1
make[1]: Entering directory '/home/ao2/dir with spaces/linux-sgx/sdk'
Makefile.opt_lib:133: warning: overriding recipe for target '/home/ao2/dir'
Makefile.opt_lib:88: warning: ignoring old recipe for target '/home/ao2/dir'
Makefile.opt_lib:133: warning: overriding recipe for target 'with'
Makefile.opt_lib:88: warning: ignoring old recipe for target 'with'
...
ERROR: Please run 'download_prebuilt.sh' to download the prebuilt optimized libraries before compiling.
Exiting......
/bin/sh: 1: exit: Illegal number: -2
make[1]: *** [Makefile:49: opt_check_failed] Error 2
make[1]: Leaving directory '/home/ao2/dir with spaces/linux-sgx/sdk'
make: *** [Makefile:41: sdk] Error 2
-----------------------------------------------------------------------

Instead of fixing all the occurrences of the problem, just refuse to
build when there are spaces or colons in the build path.

This is also what kbuild in the linux kernel does:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Makefile?h=v5.0#n126
2019-03-29 11:10:07 +01:00
John Andersen abb0bb90b1 Remote Attestation sample update README
* LD_LIBRARY_PATH needed to be extended to include sample_libcrypto
  rather than overwritten.

Signed-off-by: John Andersen <john.s.andersen@intel.com>
2019-03-14 10:05:46 -07:00
Andy Zhao ba7f4defb6 Update README.md 2019-03-01 09:22:33 +08:00
Andy Zhao 6902b16bc9 Update README.md 2019-03-01 09:20:32 +08:00
Andy Zhao 04c125bbed Update README.md
Update iclsclient to query it through email
2019-03-01 09:19:38 +08:00
lzha101 fa2e754a7b Merge pull request #368 from deeglaze/patch-3
Remove unused ill-defined 'storage' type field

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2019-02-28 13:28:38 +08:00
lzha101 6a280c1174 Merge pull request #369 from deeglaze/patch-4
Do not mix static and extern "C"

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2019-02-13 10:33:31 +08:00
Dionna Amalie Glaze 497d5c86a0 Do not mix static and extern "C"
The meaning of 'static' is to make a symbol private to the source
file, whereas 'extern "C"' is meant for linking symbols across
files with an unmangled name. The combination of the two allowed
by GCC is non-standard.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2019-02-12 11:14:47 -08:00
Dionna Amalie Glaze fd859f67ff Remove unused ill-defined 'storage' type field
The templated "storage" field in randomly_placed_buffer is uses alignas
in an undefined way. The field is also not used, so this change removes
it.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2019-02-04 22:12:41 -08:00
Li Xun a85fbe9a55 Merge pull request #359 from dingelish/master
Fix signature verification error in sgx_report_attestation_status and a make dependency problem
2019-01-10 12:46:28 +08:00
Yu Ding dd54bf1522 Fix make -j dependency
Signed-off-by: Yu Ding <dingelish@gmail.com>
2018-12-31 00:56:55 -08:00
Yu Ding 4baa19d19f Fix signature verification error in sgx_report_attestation_status
In 2.4.0, sgx_report_attestation_status always returns SGX_ERROR_INVALID_PARAMETER due to oal_map_result returns AESM_PLATFORM_INFO_BLOB_INVALID_SIG. The problem is caused by a change in u_certificate_provisioning.cpp, removing essential endian conversion. This commit aims at reverting this change and making sgx_report_attestation_status works again.

One test case on my testbed: 1502006500000800000202020401800000000000000000000007000006000000020000000000000B0D292FE7F0F37C075567E227A454318D29A3E94F035693794FADECD6C31606DE989858BF7FB718A096B52A90EFCD50270C9A0A2F4500CFAC159DD44EAA2C014179

Signed-off-by: Yu Ding <dingelish@gmail.com>
2018-12-30 23:37:46 -08:00
lzha101 bcd3c27a6e Merge pull request #334 from Icaro-Lima/master
Adds TRUSTED_DIR to maintain the same pattern as sgx_u.mk.

Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
2018-12-21 16:40:01 +08:00
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
Ícaro Dantas de Araújo Lima c3a5b03f03 Merge branch 'master' into master 2018-12-20 14:32:43 -03: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