<?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 Hi, in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164311#M2999</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;What is the issue you are facing while giving the square brackets as input in the edl file??&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 12:36:36 GMT</pubDate>
    <dc:creator>Anusha_K_Intel</dc:creator>
    <dc:date>2017-08-18T12:36:36Z</dc:date>
    <item>
      <title>Sgx_seal_data_ex example code</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164307#M2995</link>
      <description>I would like to seal data to the enclave identity rather than the signer identity. I gather this has to be done using sgx_seal_data_ex but I am having trouble finding example code to use this. Does example code exist?
Thanks</description>
      <pubDate>Thu, 10 Aug 2017 03:16:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164307#M2995</guid>
      <dc:creator>glenn_t_</dc:creator>
      <dc:date>2017-08-10T03:16:04Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164308#M2996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can refer to the below file for the usage of sgx_seal_data_ex.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/01org/linux-sgx/blob/master/sdk/tseal/tSeal.cpp" target="_blank"&gt;https://github.com/01org/linux-sgx/blob/master/sdk/tseal/tSeal.cpp&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;"&gt;SGX_KEYPOLICY_MRSIGNER and SGX_KEYPOLICY_MRENCLAVE are defined in sgx_key.h&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Shivananda&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:40:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164308#M2996</guid>
      <dc:creator>Shivananda_H_Intel</dc:creator>
      <dc:date>2017-08-10T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164309#M2997</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The syntax for the function is as follows&lt;/P&gt;

&lt;P&gt;sgx_status_t sgx_seal_data_ex(&lt;BR /&gt;
	const uint16_t key_policy,&lt;BR /&gt;
	const sgx_attributes_t attribute_mask,&lt;BR /&gt;
	const sgx_misc_select_t misc_mask,&lt;BR /&gt;
	const uint32_t additional_MACtext_length,&lt;BR /&gt;
	const uint8_t * p_additional_MACtext,&lt;BR /&gt;
	const uint32_t text2encrypt_length,&lt;BR /&gt;
	const uint8_t * p_text2encrypt,&lt;BR /&gt;
	const uint32_t sealed_data_size,&lt;BR /&gt;
	sgx_sealed_data_t * p_sealed_data&lt;BR /&gt;
	);&lt;/P&gt;

&lt;P&gt;In the sample code of sealed Data application we can see the usage of sgx_seal_data() function but sgx_seal_data_ex() is not used.You can see that code for reference.&lt;/P&gt;

&lt;P&gt;The value of key_policy should be given as to 0x0001 to use the enclave's measurement register.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;You need to add sgx_tseal.h as your header file and sgx_tservice.lib as your library.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;More information regarding the function is given here: &lt;A href="https://software.intel.com/en-us/node/709129"&gt;https://software.intel.com/en-us/node/709129&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:41:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164309#M2997</guid>
      <dc:creator>Anusha_K_Intel</dc:creator>
      <dc:date>2017-08-10T12:41:22Z</dc:date>
    </item>
    <item>
      <title>So I define my function:</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164310#M2998</link>
      <description>&lt;P&gt;So I define my function and internally define &lt;SPAN style="font-size: 13.008px;"&gt;parameters&amp;nbsp;&lt;/SPAN&gt; for the sgx_seal_data_ex. &amp;nbsp;The parameters i defined in my function seem to be lost. So if i have to pass all the arguments for seal_data_ex into my function its not clear how this should be defined in the .edl file. The documentation for .edl files does not say what the convention is for square brackets [].&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 02:45:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164310#M2998</guid>
      <dc:creator>glenn_t_</dc:creator>
      <dc:date>2017-08-14T02:45:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164311#M2999</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;What is the issue you are facing while giving the square brackets as input in the edl file??&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 12:36:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Sgx-seal-data-ex-example-code/m-p/1164311#M2999</guid>
      <dc:creator>Anusha_K_Intel</dc:creator>
      <dc:date>2017-08-18T12:36:36Z</dc:date>
    </item>
  </channel>
</rss>

