<?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 You can try this prototype I in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-system-libraries-in-simulation-mode-for-debugging/m-p/1178944#M3470</link>
    <description>&lt;P&gt;You can try this prototype I created on Linux (&lt;SPAN style="font-size: 13.008px;"&gt;limited testing on Ubuntu 16.04)&lt;/SPAN&gt;:&amp;nbsp;https://github.com/haitaohuang/linux-sgx/commit/a5605b7f42bf772baa8e1f0010dce8a488cb3e88&lt;/P&gt;

&lt;P&gt;It modifies the Makefile in SampleEnclave that comes with SDK. Please be aware error handling is critical for security sensitive code. So this is only for prototyping and debugging purpose. You probably need replace error handling logic with trusted libs in real HW mode for production, not just compile them out.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Sep 2017 02:02:32 GMT</pubDate>
    <dc:creator>Haitao_H_Intel</dc:creator>
    <dc:date>2017-09-09T02:02:32Z</dc:date>
    <item>
      <title>Using system libraries in simulation mode for debugging</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-system-libraries-in-simulation-mode-for-debugging/m-p/1178943#M3469</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;While developing the enclave in simulation mode, it'd be productive to allow printf for debugging. I see that is isn't a part of libsgx_tstdc.a. Also, a part of my enclave code has been sourced from Torch which calls printf, exit etc to perform error handling. Performing error handling when SGX_MODE=SIM would also make the development productive. I have added appropriate fences to not include the error handling code when SGX_MODE=HW.&lt;/P&gt;

&lt;P&gt;Please suggest include and link flags that would link the enclave to use the system libraries to enable these error handling routines.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 07:56:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-system-libraries-in-simulation-mode-for-debugging/m-p/1178943#M3469</guid>
      <dc:creator>SANJAY_S_</dc:creator>
      <dc:date>2017-09-07T07:56:12Z</dc:date>
    </item>
    <item>
      <title>You can try this prototype I</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-system-libraries-in-simulation-mode-for-debugging/m-p/1178944#M3470</link>
      <description>&lt;P&gt;You can try this prototype I created on Linux (&lt;SPAN style="font-size: 13.008px;"&gt;limited testing on Ubuntu 16.04)&lt;/SPAN&gt;:&amp;nbsp;https://github.com/haitaohuang/linux-sgx/commit/a5605b7f42bf772baa8e1f0010dce8a488cb3e88&lt;/P&gt;

&lt;P&gt;It modifies the Makefile in SampleEnclave that comes with SDK. Please be aware error handling is critical for security sensitive code. So this is only for prototyping and debugging purpose. You probably need replace error handling logic with trusted libs in real HW mode for production, not just compile them out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 02:02:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-system-libraries-in-simulation-mode-for-debugging/m-p/1178944#M3470</guid>
      <dc:creator>Haitao_H_Intel</dc:creator>
      <dc:date>2017-09-09T02:02:32Z</dc:date>
    </item>
    <item>
      <title>Hello Huang !</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-system-libraries-in-simulation-mode-for-debugging/m-p/1178945#M3471</link>
      <description>&lt;P&gt;Hello Huang !&lt;/P&gt;

&lt;P&gt;Thanks for the code !!&lt;/P&gt;

&lt;P&gt;I've implemented printf inside the enclave by,&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Applying the formatting through the internally provided vsnprintf.&lt;/LI&gt;
	&lt;LI&gt;Printing the resulting string by passing it to printf or puts through an OCALL.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;​exit can be implemented through similar means.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 06:47:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Using-system-libraries-in-simulation-mode-for-debugging/m-p/1178945#M3471</guid>
      <dc:creator>SANJAY_S_</dc:creator>
      <dc:date>2017-09-13T06:47:11Z</dc:date>
    </item>
  </channel>
</rss>

