<?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 Hello Flo, in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140586#M2251</link>
    <description>&lt;P&gt;Hello Flo,&lt;/P&gt;&lt;P&gt;Can you please provide more specifics on what you are trying to do and how you are going about it? Can you share your code so we can see the changes you made?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 18:35:59 GMT</pubDate>
    <dc:creator>JesusG_Intel</dc:creator>
    <dc:date>2020-04-08T18:35:59Z</dc:date>
    <item>
      <title>transmit char* via secure channel</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140582#M2247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I currently work on the code of Local Attestation sample, trying to adapt it to send a char* instead uint8_t. My changes were in the files Utility_E2.cpp and Utility_E1.cpp, functions which are called in the enclaves. I changes also the types and sizes in some including header files, for the building of fifo message, but still, i encountered a segmentation fault located in the function generate_response, of code EnclaveMessageExchange.cpp (it crashed in the freeing of resp_data buffer).&lt;/P&gt;&lt;P&gt;Could you give me some tips to resolve this problem, and indicate to me the mandatory parts of codes which has to be adapted to send a char* ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 16:18:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140582#M2247</guid>
      <dc:creator>Flo</dc:creator>
      <dc:date>2020-03-12T16:18:07Z</dc:date>
    </item>
    <item>
      <title>Hello Flo,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140583#M2248</link>
      <description>&lt;P&gt;Hello Flo,&lt;/P&gt;&lt;P&gt;The SGX message exchange protocol encrypts the payload using the sgx_rijndael128GCM_encrypt and sgx_rijndael128GCM_decrypt functions. These functions require the payload to be uint8_t* so you cannot pass char* data directly. We recommend to cast your char* data to uint8_t* before passing it. You can find more information on these crypto library calls in the Intel® Software Guard Extensions Developer Reference for Linux OS page 252.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 17:36:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140583#M2248</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-03-19T17:36:00Z</dc:date>
    </item>
    <item>
      <title>Hello Jesus,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140584#M2249</link>
      <description>&lt;P&gt;Hello Jesus,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;BR /&gt;Indeed if have noticed that a cast in &lt;EM&gt;uint8_t* &lt;/EM&gt;was necessary.&lt;BR /&gt;A question about good practice : to be able to check the size of the decrypted_message (can't anymore use &lt;EM&gt;sizeof&lt;/EM&gt; on a pointer), i set the size of it during the building of the message in the enclave (&lt;EM&gt;Initiator&lt;/EM&gt; and &lt;EM&gt;Responder&lt;/EM&gt;) and then in the function &lt;EM&gt;marshal_message_exchange_request&lt;/EM&gt;, i implemented :&lt;BR /&gt;&lt;EM&gt;secret_data_len = strlen(reinterpret_cast&amp;lt;char *&amp;gt;(secret_data)) * sizeof(*secret_data)&lt;/EM&gt;&lt;BR /&gt;Is that the good way ?&lt;BR /&gt;Morever, the result of &lt;EM&gt;secret_data_len&lt;/EM&gt; doesn't return the appropriate length.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 09:43:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140584#M2249</guid>
      <dc:creator>thiant__floris</dc:creator>
      <dc:date>2020-04-04T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Hi Jesus,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140585#M2250</link>
      <description>&lt;P&gt;Hi Jesus,&lt;/P&gt;&lt;P&gt;I am now able to send a &lt;EM&gt;uint8_t *&lt;/EM&gt;, but even with an large enough allocation of memory for&lt;EM&gt; char *&lt;/EM&gt; result, both in and out, i can only send message of the same size (Initiator and Responder). If not, i encountered a segmentation fault during the freeing of &lt;EM&gt;_in_req_message (EnclaveResponder_t.c).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea to understand this behaviour ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 11:28:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140585#M2250</guid>
      <dc:creator>Flo</dc:creator>
      <dc:date>2020-04-07T11:28:33Z</dc:date>
    </item>
    <item>
      <title>Hello Flo,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140586#M2251</link>
      <description>&lt;P&gt;Hello Flo,&lt;/P&gt;&lt;P&gt;Can you please provide more specifics on what you are trying to do and how you are going about it? Can you share your code so we can see the changes you made?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 18:35:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140586#M2251</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-04-08T18:35:59Z</dc:date>
    </item>
    <item>
      <title>Hi Jesus,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140587#M2252</link>
      <description>&lt;P&gt;Hi Jesus,&lt;/P&gt;&lt;P&gt;I resolved my problem by passing the &lt;EM&gt;ms_in_msg_exchange_t&lt;/EM&gt; structure to the function&lt;EM&gt; message_exchange_response_generator&lt;/EM&gt; to retrieve the appropriate length of &lt;EM&gt;uint8_t *&lt;/EM&gt;, calculated in the function &lt;EM&gt;marshal_message_exchange_request&lt;/EM&gt; (Utility_E1.cpp of EnclaveInitiator).&lt;/P&gt;&lt;P&gt;Thanks for the time you have spent on my question.&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 13:58:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/transmit-char-via-secure-channel/m-p/1140587#M2252</guid>
      <dc:creator>Flo</dc:creator>
      <dc:date>2020-04-21T13:58:52Z</dc:date>
    </item>
  </channel>
</rss>

