<?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 is it possible to write app in python and enclave in C++? in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1370480#M5168</link>
    <description>&lt;P&gt;Dear admin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to getting Sgx up and running as a web server. But it seems there is no solid C++ web framework, so I am thinking to use Python as App Layer and C++ as Enclave Layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible?&lt;/P&gt;
&lt;P&gt;Is there something I should be aware of ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Yan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 08:15:15 GMT</pubDate>
    <dc:creator>JarodEnclave</dc:creator>
    <dc:date>2022-03-21T08:15:15Z</dc:date>
    <item>
      <title>is it possible to write app in python and enclave in C++?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1370480#M5168</link>
      <description>&lt;P&gt;Dear admin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to getting Sgx up and running as a web server. But it seems there is no solid C++ web framework, so I am thinking to use Python as App Layer and C++ as Enclave Layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible?&lt;/P&gt;
&lt;P&gt;Is there something I should be aware of ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Yan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 08:15:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1370480#M5168</guid>
      <dc:creator>JarodEnclave</dc:creator>
      <dc:date>2022-03-21T08:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to write app in python and enclave in C++?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1370734#M5171</link>
      <description>&lt;P&gt;Hello JarodEnclave,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your untrusted application can be a thin translation layer to your enclave. Your front-end python code can call functions in your C++-based untrusted app and your untrusted app can call the enclave functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can implement your entire solution in Python if you want. T&lt;SPAN&gt;here are several 3rd party solutions that enable you to write native python (and other languages) code and run it within an SGX-protected environment. These 3rd party solutions mostly come in the form of lightweight runtime environments, OSes, or libraries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since Intel does not produce these solutions, support for those projects may be provided by the third-parties and their communities. When researching these projects, note that some of them are outdated and may no longer function without modification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way to run your python scripts is to use&amp;nbsp;&lt;A href="https://github.com/gramineproject/gramine" target="_blank" rel="noopener noreferrer"&gt;Gramine&lt;/A&gt;&amp;nbsp;(formerly known as Graphene) to run your programs in an SGX-protected environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;“&lt;/I&gt;&lt;I&gt;Gramine (formerly called&amp;nbsp;&lt;/I&gt;&lt;SPAN&gt;Graphene&lt;/SPAN&gt;&lt;I&gt;) is a&amp;nbsp;lightweight library OS, designed to run a single application with minimal host requirements. Gramine can run applications in an isolated environment with benefits comparable to running a&amp;nbsp;complete OS in a&amp;nbsp;virtual machine -- including guest customization, ease of porting to different OSes, and process migration.&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Gramine supports native, unmodified Linux binaries on any platform. Currently, Gramine runs on Linux and Intel SGX enclaves on Linux platforms.”&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These examples will help you get started running your code on Gramine, protected by SGX:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A style="font-family: Calibri; font-size: 11pt;" href="https://gramine.readthedocs.io/en/latest/quickstart.html" target="_blank" rel="noopener noreferrer"&gt;Quick Start&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A style="font-family: Calibri; font-size: 11pt;" href="https://github.com/gramineproject/gramine/tree/master/CI-Examples/helloworld" target="_blank" rel="noopener noreferrer"&gt;Helloworld&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/gramineproject/examples/tree/master/pytorch" target="_blank" rel="noopener noreferrer"&gt;PyTorch Example&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A style="font-family: Calibri; font-size: 11pt;" href="https://blog.openmined.org/pysyft-pytorch-intel-sgx/" target="_blank" rel="noopener noreferrer"&gt;PySyft&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other solutions include&amp;nbsp;&lt;A href="https://fortanix.com/products/runtime-encryption/" target="_blank" rel="noopener noreferrer"&gt;Fortanix Runtime Encryption®&lt;/A&gt;&amp;nbsp;platform,&amp;nbsp;Scontain’s&amp;nbsp;&lt;A href="https://scontain.com/index.html?lang=en" target="_blank" rel="noopener noreferrer"&gt;Scone - Secure Container Environment&lt;/A&gt;, and&amp;nbsp;&lt;A href="https://anquan.baidu.com/product/mesatee" target="_blank" rel="noopener noreferrer"&gt;Baidu’s MesaTEE&lt;/A&gt;.&amp;nbsp;Baidu’s&amp;nbsp;&lt;A href="https://github.com/mesalock-linux/mesapy" target="_blank" rel="noopener noreferrer"&gt;MesaPy&lt;/A&gt;&amp;nbsp;lets you write directly in Python, as does&amp;nbsp;&lt;A href="https://www.profian.com/solution" target="_blank" rel="noopener noreferrer"&gt;Profian’s Enarx&lt;/A&gt;&amp;nbsp;product, as it compiles to WebAssembly (as does some other languages).&amp;nbsp;Fortanix and Scone are products that must be purchased.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find more information about these 3rd party solutions in the &lt;A href="https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/get-started.html" target="_blank" rel="noopener noreferrer"&gt;Intel SGX Get Started&lt;/A&gt; page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jesus G.&lt;/P&gt;
&lt;P&gt;Intel Customer Support&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 14:53:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1370734#M5171</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2022-03-25T14:53:39Z</dc:date>
    </item>
    <item>
      <title>Re:is it possible to write app in python and enclave in C++?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1372050#M5180</link>
      <description>&lt;P&gt;Hello JarodEnclave,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have I provided enough information to help you find your solution?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Mar 2022 15:44:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1372050#M5180</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2022-03-25T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re:is it possible to write app in python and enclave in C++?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1374141#M5186</link>
      <description>&lt;P&gt;Hello JarodEnclave,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope you have been able to resolve your issue. I have not heard back from you so I will close this inquiry now. If you need further assistance, please post a new question.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Apr 2022 17:04:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/is-it-possible-to-write-app-in-python-and-enclave-in-C/m-p/1374141#M5186</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2022-04-04T17:04:28Z</dc:date>
    </item>
  </channel>
</rss>

