Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

ecall cannot pass large character array to the enclave

Nazmus_S_
Beginner
405 Views

Hi,

I am trying to send a character array of size 64200, to the enclave via ECALL. However, the enclave receives only 511 characters. Is this restriction imposed by the design of Intel SGX? Any idea how to fix this?

Thanks.

Sadat 

0 Kudos
2 Replies
Anusha_K_Intel
Employee
405 Views

Hi,

I have tried passing an array of size 64500 from application to the enclave via ecall and It worked for me and there is no restriction in passing the array as long as its size is less than 128MB. I guess there may be some problem with the code please check.

0 Kudos
Nazmus_S_
Beginner
405 Views

Hi Anusha,

Thanks for your reply.

You are right. Actually, the issue was with the print function that I implemented (using OCALL). It printed only 511 characters.

Sadat

0 Kudos
Reply