<?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>Secure Authentication中的主题 SE050 VerifySessionUserID APDU returns SW 6B00 error</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1293621#M515</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to open a session with a previously added user id on SE050 (&lt;SPAN&gt;OM-SE050ARD board), but when it comes to the VerifySessionUserID APDU, it returns a 6B00 error: Wrong parameter(s) P1-P2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The APDU header is constructed according to AN12413 section 4.5.2.1. I've also double checked the values in the MW source code (se05x_enums.h) and they seem to be identical.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CLA: 0x80, INS: MGMT (0x04), P1: P1_DEFAULT (0x00), P2: P2_SESSION_USERID (0x2C)&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;The transaction:&lt;/P&gt;&lt;P&gt;--- Select applet&lt;BR /&gt;C-APDU: 00 a4 04 00 10 a0 00 00 03 96 54 53 00 00 00 01 03 00 00 00 00 00&lt;BR /&gt;R-APDU: 03 01 00 6f ff 01 0b 90 00&lt;BR /&gt;--- ret: 0&lt;/P&gt;&lt;P&gt;--- Get version&lt;BR /&gt;C-APDU: 80 04 00 20 0b&lt;BR /&gt;R-APDU: 41 82 00 07 03 01 00 6f ff 01 0b 90 00&lt;BR /&gt;--- Version: 3.1.0&lt;BR /&gt;--- ret: 0&lt;/P&gt;&lt;P&gt;--- Create session&lt;BR /&gt;C-APDU: 80 04 00 1b 06 41 04 00 00 00 15 0c&lt;BR /&gt;R-APDU: 41 82 00 08 01 d5 5f 77 5c 04 cf c4 90 00&lt;BR /&gt;--- session id: 01 d5 5f 77 5c 04 cf c4&lt;BR /&gt;--- ret: 0&lt;/P&gt;&lt;P&gt;--- Verify session user id&lt;BR /&gt;C-APDU: 80 04 00 2c 08 41 06 75 73 65 72 31 00&lt;BR /&gt;R-APDU: 6b 00&lt;BR /&gt;--- user id: user1&lt;BR /&gt;--- ret: -6&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 22:44:12 GMT</pubDate>
    <dc:creator>krisztian_stancz</dc:creator>
    <dc:date>2021-06-16T22:44:12Z</dc:date>
    <item>
      <title>SE050 VerifySessionUserID APDU returns SW 6B00 error</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1293621#M515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to open a session with a previously added user id on SE050 (&lt;SPAN&gt;OM-SE050ARD board), but when it comes to the VerifySessionUserID APDU, it returns a 6B00 error: Wrong parameter(s) P1-P2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The APDU header is constructed according to AN12413 section 4.5.2.1. I've also double checked the values in the MW source code (se05x_enums.h) and they seem to be identical.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CLA: 0x80, INS: MGMT (0x04), P1: P1_DEFAULT (0x00), P2: P2_SESSION_USERID (0x2C)&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;The transaction:&lt;/P&gt;&lt;P&gt;--- Select applet&lt;BR /&gt;C-APDU: 00 a4 04 00 10 a0 00 00 03 96 54 53 00 00 00 01 03 00 00 00 00 00&lt;BR /&gt;R-APDU: 03 01 00 6f ff 01 0b 90 00&lt;BR /&gt;--- ret: 0&lt;/P&gt;&lt;P&gt;--- Get version&lt;BR /&gt;C-APDU: 80 04 00 20 0b&lt;BR /&gt;R-APDU: 41 82 00 07 03 01 00 6f ff 01 0b 90 00&lt;BR /&gt;--- Version: 3.1.0&lt;BR /&gt;--- ret: 0&lt;/P&gt;&lt;P&gt;--- Create session&lt;BR /&gt;C-APDU: 80 04 00 1b 06 41 04 00 00 00 15 0c&lt;BR /&gt;R-APDU: 41 82 00 08 01 d5 5f 77 5c 04 cf c4 90 00&lt;BR /&gt;--- session id: 01 d5 5f 77 5c 04 cf c4&lt;BR /&gt;--- ret: 0&lt;/P&gt;&lt;P&gt;--- Verify session user id&lt;BR /&gt;C-APDU: 80 04 00 2c 08 41 06 75 73 65 72 31 00&lt;BR /&gt;R-APDU: 6b 00&lt;BR /&gt;--- user id: user1&lt;BR /&gt;--- ret: -6&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 22:44:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1293621#M515</guid>
      <dc:creator>krisztian_stancz</dc:creator>
      <dc:date>2021-06-16T22:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 VerifySessionUserID APDU returns SW 6B00 error</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1295211#M516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187696"&gt;@krisztian_stancz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to use a ProcessSessionCommand in which&amp;nbsp;the VerifySessionUserID command is wrapped , just&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;as shown in the section UserID session in the APDU spec .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="verifyuserid.png" style="width: 871px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147551i594A7F6C97636CC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="verifyuserid.png" alt="verifyuserid.png" /&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>Mon, 21 Jun 2021 06:56:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1295211#M516</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2021-06-21T06:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 VerifySessionUserID APDU returns SW 6B00 error</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1295702#M517</link>
      <description>&lt;P&gt;&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;Thank you, that indeed solved it!&lt;/P&gt;&lt;P&gt;Well, that figure (and the other two as well) is a bit confusing. Appart from the typo (the APDU name should be ProcessSessionCmd), why does it talk about the MiddleWare, when this is an APDU&amp;nbsp;specification?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, it contradicts to point 3.6.2 in the same document (page 21) which reads:&lt;/P&gt;&lt;P&gt;To open an (authenticated) applet session, a user must do the following:&lt;BR /&gt;1. Call CreateSession, passing an Authentication Object identifier as input and getting&amp;nbsp;an 8-byte unique session identifier as response. At this point the session is not yet&amp;nbsp;opened and commands should not be wrapped yet until authentication succeeded.&lt;BR /&gt;2. Depending on the type of Authentication Object, authentication needs to occur.&amp;nbsp;&lt;BR /&gt;3. Once successfully authenticated, the session is opened. Commands sent within a&amp;nbsp;session are wrapped in a ProcessSessionCmd APDU where the 1st argument is the&amp;nbsp;session identifier and the 2nd argument is the APDU to be handled.&lt;/P&gt;&lt;P&gt;In my reading this means that ProcessSessionCmd should be only used after a plain VerifySessionUserID was successful. But obvisouly that is not the case. Maybe this should be better clarified.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Krisztian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 01:29:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1295702#M517</guid>
      <dc:creator>krisztian_stancz</dc:creator>
      <dc:date>2021-06-22T01:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 VerifySessionUserID APDU returns SW 6B00 error</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1988890#M1745</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to re-open this thread...&lt;/P&gt;&lt;P&gt;the ProcessSessionCommand use as parameter the session ID and VerifysessionuserID APDU command.&lt;/P&gt;&lt;P&gt;The response to CreateSession APDU from the SE050 is 8B length array. I have noticed, that first byte is always "0x01". Is it okay?&lt;/P&gt;&lt;P&gt;The VerifySessionUserId command should be "plain", i.e.&amp;nbsp;0x84,0x04,0x00,0x2C, 0x09, 0x41,0x0C,'NEEDSCP'. Or this APDU should be encrypted and MACed?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;milanatik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 13:35:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-VerifySessionUserID-APDU-returns-SW-6B00-error/m-p/1988890#M1745</guid>
      <dc:creator>milanatik</dc:creator>
      <dc:date>2024-11-06T13:35:42Z</dc:date>
    </item>
  </channel>
</rss>

