<?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 Re: Re:Attestation error SGX_ERROR_MAC_MISMATCH in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302459#M4802</link>
    <description>&lt;P&gt;Hello Jesus G.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not yet inside the sgx_ra_proc_msg2_trusted functions, I am trying to step into it but am not able.&lt;/P&gt;
&lt;P&gt;The program I am debugging is my code, and it is compiled in debug mode as the entire SDK following your instructions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can break outside sgx_ra_proc_msg2 function (the untrusted one from ukey_exchange.cpp), and step into it. This leads me to the ecall that I cannot step into (from what I see that ecall should be sgx_ra_proc_msg2_trusted). Please find attached a screen of my debugger output. The last call (sgx_ecall) is the one I cannot step into. I also tried to setup a breakpoint inside the tke_exchange.cpp file but sgx-gdb gives me the error 'No source file named tkey_exchange.cpp' and I am not able to break into that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-07-30 at 09.43.10.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/18452i9C35BC84F0F54493/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot 2021-07-30 at 09.43.10.png" alt="Screenshot 2021-07-30 at 09.43.10.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jul 2021 08:15:59 GMT</pubDate>
    <dc:creator>mperillo</dc:creator>
    <dc:date>2021-07-30T08:15:59Z</dc:date>
    <item>
      <title>Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1297336#M4727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am developing an enclave providing attestation feature. My code is based on the sample code of the RemoteAttestation project provided by Intel inside the SGX SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The service provider side is a python script I am using just to test the attestation feature.&lt;/P&gt;
&lt;P&gt;After receiving msg1 from SGX, the python script is generating msg2 (again, I am trying to replicate the service_provider of the RemoteAttestation in the python script). When msg2 is received by the SGX and given to the sgx_ra_proc_msg2 function, it returns SGX_ERROR_MAC_MISMATCH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given the python function AES_CMAC(secret,data)-&amp;gt;Mac, I am computing the Mac inside msg2 in the following way:&lt;/P&gt;
&lt;P&gt;tmp = AES_CMAC(0,dh_key), where dh_key is the Diffie Hellman key produced using part of msg1 from Enclave;&lt;/P&gt;
&lt;P&gt;smk_key = AES_CMAC(tmp,'SMK');&lt;/P&gt;
&lt;P&gt;Mac = AES_CMAC(smk_key, data), where data is the concatenation of: g_b (the public key of service provider for DHKE), SPID, quote_type (1), kdf_id (1), sig (the signature of the concatenation of keys g_b and g_b done under service provide secret key, the enclave has the public key hard-coded).&lt;/P&gt;
&lt;P&gt;Note: all data are represented in little endian, as I understand that is what the enclave wants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two questions:&lt;/P&gt;
&lt;P&gt;1. How can I solve this? Am I doing anything wrong?&lt;/P&gt;
&lt;P&gt;2. Is there a way to debug inside sgx_ra_proc_msg2? I am compiling in debug hw mode, and tried to step inside the function with the sgx-gdb debugger but it didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;General info: I am working with an SGX enabled cpu on Ubuntu 20.04.2 LTS, SGX SDK v2.13.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attach the python script, I guess the error may be there.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 15:36:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1297336#M4727</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-09T15:36:53Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1297402#M4731</link>
      <description>&lt;P&gt;Hello Mperillo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Did you follow the instructions for computing MSG2 from &lt;A href="https://software.intel.com/content/www/us/en/develop/articles/code-sample-intel-software-guard-extensions-remote-attestation-end-to-end-example.html" rel="noopener noreferrer" target="_blank"&gt;Code Sample: Intel® Software Guard Extensions Remote Attestation End-to-End Example&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can debug the sgx_ra_proc_msg2 if you build the PSW from source with debug information: &lt;A href="https://github.com/intel/linux-sgx#build-the-intelr-sgx-psw-and-intelr-sgx-psw-installer" target="_blank"&gt;https://github.com/intel/linux-sgx#build-the-intelr-sgx-psw-and-intelr-sgx-psw-installer&lt;/A&gt;&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;BR /&gt;</description>
      <pubDate>Fri, 09 Jul 2021 19:49:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1297402#M4731</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-09T19:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1297831#M4741</link>
      <description>&lt;P&gt;Hi Jesus G.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you for your reply. I am already computing MSG2 following the link you sent me, my only error was on the way I was deriving SMK but I fixed it now. It still gives me the same error anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already have the debug symbols and development packages installed but I am not able to step inside sgx_ra_proc_msg2 with sgx-dbg (when I press 's' to step in, it works like a 'next' and goes to the next line in my code).&amp;nbsp; What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 13:55:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1297831#M4741</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-12T13:55:09Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1298270#M4748</link>
      <description>&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Did you build the PSW from scratch locally? Installing the debug and symbol packages from the repo is not enough to be able to step into that function.&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;BR /&gt;</description>
      <pubDate>Tue, 13 Jul 2021 20:28:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1298270#M4748</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-13T20:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1298514#M4751</link>
      <description>&lt;P&gt;Hi Jesus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now did build the PSW from scratch locally and am able to see debug logging and debug inside sgx api functions. The problem is that with this version of PSW installed I am now getting a SGX_ERROR_UNEXPECTED when I call sgx_ra_get_msg1, while that used to work before (with the prebuilt package installed). Debugging the function I see that the error comes from the following call stack sgx_ra_get_msg1-&amp;gt;sgx_init_quote-&amp;gt;oal_init_quote; this last call returns UAE_OAL_SUCCESS but sets result as AESM_UNEXPECTED_ERROR, leading to the error I got.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is this happening? Note that also the RemoteAttestation program in SampleCode folder of the sgxsdk is giving me the same problem, while it used to work with the PSW I used to have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: I both tried to build the PSW from master branch and sgx_2.13_reproducible branch, getting the same problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:15:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1298514#M4751</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-14T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1299221#M4764</link>
      <description>&lt;P&gt;Hello Mperillo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Ensure you have installed all of the components:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;linux/installer/rpm/libsgx-urts&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;linux/installer/rpm/libsgx-enclave-common&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;linux/installer/rpm/libsgx-uae-service&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;linux/installer/rpm/libsgx-epid&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;linux/installer/rpm/libsgx-launch&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;linux/installer/rpm/libsgx-quote-ex&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;linux/installer/rpm/sgx-aesm-service&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Then &lt;B&gt;start &lt;/B&gt;the &lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;aesmd&lt;/SPAN&gt; service:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;$ sudo service aesmd start&lt;/SPAN&gt;&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;BR /&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:49:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1299221#M4764</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-16T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1299930#M4777</link>
      <description>&lt;P&gt;Hi Jesus G.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything is installed and I started the aesmd service but the output doesn't change.&lt;/P&gt;
&lt;P&gt;This is what the RemoteAttestation sample app prints for both ECDSA and EPID algorithms:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Call sgx_create_enclave success.&lt;BR /&gt;Call enclave_init_ra success.&lt;BR /&gt;Error, call sgx_ra_get_msg1_ex fail [main].&lt;BR /&gt;Call enclave_ra_close success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's something wrong&amp;nbsp; with the locally compiled PSW, as this was working with the prebuilt version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 07:53:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1299930#M4777</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-20T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300080#M4781</link>
      <description>&lt;P&gt;Hello Mperillo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Try this so we can see what's going on with your aesm:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;;"&gt;Build and install debug version aesm_service to capture a debug log.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.9px; font-family: courier;"&gt;make clean;make deb_psw_pkg DEBUG=1&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; font-family: courier;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;;"&gt;to build debug packages.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;;"&gt;Remove release aesm_service packages and install debug aesm_service packages.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;;"&gt;Then the debug log can be seen at&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.9px; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace;"&gt;/var/opt/aesmd/data/internal_log.txt&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;;"&gt;&amp;nbsp;using root.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jul 2021 19:46:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300080#M4781</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-20T19:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300601#M4786</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attach you the internal_log file with the result of one execution of RemoteAttestation example. Before doing it I made a full reinstall of everything, now only ECDSA attestation is failing, while the EPID one is completing with success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you see anything useful from the log file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 13:50:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300601#M4786</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-22T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300687#M4787</link>
      <description>&lt;P&gt;Hello Mperillo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In order to perform &lt;A href="https://software.intel.com/content/www/us/en/develop/articles/quote-verification-attestation-with-intel-sgx-dcap.html" rel="noopener noreferrer" target="_blank"&gt;ECDSA attestation&lt;/A&gt;, your platform must &lt;A href="https://www.intel.com/content/www/us/en/support/articles/000057420/software/intel-security-products.html" rel="noopener noreferrer" target="_blank"&gt;support Flexible Launch Control&lt;/A&gt; and you must &lt;A href="https://github.com/intel/SGXDataCenterAttestationPrimitives/" rel="noopener noreferrer" target="_blank"&gt;install the Intel&amp;nbsp;&amp;nbsp;SGX Driver for DCAP&lt;/A&gt;, instead of the regular SGX OOT driver.&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;BR /&gt;</description>
      <pubDate>Thu, 22 Jul 2021 19:26:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300687#M4787</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-22T19:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300822#M4788</link>
      <description>&lt;P&gt;Hi Jesus G.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the plaform support Flexible Launch Control and the SGX Driver for DCAP is installed. I also tried to reinstall it building from scratch but nothing changes.&lt;/P&gt;
&lt;P&gt;This is also confirmed by the fact that with the prebuilt installation of SGX driver, PSW and SDK the RemoteAttestation was working also with the ECDSA attestation. Further, the attestation code I was writing for my project does not have problems with msg1, but still fails on msg2. And I still can't debug inside sgx_ra_proc_msg2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 09:09:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300822#M4788</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-23T09:09:32Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300903#M4789</link>
      <description>&lt;P&gt;Hello Massimo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since we are now debugging ECDSA/DCAP, that log is not helpful. Please provide the error codes from the &lt;A href="https://github.com/intel/SGXDataCenterAttestationPrimitives/tree/master/SampleCode/" rel="noopener noreferrer" target="_blank"&gt;DCAP QuoteGeneration/QuoteVerification samples&lt;/A&gt; to start to figure that out.&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;BR /&gt;</description>
      <pubDate>Fri, 23 Jul 2021 16:38:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300903#M4789</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-23T16:38:31Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300907#M4790</link>
      <description>&lt;P&gt;Hello Massimo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ECDSA attestation does not work with the RemoteAttestation sample because the sample uses IAS for attestation, and IAS can verify only EPID quotes. To verify ECDSA quotes, you have to use the  PCS/PCCS/DCAP stack. Here are some resources to help you:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.portal.trustedservices.intel.com/" rel="noopener noreferrer" target="_blank"&gt;Intel® Trusted Services API Management Developer Portal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/intel/SGXDataCenterAttestationPrimitives" rel="noopener noreferrer" target="_blank"&gt;https://github.com/intel/SGXDataCenterAttestationPrimitives&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://01.org/intel-softwareguard-extensions/downloads/intel-sgx-dcap-1.11-release" rel="noopener noreferrer" target="_blank"&gt;Intel SGX DCAP 1.11 Release | 01.org&lt;/A&gt;&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;BR /&gt;</description>
      <pubDate>Fri, 23 Jul 2021 16:54:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1300907#M4790</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-23T16:54:10Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1301672#M4795</link>
      <description>&lt;P&gt;Hello Massimo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you still need help with this issue?&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;BR /&gt;</description>
      <pubDate>Tue, 27 Jul 2021 21:09:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1301672#M4795</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-27T21:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1301799#M4796</link>
      <description>&lt;P&gt;Hello Jesus G.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still did not fix anything and still cannot debug. Let's focus on debugging, why am I not able to debug sgx_ra_proc_msg2 by stepping into it? I installed everything as you said but it doesn' work. If there is some special thing to do give me a step by step guide, please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Further question, will SGX be supported in the future? I've seen that it's not supported by 11th gen CPUs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 07:26:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1301799#M4796</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-28T07:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302014#M4798</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;Hello Massimo,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Below are instructions for building and installing the debug versions of the SGX SDK and PSW.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;Install &lt;/STRONG&gt;&lt;A href="https://github.com/intel/linux-sgx#prerequisites" target="_blank" rel="noopener noreferrer"&gt;Prerequisites&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt; then &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;download &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;the Intel SGX for Linux source code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ git clone &lt;/SPAN&gt;&lt;A style="font-family: courier;" href="https://github.com/intel/linux-sgx.git" target="_blank" rel="noopener noreferrer"&gt;https://github.com/intel/linux-sgx.git &lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ cd linux-sgx &amp;amp;&amp;amp; make preparation&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG style="font-size: 10pt;"&gt;Build &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;the debug versions of the &lt;/SPAN&gt;&lt;A href="https://github.com/intel/linux-sgx#build-the-intelr-sgx-sdk-and-intelr-sgx-sdk-installer" target="_blank" rel="noopener noreferrer"&gt;SDK, SDK installer&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ make sdk DEBUG=1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ make sdk_install_pkg DEBUG=1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;A href="https://github.com/intel/linux-sgx#install-the-intelr-sgx-sdk-1" target="_blank" rel="noopener noreferrer"&gt;Install the SGX SDK&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ cd linux/installer/bin&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ ./sgx_linux_x64_sdk_${version}.bin&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ source ${sgx-sdk-install-path}/environment&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG style="font-size: 10pt;"&gt;Build &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;the debug versions of the &lt;/SPAN&gt;&lt;A href="https://github.com/intel/linux-sgx#build-the-intelr-sgx-psw-and-intelr-sgx-psw-installer" target="_blank" rel="noopener noreferrer"&gt;PSW and PSW installers&lt;/A&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ make psw DEBUG=1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ make deb_psw_pkg DEBUG=1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG style="font-size: 10pt;"&gt;Install &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;the PSW components:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Intel Clear';"&gt;The generated Intel(R) SGX PSW installers are located under&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-size: 10.2pt; font-family: 'Courier New';"&gt;linux/installer/rpm/libsgx-urts&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-size: 10.2pt; font-family: 'Courier New';"&gt;linux/installer/rpm/libsgx-enclave-common&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-size: 10.2pt; font-family: 'Courier New';"&gt;linux/installer/rpm/libsgx-uae-service&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-size: 10.2pt; font-family: 'Courier New';"&gt;linux/installer/rpm/libsgx-epid&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-size: 10.2pt; font-family: 'Courier New';"&gt;linux/installer/rpm/libsgx-launch&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-size: 10.2pt; font-family: 'Courier New';"&gt;linux/installer/rpm/libsgx-quote-ex&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-size: 10.2pt; font-family: 'Courier New';"&gt;linux/installer/rpm/sgx-aesm-service&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Go into each PSW installer directory and &lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: courier;"&gt;$ sudo apt install ./*.deb&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 10.2pt; color: #24292e;"&gt;&lt;FONT size="4"&gt;&lt;SPAN style="font-family: 'Intel Clear';"&gt;Now you should be able to step into &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;sgx_ra_proc_msg2,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Intel Clear';"&gt; which is implemented in the SGX SDK in &lt;/SPAN&gt;&lt;A href="https://github.com/intel/linux-sgx/blob/master/sdk/ukey_exchange/ukey_exchange.cpp" target="_blank"&gt;&lt;SPAN style="font-family: 'Intel Clear';"&gt;ukey_exchange.cpp&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-family: 'Intel Clear';"&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 10.2pt; color: #24292e;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Sincerely,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Jesus G.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Intel Customer Support&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 23:47:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302014#M4798</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-28T23:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302152#M4799</link>
      <description>&lt;P&gt;Hi Jesus G.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you, I can finally debug inside &lt;FONT size="4" class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors" style="font-family: 'Courier New';"&gt;sgx_ra_proc_msg2&lt;/SPAN&gt;&lt;/FONT&gt; and try to understand where's the error. The error message is generated in an enclave call, precisely line 422 of function sgx_ra_proc_msg2_trusted. There is an sgx_ecall there that I cannot step into.&lt;/P&gt;
&lt;P&gt;How can I debug inside the enclave?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 08:37:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302152#M4799</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-29T08:37:14Z</dc:date>
    </item>
    <item>
      <title>Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302319#M4801</link>
      <description>&lt;P&gt;Hello Massimo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/intel/linux-sgx/blob/5178e0c26b017a05ec41f6c8edf3cbe30736e2ee/sdk/tkey_exchange/tkey_exchange.cpp#L422" rel="noopener noreferrer" target="_blank"&gt;Line 422&lt;/A&gt; of tkey_exchange.cpp does not correspond to sgx_ra_proc_msg2_trusted. Line 422 is in sgx_ra_get_msg3_trusted. Which ecall are you trying to step into?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Intel Clear&amp;quot;;"&gt;Either way, all of the functions in tkey_exchange.cpp are ecalls themselves so they are meant to be included in enclaves (they are trusted functions).&amp;nbsp;If you look at the &lt;/SPAN&gt;&lt;A href="https://github.com/intel/linux-sgx/blob/master/SampleCode/RemoteAttestation/isv_enclave/isv_enclave.edl" rel="noopener noreferrer" target="_blank" style="font-family: &amp;quot;Intel Clear&amp;quot;;"&gt;isv_enclave.edl&lt;/A&gt;&lt;SPAN style="font-family: &amp;quot;Intel Clear&amp;quot;;"&gt; in the RemoteAttestation sample, you will find &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;from "sgx_tkey_exchange.edl" import *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the three ecalls declared in &lt;A href="https://github.com/intel/linux-sgx/blob/master/common/inc/sgx_tkey_exchange.edl" rel="noopener noreferrer" target="_blank"&gt;sgx_tkey_exchange.edl&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;public sgx_status_t sgx_ra_get_ga&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;public sgx_status_t sgx_ra_proc_msg2_trusted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;public sgx_status_t sgx_ra_get_msg3_trusted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you compile the SDK with debug symbols and compiled the RemoteAttestation sample in debug mode, then you should be able to step into these functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In directory SampleCode/RemoteAttestation, run&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier;"&gt;$ &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: courier;"&gt;readelf -Ws isv_enclave.so | grep sgx_ra&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Intel Clear&amp;quot;;"&gt;You will see the symbols for functions &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;sgx_ra_proc_msg2_trusted&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Intel Clear&amp;quot;;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;sgx_ra_get_msg3_trusted&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;quot;Intel Clear&amp;quot;;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, enclaves cannot call ecalls in other enclaves. Only untrusted applications can call ecalls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;BR /&gt;</description>
      <pubDate>Thu, 29 Jul 2021 20:48:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302319#M4801</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-29T20:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302459#M4802</link>
      <description>&lt;P&gt;Hello Jesus G.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not yet inside the sgx_ra_proc_msg2_trusted functions, I am trying to step into it but am not able.&lt;/P&gt;
&lt;P&gt;The program I am debugging is my code, and it is compiled in debug mode as the entire SDK following your instructions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can break outside sgx_ra_proc_msg2 function (the untrusted one from ukey_exchange.cpp), and step into it. This leads me to the ecall that I cannot step into (from what I see that ecall should be sgx_ra_proc_msg2_trusted). Please find attached a screen of my debugger output. The last call (sgx_ecall) is the one I cannot step into. I also tried to setup a breakpoint inside the tke_exchange.cpp file but sgx-gdb gives me the error 'No source file named tkey_exchange.cpp' and I am not able to break into that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-07-30 at 09.43.10.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/18452i9C35BC84F0F54493/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot 2021-07-30 at 09.43.10.png" alt="Screenshot 2021-07-30 at 09.43.10.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 08:15:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302459#M4802</guid>
      <dc:creator>mperillo</dc:creator>
      <dc:date>2021-07-30T08:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attestation error SGX_ERROR_MAC_MISMATCH</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302601#M4803</link>
      <description>&lt;P&gt;Hello Massimo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to break at the sgx_ecall within the proxy file enclave_u.c, and step into it as shown in the attached screenshot. I am using &lt;A href="https://github.com/intel/sgx-ra-sample" target="_blank" rel="noopener noreferrer"&gt;sgx-ra-sample&lt;/A&gt;. Before running your code, did you source the correct environment file for the debug version of the SDK?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It all works for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 19:54:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Attestation-error-SGX-ERROR-MAC-MISMATCH/m-p/1302601#M4803</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-07-30T19:54:24Z</dc:date>
    </item>
  </channel>
</rss>

