Skip To Main Content
Support Knowledge Base

Is There a Way to Directly Access Data to Enclave from Untrusted Application without Copying Data in Intel® Software Guard Extensions (Intel® SGX)?

Content Type: Product Information & Documentation   |   Article ID: 000091071   |   Last Reviewed: 06/15/2022

Description

I am building an Intel® SGX application where the enclave process would handled large amounts of data from the untrusted application. If data is copied to from untrusted applications to the enclave, there would not be enough memory. Is there a way to directly process the data in the Untrust area without causing data copying?

Resolution

You would have to allocate enough EPC for the data you are working with. The Intel® SGX Kernel Module and runtime supports paging so if the system runs out of EPC, it can utilize normal OS paging mechanisms to securely page EPC memory out to disk which would free up some EPC.

You could theoretically work on data in untrusted memory from within the enclave depending on the usage, but the enclave would only be able to access the untrusted application but the untrusted application could not read the enclave memory.