Can I load a program larger than EPC memory into an enclave? I feel that this is theoretically acceptable, because
- OS is free to change pages
EEXTEND measures the enclave gradually by 256 bytes.
Thus, it is theoretically possible to download a large program using only one page of EPC memory:
- upload 4K bytes to an EPC page
- measure loaded page
- upload loaded page
- upload the following 4K bytes to the same EPC page as in (1)
Do I understand the theory correctly? Although in practice, I immediately got an error when downloading large programs.
source
share