<?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 Data buffer allocation recommendation for sgx_aes_ctr_decrypt in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Data-buffer-allocation-recommendation-for-sgx-aes-ctr-decrypt/m-p/1072043#M333</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Documentation of &amp;nbsp;sgx_aes_ctr_decrypt ( &lt;A href="https://software.intel.com/en-us/node/696625" target="_blank"&gt;https://software.intel.com/en-us/node/696625&lt;/A&gt; ) &amp;nbsp;says "&lt;EM&gt;It is recommended that the source, destination and counter data buffers are allocated within the enclave.&lt;/EM&gt;"&lt;/P&gt;

&lt;P&gt;So is it recommended or necessary? What happens if we pass pointer to buffer allocated outside of enclave to sgx_aes_ctr_decrypt? ie pointer passed as an user_check attribute to ECall.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Himanshu&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2016 07:51:24 GMT</pubDate>
    <dc:creator>manshu_P_</dc:creator>
    <dc:date>2016-11-02T07:51:24Z</dc:date>
    <item>
      <title>Data buffer allocation recommendation for sgx_aes_ctr_decrypt</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Data-buffer-allocation-recommendation-for-sgx-aes-ctr-decrypt/m-p/1072043#M333</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Documentation of &amp;nbsp;sgx_aes_ctr_decrypt ( &lt;A href="https://software.intel.com/en-us/node/696625" target="_blank"&gt;https://software.intel.com/en-us/node/696625&lt;/A&gt; ) &amp;nbsp;says "&lt;EM&gt;It is recommended that the source, destination and counter data buffers are allocated within the enclave.&lt;/EM&gt;"&lt;/P&gt;

&lt;P&gt;So is it recommended or necessary? What happens if we pass pointer to buffer allocated outside of enclave to sgx_aes_ctr_decrypt? ie pointer passed as an user_check attribute to ECall.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Himanshu&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:51:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Data-buffer-allocation-recommendation-for-sgx-aes-ctr-decrypt/m-p/1072043#M333</guid>
      <dc:creator>manshu_P_</dc:creator>
      <dc:date>2016-11-02T07:51:24Z</dc:date>
    </item>
    <item>
      <title>It's a recommendation. I'm</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Data-buffer-allocation-recommendation-for-sgx-aes-ctr-decrypt/m-p/1072044#M334</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;It's a recommendation. I'm sure you understand why.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;sgx_aes_ctr_decrypt won't give you an error if the buffers are outside the enclave.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 19:03:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Data-buffer-allocation-recommendation-for-sgx-aes-ctr-decrypt/m-p/1072044#M334</guid>
      <dc:creator>Juan_d_Intel</dc:creator>
      <dc:date>2016-11-09T19:03:31Z</dc:date>
    </item>
    <item>
      <title>Buffers do not need to be</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Data-buffer-allocation-recommendation-for-sgx-aes-ctr-decrypt/m-p/1072045#M335</link>
      <description>&lt;P style="margin-bottom: 0px; border: 0px; font-size: 14px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, sans-serif; vertical-align: baseline; color: rgb(0, 0, 0);"&gt;Buffers do not need to be inside the enclave. But there are obvious security consequences for doing so. For decrypt you most likely want your destination buffer inside the enclave. Leaving the source outside the enclave can prevents a copy being required. Vice versa for the encrypt operation.&lt;/P&gt;

&lt;P style="margin-bottom: 0px; border: 0px; font-size: 14px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, sans-serif; vertical-align: baseline; color: rgb(0, 0, 0);"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; border: 0px; font-size: 14px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, sans-serif; vertical-align: baseline; color: rgb(0, 0, 0);"&gt;-Surenthar&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 06:23:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Data-buffer-allocation-recommendation-for-sgx-aes-ctr-decrypt/m-p/1072045#M335</guid>
      <dc:creator>Surenthar_S_Intel</dc:creator>
      <dc:date>2016-11-15T06:23:51Z</dc:date>
    </item>
  </channel>
</rss>

