<?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: VerifySessionUserID returns 6B00 in Secure Authentication</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1191593#M411</link>
    <description>&lt;P&gt;Thanks for the info, the userid session is working now&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 11:36:19 GMT</pubDate>
    <dc:creator>marcreiser</dc:creator>
    <dc:date>2020-12-01T11:36:19Z</dc:date>
    <item>
      <title>VerifySessionUserID returns 6B00</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1190219#M406</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;my setup: RPI4 + SE050ARD + I2C externally wired, most things I tried out worked fine, despite one:&lt;/P&gt;&lt;P&gt;I am trying to open a Session using a &lt;FONT face="andale mono,times"&gt;UserID&lt;/FONT&gt;, which I created using &lt;FONT face="andale mono,times"&gt;Se05x_API_WriteUserID. &lt;FONT face="arial,helvetica,sans-serif"&gt;As a starting point I am using &lt;/FONT&gt;&lt;/FONT&gt;demos/se05x/se05x_Minimal.c. Overall I use the following lines according to the documentation (see image):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;const uint8_t uid[] = {0x01, 0x02, 0x03, 0x04};
const uint32_t my_id = 0xEF000001;
uint8_t sess_id[8];
size_t sess_len = 8; 

sm_status = Se05x_API_CreateSession(&amp;amp;pSession-&amp;gt;s_ctx, my_id, sess_id, &amp;amp;sess_len);
cout &amp;lt;&amp;lt; "create session status: "&amp;lt;&amp;lt; std::hex &amp;lt;&amp;lt; sm_status &amp;lt;&amp;lt; endl;

sm_status = Se05x_API_VerifySessionUserID(&amp;amp;pSession-&amp;gt;s_ctx, uid, 4);
cout &amp;lt;&amp;lt; "verify session status: " &amp;lt;&amp;lt; std::hex &amp;lt;&amp;lt; sm_status &amp;lt;&amp;lt; endl;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this will output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;create session status: 9000
sss   :WARN :nxEnsure:'ret == SM_OK' failed. At Line:5621 Function:sss_se05x_TXn
verify session status: 6B00&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;means my session is created, but afterwards I get &lt;FONT face="andale mono,times"&gt;6B00&lt;/FONT&gt; which I can't find as error-code. Furthermore the documentation states that the &lt;FONT face="andale mono,times"&gt;sessionID&lt;/FONT&gt; shall be passed to &lt;FONT face="andale mono,times"&gt;VerifySessionUserID&lt;/FONT&gt;, but there is no parameter for it. Or should I somehow update &lt;FONT face="andale mono,times"&gt;pSession?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Is there somewhere a complete UserID-based session sample?&lt;/P&gt;&lt;P&gt;Can I actually use the se05x_Minimal-example for this using the included main() approach?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marcreiser_0-1606470012300.png" style="width: 413px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131209iB77111A5C01AB619/image-dimensions/413x412?v=v2" width="413" height="412" role="button" title="marcreiser_0-1606470012300.png" alt="marcreiser_0-1606470012300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;best wishes&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 09:54:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1190219#M406</guid>
      <dc:creator>marcreiser</dc:creator>
      <dc:date>2020-11-27T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: VerifySessionUserID returns 6B00</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1190715#M407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/180736"&gt;@marcreiser&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually there is a demo for this kind of application, it is based on SSS APIs. You may refer to&amp;nbsp;simw-top/doc/sss/doc/apis-sss_session.html#se050-session for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&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>Mon, 30 Nov 2020 07:32:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1190715#M407</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2020-11-30T07:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: VerifySessionUserID returns 6B00</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1190924#M408</link>
      <description>&lt;P&gt;Yes, this partly helps, will try the sss-example and report back.&lt;/P&gt;&lt;P&gt;But on the other side: Are the "&lt;FONT face="andale mono,times"&gt;Se05x_API_*" &lt;FONT face="arial,helvetica,sans-serif"&gt;calls not intended to work as described in their documentation, guess they are, could you shortly outline what to do to make this approach work? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 12:09:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1190924#M408</guid>
      <dc:creator>marcreiser</dc:creator>
      <dc:date>2020-11-30T12:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: VerifySessionUserID returns 6B00</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1191465#M410</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/180736"&gt;@marcreiser&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually sss APIs are based on&amp;nbsp;Se05x_API_xxx , but make the application easier to implement, for example, if you trace into sss_session_open(), you will finally reach at&amp;nbsp;se05x_CreateVerifyUserIDSession() which shows how to&amp;nbsp;make this approach work&lt;STRONG&gt;.&lt;/STRONG&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 09:17:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1191465#M410</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2020-12-01T09:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: VerifySessionUserID returns 6B00</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1191593#M411</link>
      <description>&lt;P&gt;Thanks for the info, the userid session is working now&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 11:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/VerifySessionUserID-returns-6B00/m-p/1191593#M411</guid>
      <dc:creator>marcreiser</dc:creator>
      <dc:date>2020-12-01T11:36:19Z</dc:date>
    </item>
  </channel>
</rss>

