<?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: 424 DNA AuthenticateEV2First RndA not matching in NFC</title>
    <link>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1735370#M10834</link>
    <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;It's been a minute, but I think I remember. I was using NodeJS for this, and subsequently the built-in crypto package. Throughout the whole process I was using the same "Cipher" instance for my decrypting, which is wrong. I found out I was supposed to create a new Cipher instance per decryption I believe. I'm not sure if this helps, but that's what I can remember.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Oct 2023 14:55:34 GMT</pubDate>
    <dc:creator>jbean</dc:creator>
    <dc:date>2023-10-08T14:55:34Z</dc:date>
    <item>
      <title>424 DNA AuthenticateEV2First RndA not matching</title>
      <link>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1490585#M9560</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Please bear with me, as I am very early into this wild journey of learning how to program these NFC tags.&lt;/P&gt;&lt;P&gt;Just recently, I purchased some NTAG 424 DNA NFC tags to play around with, and I've run into a problem that I just cannot seem to figure out. For reference, no keys have been changed since the purchase.&lt;/P&gt;&lt;P&gt;I'm following the &lt;A href="https://www.nxp.com/docs/en/application-note/AN12196.pdf#page=29" target="_blank" rel="noopener"&gt;authentication example on page 29&lt;/A&gt; of the application note. While attempting to authenticate through the &lt;FONT color="#333333"&gt;AuthenticateEV2First&lt;/FONT&gt; command, everything goes smoothly, until I get to step 24, where I need to compare&amp;nbsp;&lt;EM&gt;my&lt;/EM&gt; RndA with the RndA my tag sends back.&lt;/P&gt;&lt;P&gt;My output (after selecting application):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Tag found
&amp;gt;&amp;gt; response from part one: b0766120811175980f991df421d6996a91af

&amp;gt;&amp;gt; encoded random b: b0766120811175980f991df421d6996a
&amp;gt;&amp;gt; decoded random b: 674279214acdd6a200bf43834652a94c
&amp;gt;&amp;gt; random b rotated left: 4279214acdd6a200bf43834652a94c67

&amp;gt;&amp;gt; generated random a: 5fda3402593699c0317a3b0b564ecd2f
&amp;gt;&amp;gt; randa with randb rotated: 5fda3402593699c0317a3b0b564ecd2f4279214acdd6a200bf43834652a94c67
&amp;gt;&amp;gt; encrypted randa with randb rotated: 80f36dc666c232ef92a34c6f3be69455caa42d42ac1a082a611589035eb17b26

&amp;gt;&amp;gt; part 2 command: 90af00002080f36dc666c232ef92a34c6f3be69455caa42d42ac1a082a611589035eb17b2600
&amp;gt;&amp;gt; part two command response: b780a3690c43a3d61e418713ecd248d3e46cf86a0c222cffe01271f3aac2684a9100
&amp;gt;&amp;gt; part two command response without response code: b780a3690c43a3d61e418713ecd248d3e46cf86a0c222cffe01271f3aac2684a
&amp;gt;&amp;gt; decrypted part two command response: c89c58aeac5522d827ec583ee326ff77985445ef000000000000000000000000

&amp;gt;&amp;gt; card rnda: efac5522d827ec583ee326ff77985445&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, my generated RndA (&lt;FONT color="#3366FF"&gt;5fda3402593699c0317a3b0b564ecd2f&lt;/FONT&gt;) and the RndA that the card sends back (&lt;FONT color="#3366FF"&gt;efac5522d827ec583ee326ff77985445&lt;/FONT&gt;) do not match. I have no idea why this might be happening. I thought maybe my encrypting/decrypting method might be flawed while figuring out RndB, but then I noticed that on &lt;A href="https://www.nxp.com/docs/en/data-sheet/NT4H2421Gx.pdf#page=48" target="_self"&gt;page 48 of the data sheet&lt;/A&gt;, if my RndB was wrong, my Part 2 response would indicate that with response code 91AE, but my Part 2 response code is fine (9100), so my keys and everything appear to be fine.&lt;/P&gt;&lt;P&gt;Any help on this would be incredibly appreciated!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 21:41:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1490585#M9560</guid>
      <dc:creator>jbean</dc:creator>
      <dc:date>2022-07-16T21:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: 424 DNA AuthenticateEV2First RndA not matching</title>
      <link>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1735367#M10833</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203771"&gt;@jbean&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the same issue. Did you find any solution?&lt;/P&gt;&lt;P&gt;Best Regards, Shaghayegh.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 13:25:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1735367#M10833</guid>
      <dc:creator>shaghayeghnz</dc:creator>
      <dc:date>2023-10-08T13:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: 424 DNA AuthenticateEV2First RndA not matching</title>
      <link>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1735370#M10834</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;It's been a minute, but I think I remember. I was using NodeJS for this, and subsequently the built-in crypto package. Throughout the whole process I was using the same "Cipher" instance for my decrypting, which is wrong. I found out I was supposed to create a new Cipher instance per decryption I believe. I'm not sure if this helps, but that's what I can remember.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 14:55:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1735370#M10834</guid>
      <dc:creator>jbean</dc:creator>
      <dc:date>2023-10-08T14:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: 424 DNA AuthenticateEV2First RndA not matching</title>
      <link>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1735537#M10836</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203771"&gt;@jbean&lt;/a&gt;, for your response.&lt;/P&gt;&lt;P&gt;Could you clarify, 'Throughout the whole process, I was using the same "Cipher" instance for my decryption, which is wrong. I found out that I was supposed to create a new Cipher instance per decryption.'&lt;/P&gt;&lt;P&gt;Which ciphertext do you mean?&lt;/P&gt;&lt;P&gt;BR, Shaghayegh.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 06:47:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/1735537#M10836</guid>
      <dc:creator>shaghayeghnz</dc:creator>
      <dc:date>2023-10-09T06:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: 424 DNA AuthenticateEV2First RndA not matching</title>
      <link>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/2061191#M12862</link>
      <description>Same problem here, did any of you find a solution?</description>
      <pubDate>Thu, 13 Mar 2025 10:00:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/424-DNA-AuthenticateEV2First-RndA-not-matching/m-p/2061191#M12862</guid>
      <dc:creator>TobiasWeis</dc:creator>
      <dc:date>2025-03-13T10:00:20Z</dc:date>
    </item>
  </channel>
</rss>

