<?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 Confidential Computing</title>
    <link>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112839#M1364</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to integrate a third party library archive file into SGX Enclave. When the function in the third party library is being called from the trusted function call, I am getting the errors like the below&lt;/P&gt;

&lt;P&gt;relocation R_X86_64_32S against `_ZNSs4_Rep20_S_empty_rep_storageE' can not be used when making a shared object; recompile with -fPIC&lt;/P&gt;

&lt;P&gt;error adding symbols: Bad value&lt;/P&gt;

&lt;P&gt;Does this mean that I have to compile the third part source code with -fPIC option and link that library to create the trusted shared object ? As per your comments, I guess lot of porting also is needed to make the third party library to be compatible for SGX. Do we have any porting guidance or manual for such exercise ? Any tool which will scan the third party source code and highlight the incompatible portion of the code with the suggestion for modification. I understand that the trusted shared object along with all the needed third party library also will be enclaved.&amp;nbsp; Is there any size restriction we have on this ?&lt;/P&gt;

&lt;P&gt;Kinda struck on this. Any help and suggestion will be highly appreciated.&lt;/P&gt;

&lt;P&gt;Regards,Sathya&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2016 05:31:37 GMT</pubDate>
    <dc:creator>Sathya_V_</dc:creator>
    <dc:date>2016-09-21T05:31:37Z</dc:date>
    <item>
      <title>Third Party Library in Enclave</title>
      <link>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112837#M1362</link>
      <description>&lt;P&gt;Does enclave support using third party library in the enclave? Like the openssl library?&lt;/P&gt;

&lt;P&gt;If so, how should I configure this? Because I configure the enclave like a normal Win32 console application but a lot of errors coming up. All the erro rs are about the openssl library.&lt;/P&gt;

&lt;P&gt;For example&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;120&amp;nbsp;&amp;nbsp; &amp;nbsp;IntelliSense: identifier "FILE" is undefined&amp;nbsp;&amp;nbsp; &amp;nbsp;c:\OpenSSL-Win32\include\openssl\ec.h&amp;nbsp;&amp;nbsp; &amp;nbsp;983&amp;nbsp;&amp;nbsp; &amp;nbsp;21&amp;nbsp;&amp;nbsp; &amp;nbsp;Enclave1 (Intel C++ 16.0)&lt;/P&gt;

&lt;P&gt;But I didn't get any errors in a normal application.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Any help is appreciated.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 18:43:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112837#M1362</guid>
      <dc:creator>Jiakuan_L_</dc:creator>
      <dc:date>2016-06-29T18:43:57Z</dc:date>
    </item>
    <item>
      <title>Anything that you can build</title>
      <link>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112838#M1363</link>
      <description>&lt;P&gt;Anything that you can build and &lt;EM&gt;statically&lt;/EM&gt; link can be incorporated into an enclave, however, porting a library to work in an enclave is not a trivial task. Enclaves have limited memory, restrictions on what instructions can be executed, and most importantly cannot depend on dynamically loaded libraries. Because of the latter restriction, enclave programs also depend on Intel-provided C and C++ template libraries which are linked statically at build time. I would not expect a large, complex package like OpenSSL to just build and work. Significant porting would probably be needed.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 11:09:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112838#M1363</guid>
      <dc:creator>Kuppusamy_R_Intel</dc:creator>
      <dc:date>2016-07-01T11:09:23Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112839#M1364</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to integrate a third party library archive file into SGX Enclave. When the function in the third party library is being called from the trusted function call, I am getting the errors like the below&lt;/P&gt;

&lt;P&gt;relocation R_X86_64_32S against `_ZNSs4_Rep20_S_empty_rep_storageE' can not be used when making a shared object; recompile with -fPIC&lt;/P&gt;

&lt;P&gt;error adding symbols: Bad value&lt;/P&gt;

&lt;P&gt;Does this mean that I have to compile the third part source code with -fPIC option and link that library to create the trusted shared object ? As per your comments, I guess lot of porting also is needed to make the third party library to be compatible for SGX. Do we have any porting guidance or manual for such exercise ? Any tool which will scan the third party source code and highlight the incompatible portion of the code with the suggestion for modification. I understand that the trusted shared object along with all the needed third party library also will be enclaved.&amp;nbsp; Is there any size restriction we have on this ?&lt;/P&gt;

&lt;P&gt;Kinda struck on this. Any help and suggestion will be highly appreciated.&lt;/P&gt;

&lt;P&gt;Regards,Sathya&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 05:31:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112839#M1364</guid>
      <dc:creator>Sathya_V_</dc:creator>
      <dc:date>2016-09-21T05:31:37Z</dc:date>
    </item>
    <item>
      <title>Hi </title>
      <link>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112840#M1365</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please look into sample application shipped with SDK.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;\Intel\IntelSGXSDK\src\X509Verifier.&lt;/P&gt;

&lt;P&gt;-Surenthar&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 11:21:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Confidential-Computing/Third-Party-Library-in-Enclave/m-p/1112840#M1365</guid>
      <dc:creator>Surenthar_S_Intel</dc:creator>
      <dc:date>2016-09-21T11:21:47Z</dc:date>
    </item>
  </channel>
</rss>

