<?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 Generating key for writing protected file in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Generating-key-for-writing-protected-file/m-p/1151981#M2599</link>
    <description>&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;TD;DR: can I generate the same key with&amp;nbsp;&lt;EM&gt;sgx_get_key&lt;/EM&gt; on different machines?&lt;/P&gt;&lt;P&gt;I've been trying out the PFS API's &lt;EM&gt;sgx_fopen&lt;/EM&gt;&amp;nbsp;for exporting a configuration file and later importing on a different machine&amp;nbsp;but I don't think I quote understood &lt;EM&gt;cpu_svn&lt;/EM&gt; and &lt;EM&gt;isv_svn&lt;/EM&gt;... I tried generating a key without setting them with the following code&amp;nbsp;and I got different keys on different machines, is it right?&amp;nbsp;I'd really appreciate if anybody could point me in the right direction...&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;sgx_cpu_svn_t&amp;nbsp;cpu_svn&amp;nbsp;=&amp;nbsp;{0};
sgx_isv_svn_t&amp;nbsp;isv_svn&amp;nbsp;=&amp;nbsp;{0};
sgx_key_request_t&amp;nbsp;request&amp;nbsp;=&amp;nbsp;{&amp;nbsp;SGX_KEYSELECT_SEAL,&amp;nbsp;SGX_KEYPOLICY_MRENCLAVE,&amp;nbsp;isv_svn,&amp;nbsp;0,&amp;nbsp;cpu_svn&amp;nbsp;,&amp;nbsp;NULL,&amp;nbsp;0,&amp;nbsp;NULL,&amp;nbsp;0&amp;nbsp;};
sgx_status_t&amp;nbsp;status&amp;nbsp;=&amp;nbsp;sgx_get_key(&amp;amp;request,&amp;nbsp;key);

&lt;/PRE&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 19:47:37 GMT</pubDate>
    <dc:creator>Santos__Ricardo</dc:creator>
    <dc:date>2019-08-28T19:47:37Z</dc:date>
    <item>
      <title>Generating key for writing protected file</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Generating-key-for-writing-protected-file/m-p/1151981#M2599</link>
      <description>&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;TD;DR: can I generate the same key with&amp;nbsp;&lt;EM&gt;sgx_get_key&lt;/EM&gt; on different machines?&lt;/P&gt;&lt;P&gt;I've been trying out the PFS API's &lt;EM&gt;sgx_fopen&lt;/EM&gt;&amp;nbsp;for exporting a configuration file and later importing on a different machine&amp;nbsp;but I don't think I quote understood &lt;EM&gt;cpu_svn&lt;/EM&gt; and &lt;EM&gt;isv_svn&lt;/EM&gt;... I tried generating a key without setting them with the following code&amp;nbsp;and I got different keys on different machines, is it right?&amp;nbsp;I'd really appreciate if anybody could point me in the right direction...&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;sgx_cpu_svn_t&amp;nbsp;cpu_svn&amp;nbsp;=&amp;nbsp;{0};
sgx_isv_svn_t&amp;nbsp;isv_svn&amp;nbsp;=&amp;nbsp;{0};
sgx_key_request_t&amp;nbsp;request&amp;nbsp;=&amp;nbsp;{&amp;nbsp;SGX_KEYSELECT_SEAL,&amp;nbsp;SGX_KEYPOLICY_MRENCLAVE,&amp;nbsp;isv_svn,&amp;nbsp;0,&amp;nbsp;cpu_svn&amp;nbsp;,&amp;nbsp;NULL,&amp;nbsp;0,&amp;nbsp;NULL,&amp;nbsp;0&amp;nbsp;};
sgx_status_t&amp;nbsp;status&amp;nbsp;=&amp;nbsp;sgx_get_key(&amp;amp;request,&amp;nbsp;key);

&lt;/PRE&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 19:47:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Generating-key-for-writing-protected-file/m-p/1151981#M2599</guid>
      <dc:creator>Santos__Ricardo</dc:creator>
      <dc:date>2019-08-28T19:47:37Z</dc:date>
    </item>
    <item>
      <title>Hi Ricardo.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Generating-key-for-writing-protected-file/m-p/1151982#M2600</link>
      <description>&lt;P&gt;Hi Ricardo.&lt;/P&gt;&lt;P&gt;As mentioned in the post below, SGX keys are unique to each specific platform.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-software-guard-extensions-intel-sgx/topic/705026" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-software-guard-extensions-intel-sgx/topic/705026&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you require sealing/unsealing data on multiple platforms, you would need to utilize SGX remote attestation to provision common sealing/unsealing keys securely to those platforms.&amp;nbsp; For more info, see the white paper below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/code-sample-intel-software-guard-extensions-remote-attestation-end-to-end-example" target="_blank"&gt;https://software.intel.com/en-us/articles/code-sample-intel-software-guard-extensions-remote-attestation-end-to-end-example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 14:17:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Generating-key-for-writing-protected-file/m-p/1151982#M2600</guid>
      <dc:creator>Scott_R_Intel</dc:creator>
      <dc:date>2019-09-03T14:17:25Z</dc:date>
    </item>
    <item>
      <title>Thank you very much, Scott!</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Generating-key-for-writing-protected-file/m-p/1151983#M2601</link>
      <description>&lt;P&gt;Thank you very much, Scott!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 17:46:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Generating-key-for-writing-protected-file/m-p/1151983#M2601</guid>
      <dc:creator>Santos__Ricardo</dc:creator>
      <dc:date>2019-09-03T17:46:13Z</dc:date>
    </item>
  </channel>
</rss>

