Is it possible to load a program larger than the EPC memory to an enclave? I feel like in theory it is permissible because
- OS can swap pages out freely
EEXTENDmeasures an enclave incrementally by 256 bytes
So in theory, it seems possible to load a big program using just one page of EPC memory:
- load 4K bytes to an EPC page
- measure the loaded page
- evict the loaded page
- load the next 4K bytes to the same EPC page as the one in (1)
Am I understanding correctly in theory? Although in practice, I got an error immediately when loading big programs.