<?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 I assume that if you really in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149044#M2513</link>
    <description>&lt;P&gt;I assume that if you really want to use C++, you can use C++ object serialization technique to get in and out the Enclave instead of using struct. But it does add some overhead.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2017 16:40:39 GMT</pubDate>
    <dc:creator>Hoang_N_Intel</dc:creator>
    <dc:date>2017-10-31T16:40:39Z</dc:date>
    <item>
      <title>How to pass a parameter which the type is a class</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149042#M2511</link>
      <description>&lt;P&gt;Hello guys:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; I am a freshman of SGX, I want protect a function which its parameter is a class，and how can I pass it to enclave?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;for example:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pass.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9746iC6F8B09E1990881C/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="pass.png" alt="pass.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;and edl file not support "class"&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:56:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149042#M2511</guid>
      <dc:creator>dai_c_</dc:creator>
      <dc:date>2017-10-30T09:56:39Z</dc:date>
    </item>
    <item>
      <title>Hi dai c.:</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149043#M2512</link>
      <description>&lt;P&gt;Hi &lt;A href="https://software.intel.com/en-us/user/1602847"&gt;dai c.:&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Actually the interface for sgx can only be write with C programming language. You can use struct instead.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;you&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 07:04:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149043#M2512</guid>
      <dc:creator>you_w_</dc:creator>
      <dc:date>2017-10-31T07:04:28Z</dc:date>
    </item>
    <item>
      <title>I assume that if you really</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149044#M2513</link>
      <description>&lt;P&gt;I assume that if you really want to use C++, you can use C++ object serialization technique to get in and out the Enclave instead of using struct. But it does add some overhead.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 16:40:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149044#M2513</guid>
      <dc:creator>Hoang_N_Intel</dc:creator>
      <dc:date>2017-10-31T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Quote:Hoang Nguyen (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149045#M2514</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Hoang Nguyen (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I assume that if you really want to use C++, you can use C++ object serialization technique to get in and out the Enclave instead of using struct. But it does add some overhead.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Yes,It's a good idea! I have a try in&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;C++ object serialization technique,but many h&lt;/SPAN&gt;eader files used by&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;serialization is &amp;nbsp;u&lt;/SPAN&gt;nsupported in SGX, SDK e.g./boost/archive/text_oarchive.hpp ,boost/archive/text_iarchive.hpp. &amp;nbsp;and also some&amp;nbsp;&lt;SPAN style="color: rgb(51, 51, 51); font-family: arial; font-size: 13.91px;"&gt;frequently&amp;nbsp;used&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;header files in C++ is&amp;nbsp;u&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;nsupported in SGX SDK,like iostream,sstream and so on.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 01:41:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149045#M2514</guid>
      <dc:creator>dai_c_</dc:creator>
      <dc:date>2017-11-02T01:41:00Z</dc:date>
    </item>
    <item>
      <title>Quote:you w. wrote:</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149046#M2515</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;you w. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi &lt;A href="https://software.intel.com/en-us/user/1602847"&gt;dai c.:&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Actually the interface for sgx can only be write with C programming language. You can use struct instead.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;you&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: arial; font-size: 13px;"&gt;Actually, I use SGX SDK to protect some modules of a massive C++ project, and it's hard to change class into struct. and the mainly problem is I can't &amp;nbsp;pass C++ object by edl file&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 01:52:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/How-to-pass-a-parameter-which-the-type-is-a-class/m-p/1149046#M2515</guid>
      <dc:creator>dai_c_</dc:creator>
      <dc:date>2017-11-02T01:52:00Z</dc:date>
    </item>
  </channel>
</rss>

