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

Intel SGX EDL File Syntax Question

rkarl
Beginner
859 Views

Dear Intel SGX Team,

In the EDL file, when specifying the size of the buffers passed into and out of the enclave, does the size keyword refer to the number of elements in the buffer or the number of bytes in the buffer?

I greatly appreciate any help you can provide.

Best regards,

rkarl

0 Kudos
1 Solution
Dr__Greg
Super User
854 Views

Good evening Rkari, I hope this note finds your weekend going well.

The size is the size in bytes of the buffer.  If it were the number of data elements being marshaled into the buffer there would be a need to specify to the EDL code the size of each data element, ala calloc(3).

We will see if this reply conveys a badge for the most concise reply...

Have a good week.

Dr. Greg

View solution in original post

2 Replies
Dr__Greg
Super User
855 Views

Good evening Rkari, I hope this note finds your weekend going well.

The size is the size in bytes of the buffer.  If it were the number of data elements being marshaled into the buffer there would be a need to specify to the EDL code the size of each data element, ala calloc(3).

We will see if this reply conveys a badge for the most concise reply...

Have a good week.

Dr. Greg

rkarl
Beginner
840 Views

Dear Dr. Greg,

 

Thank you so much for your help.

 

I greatly appreciate such a prompt reply, especially over the weekend (definitely badge worthy)!

 

I hope you have a good week too!

 

Kind regards,

 

rkarl

0 Kudos
Reply