<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Examples loading enclave from buffer? in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1405514#M5413</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;While there are no samples using that function included in the SGX SDK, I am sending you a patch to convert SampleEnclave which uses sgx_create_enclave to sgx_create_enclave_from_buffer_ex (the file type is not supported so I am sending you a PM of it)&lt;/P&gt;
&lt;P&gt;You can apply it to the linux-sgx repo.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Sahira&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 19:02:06 GMT</pubDate>
    <dc:creator>Sahira_Intel</dc:creator>
    <dc:date>2022-08-02T19:02:06Z</dc:date>
    <item>
      <title>Examples loading enclave from buffer?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1404233#M5409</link>
      <description>&lt;P&gt;Any examples available using &lt;FONT face="courier new,courier"&gt;sgx_create_enclave_from_buffer_ex&lt;/FONT&gt; and invoking ecalls and ocalls of the loaded enclave?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 13:12:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1404233#M5409</guid>
      <dc:creator>Daniel_ˢᵍˣ</dc:creator>
      <dc:date>2022-07-28T13:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Examples loading enclave from buffer?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1405514#M5413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;While there are no samples using that function included in the SGX SDK, I am sending you a patch to convert SampleEnclave which uses sgx_create_enclave to sgx_create_enclave_from_buffer_ex (the file type is not supported so I am sending you a PM of it)&lt;/P&gt;
&lt;P&gt;You can apply it to the linux-sgx repo.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Sahira&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:02:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1405514#M5413</guid>
      <dc:creator>Sahira_Intel</dc:creator>
      <dc:date>2022-08-02T19:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Examples loading enclave from buffer?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1406377#M5418</link>
      <description>&lt;P&gt;Thank you Sahira, the patched example worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A related question:&lt;/P&gt;
&lt;P&gt;In terms of security, is there an advantage in using &lt;FONT face="courier new,courier"&gt;mmap&lt;/FONT&gt; instead of reading the enclave into a buffer and using that buffer as input to &lt;FONT face="courier new,courier"&gt;sgx_create_enclave_from_buffer_ex&lt;/FONT&gt;?¹&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;¹ I created a hello world where the enclave is read into a buffer (fopen + fread) instead of using mmap and it appears to work as well.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 17:39:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1406377#M5418</guid>
      <dc:creator>Daniel_ˢᵍˣ</dc:creator>
      <dc:date>2022-08-05T17:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Examples loading enclave from buffer?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1406379#M5419</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The patched sample worked, thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A related question:&lt;/P&gt;
&lt;P&gt;In terms of security, is there an advantage in using &lt;FONT face="courier new,courier"&gt;mmap&lt;/FONT&gt; instead of reading the enclave into a buffer (fopen + fread) and using that buffer in &lt;FONT face="courier new,courier"&gt;sgx_create_enclave_from_buffer_ex&lt;/FONT&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 17:47:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1406379#M5419</guid>
      <dc:creator>Daniel_ˢᵍˣ</dc:creator>
      <dc:date>2022-08-05T17:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Examples loading enclave from buffer?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1408683#M5442</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It is technically faster. sgx_create_enclave_from_buffer_ex can be used without mmap if the user already has the enclave image buffer.&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Sahira&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 23:40:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Examples-loading-enclave-from-buffer/m-p/1408683#M5442</guid>
      <dc:creator>Sahira_Intel</dc:creator>
      <dc:date>2022-08-16T23:40:13Z</dc:date>
    </item>
  </channel>
</rss>

