🖥️
What is Intel SGX
Summary
TEE is trusted enclaved environment. SGX is one of the implementations of TEE. SGX enables execution of code in protected and private environment. Encrypted programs are executed inside SGX so even if the owner of SGX can't see the data. SGX returns the result which is called report
and hash of the program with their unique signature.
Client verify signature through Attestation Service (REST API service provided by Intel).
Process
- Client send encrypted request
- Server send their programs and encrypted data(without decrypting) to SGX
- SGX decrypt encrypted data and execute code and return data
- Data returned by SGX includes hash of the program, result value and signature
- SGX cannot be accessed by server because protected by Hardware.
- Server return data to client
- Client verify signature through API provided by Intel.
- Client verify hash by comparing hash of source code.
- Client should be accessible to the source code and binary.
Applicability
- When you want to prove validity of data without revealing the detail.
Current state of development
- Not yet fully tested by real usages
- There are lot of issued to overcome
Links
Corda: Intro to SGX: from HTTP to enclaves
https://www.corda.net/blog/intro-to-sgx-from-http-to-enclaves/
Lepidum: Intel SGX / Open Enclave SDK
https://lepidum.co.jp/blog/2020-04-07/intel-sgx/
Stack overflow: What is the link, if any, between Zero Knowledge Proof (ZKP) and Homomorphic encryption?
Qiita: Intel SGX入門 - SGX基礎知識編
Discussion