<?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 macro redefined when se05x_apis work with openssl in Secure Authentication</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1602697#M1170</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to bring up the NXP SE050E on my embedded system.&lt;/P&gt;&lt;P&gt;According to the introduction here:&amp;nbsp;&lt;A href="https://github.com/NXP/plug-and-trust," target="_blank" rel="noopener"&gt;https://github.com/NXP/plug-and-trust,&lt;/A&gt;&amp;nbsp;I've decided to work with OpenSSL.&lt;/P&gt;&lt;P&gt;In the file&amp;nbsp;fsl_sss_ftr.h I set the following definitions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#define SSS_HAVE_SE05X_VER_03_XX 1
#define SSS_HAVE_APPLET_SE050_E 1
#define SSS_HAVE_HOSTCRYPTO_MBEDTLS 0
#define SSS_HAVE_HOSTCRYPTO_OPENSSL 1
#define SSS_HAVE_HOSTCRYPTO_USER 0
#define SSS_HAVE_HOSTCRYPTO_NONE 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;And my compilation includes the following flags:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;-D_ANDROID_ -D__LINUX__ -DT1oI2C -DSMCOM_T1oI2C -DSSS_USE_FTR_FILE -DT1oI2C_UM11225&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;But unfortunately, I get a lot of previous definition warnings between fsl_sss_openssl_apis.h and fsl_sss_se05x_apis.h:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;/sss/inc/fsl_sss_se05x_apis.h:642:16: warning: 'sss_session_create' macro redefined [-Wmacro-redefined]&lt;BR /&gt;# define sss_session_create(session,subsystem,application_id,connection_type,connectionData) \&lt;BR /&gt;^&lt;BR /&gt;/sss/inc/fsl_sss_openssl_apis.h:549:16: note: previous definition is here&lt;BR /&gt;# define sss_session_create(session,subsystem,application_id,connection_type,connectionData) \&lt;BR /&gt;^&lt;BR /&gt;In file included from /se05x/seTool/seTool.c:8:&lt;BR /&gt;/sss/inc/fsl_sss_se05x_apis.h:644:16: warning: 'sss_session_open' macro redefined [-Wmacro-redefined]&lt;BR /&gt;# define sss_session_open(session,subsystem,application_id,connection_type,connectionData) \&lt;BR /&gt;^&lt;BR /&gt;/sss/inc/fsl_sss_openssl_apis.h:551:16: note: previous definition is here&lt;BR /&gt;# define sss_session_open(session,subsystem,application_id,connection_type,connectionData) \&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;So I would like to understand what I'm doing wrong.&lt;/P&gt;&lt;P&gt;I do want that all the secured actions will be done in the NXP hardware but cannot compile it without Openssl or MbTLS.&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 21 Feb 2023 08:42:36 GMT</pubDate>
    <dc:creator>nehadad</dc:creator>
    <dc:date>2023-02-21T08:42:36Z</dc:date>
    <item>
      <title>macro redefined when se05x_apis work with openssl</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1602697#M1170</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to bring up the NXP SE050E on my embedded system.&lt;/P&gt;&lt;P&gt;According to the introduction here:&amp;nbsp;&lt;A href="https://github.com/NXP/plug-and-trust," target="_blank" rel="noopener"&gt;https://github.com/NXP/plug-and-trust,&lt;/A&gt;&amp;nbsp;I've decided to work with OpenSSL.&lt;/P&gt;&lt;P&gt;In the file&amp;nbsp;fsl_sss_ftr.h I set the following definitions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#define SSS_HAVE_SE05X_VER_03_XX 1
#define SSS_HAVE_APPLET_SE050_E 1
#define SSS_HAVE_HOSTCRYPTO_MBEDTLS 0
#define SSS_HAVE_HOSTCRYPTO_OPENSSL 1
#define SSS_HAVE_HOSTCRYPTO_USER 0
#define SSS_HAVE_HOSTCRYPTO_NONE 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;And my compilation includes the following flags:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;-D_ANDROID_ -D__LINUX__ -DT1oI2C -DSMCOM_T1oI2C -DSSS_USE_FTR_FILE -DT1oI2C_UM11225&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;But unfortunately, I get a lot of previous definition warnings between fsl_sss_openssl_apis.h and fsl_sss_se05x_apis.h:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;/sss/inc/fsl_sss_se05x_apis.h:642:16: warning: 'sss_session_create' macro redefined [-Wmacro-redefined]&lt;BR /&gt;# define sss_session_create(session,subsystem,application_id,connection_type,connectionData) \&lt;BR /&gt;^&lt;BR /&gt;/sss/inc/fsl_sss_openssl_apis.h:549:16: note: previous definition is here&lt;BR /&gt;# define sss_session_create(session,subsystem,application_id,connection_type,connectionData) \&lt;BR /&gt;^&lt;BR /&gt;In file included from /se05x/seTool/seTool.c:8:&lt;BR /&gt;/sss/inc/fsl_sss_se05x_apis.h:644:16: warning: 'sss_session_open' macro redefined [-Wmacro-redefined]&lt;BR /&gt;# define sss_session_open(session,subsystem,application_id,connection_type,connectionData) \&lt;BR /&gt;^&lt;BR /&gt;/sss/inc/fsl_sss_openssl_apis.h:551:16: note: previous definition is here&lt;BR /&gt;# define sss_session_open(session,subsystem,application_id,connection_type,connectionData) \&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;So I would like to understand what I'm doing wrong.&lt;/P&gt;&lt;P&gt;I do want that all the secured actions will be done in the NXP hardware but cannot compile it without Openssl or MbTLS.&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 08:42:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1602697#M1170</guid>
      <dc:creator>nehadad</dc:creator>
      <dc:date>2023-02-21T08:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: macro redefined when se05x_apis work with openssl</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1602767#M1172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212313"&gt;@nehadad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please tell me what your platform is? Actually the Github just contains the mini package of the MW which is&amp;nbsp;&lt;SPAN class="TextRun  BCX0 SCXP152115052" data-usefontface="false" data-contrast="none"&gt;&lt;SPAN class="SpellingError  BCX0 SCXP152115052"&gt;shrinked&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun  BCX0 SCXP152115052" data-usefontface="false" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun  BCX0 SCXP152115052"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to be useable on one platform only:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="LineBreakBlob BlobObject  BCX0 SCXP152115052"&gt;&lt;SPAN class="BCX0 SCXP152115052"&gt;​ Linux, so o&lt;SPAN class="TextRun  BCX0 SCXP97735451" data-usefontface="false" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun  BCX0 SCXP97735451"&gt;nly necessary files for compilation of Plug &amp;amp; Trust on Linux are&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="TextRun  BCX0 SCXP97735451" data-usefontface="false" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun  BCX0 SCXP97735451"&gt;included in this package. I noticed you define _ANDROID_ in the flags, is your application an Android App? If so , maybe you have to use the full version, you may refer to&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/Download?colCode=SE05x-PLUG-TRUST-MW&amp;amp;appType=license" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=SE05x-PLUG-TRUST-MW&amp;amp;appType=license&lt;/A&gt;&amp;nbsp;for more details.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR class="BCX0 SCXP152115052" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="LineBreakBlob BlobObject  BCX0 SCXP152115052"&gt;&lt;SPAN class="BCX0 SCXP152115052"&gt;&lt;SPAN class="TextRun  BCX0 SCXP97735451" data-usefontface="false" data-contrast="none"&gt;&lt;SPAN class="NormalTextRun  BCX0 SCXP97735451"&gt;Hope that makes sense,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 09:42:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1602767#M1172</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-02-21T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: macro redefined when se05x_apis work with openssl</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1602807#M1173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used the GitHub since the Linux source code is the same as the Android code.&lt;/P&gt;&lt;P&gt;All I needed is to create the Android.mk compiler.&lt;/P&gt;&lt;P&gt;According to the warnings, I think my problem is because I set&amp;nbsp;&lt;EM&gt;SSS_HAVE_APPLET_SE050_E&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;SSS_HAVE_HOSTCRYPTO_OPENSSL&lt;/EM&gt; in the&amp;nbsp;&lt;SPAN&gt;fsl_sss_ftr.h file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I don't understand why it conflicts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 10:11:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1602807#M1173</guid>
      <dc:creator>nehadad</dc:creator>
      <dc:date>2023-02-21T10:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: macro redefined when se05x_apis work with openssl</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1603606#M1175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212313"&gt;@nehadad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no conflicts between &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;SSS_HAVE_APPLET_SE050_E&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;SSS_HAVE_HOSTCRYPTO_OPENSSL&lt;/EM&gt;, the Github version just support Linux platform and out of box platform is Raspberry Pi, if you want to built it for Android, please use the full version as mentioned above. You may refer to "simw-top/doc/dev-platforms/platform_android.html" for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes sense,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 09:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1603606#M1175</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-02-22T09:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: macro redefined when se05x_apis work with openssl</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1604387#M1179</link>
      <description>&lt;P&gt;Thanks again for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried it but failed in the apply patch&amp;nbsp;&lt;SPAN&gt;keymaster_sepolicy.patch since my ASOP was different than the example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I didn't have the "Keymaster HAL" in my AOSP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, I can compile the simw-top by the Android.mk file I've created from the CMake list file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I fail in trying to generate the certificate but this is for a different post &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;App :INFO :PlugAndTrust_v04.03.00_20221122&lt;BR /&gt;App :INFO :Running /dev/generate_certificate&lt;BR /&gt;App :INFO :Using PortName='/dev/i2c-0:0x48' (CLI)&lt;BR /&gt;sss :INFO :atr (Len=35)&lt;BR /&gt;01 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 00&lt;BR /&gt;01 00 00 00 00 64 13 88 0A 00 65 53 45 30 35 31&lt;BR /&gt;00 00 00&lt;BR /&gt;sss :INFO :Newer version of Applet Found&lt;BR /&gt;sss :INFO :Compiled for 0x30100. Got newer 0x70200&lt;BR /&gt;sss :WARN :Communication channel is Plain.&lt;BR /&gt;sss :WARN :!!!Not recommended for production use.!!!&lt;BR /&gt;sss :WARN :nxEnsure:'connectionData' failed. At Line:367 Function:sss_se05x_session_open&lt;BR /&gt;App :ERROR:Failed to open mbedtls Session&lt;BR /&gt;App :INFO :sss_key_store_get_key status 3c3c0000&lt;BR /&gt;App :INFO :ex_sss Finished&lt;BR /&gt;App :ERROR:ex_sss_entry Failed&lt;BR /&gt;App :ERROR:!ERROR! ret != 0.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 23 Feb 2023 08:10:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1604387#M1179</guid>
      <dc:creator>nehadad</dc:creator>
      <dc:date>2023-02-23T08:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: macro redefined when se05x_apis work with openssl</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1604992#M1181</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212313"&gt;@nehadad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good to know, and w&lt;SPAN&gt;e use OpenSSL in this example to create the certificate, so maybe this is the cause.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 05:51:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/macro-redefined-when-se05x-apis-work-with-openssl/m-p/1604992#M1181</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-02-24T05:51:22Z</dc:date>
    </item>
  </channel>
</rss>

