<?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: Auth desfire ev3 AES key return different RandA' in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1859146#M22502</link>
    <description>&lt;P&gt;Hello sir,&lt;/P&gt;
&lt;P&gt;As I mentioned, the implementation of the encryption isn't correct. Our &lt;A href="https://www.nxp.com/design/design-center/development-boards-and-designs/nfc-reader-library-software-support-for-nfc-frontend-solutions:NFC-READER-LIBRARY" target="_self"&gt;NFC Reader Library&lt;/A&gt; has great examples explaining these procedures with our API. I highly recommend using one of our readers to perform a correct authentication.&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 22:35:20 GMT</pubDate>
    <dc:creator>Fabian_R</dc:creator>
    <dc:date>2024-05-03T22:35:20Z</dc:date>
    <item>
      <title>Auth desfire ev3 AES key return different RandA'</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1856614#M22430</link>
      <description>&lt;P&gt;I'm trying to authenticate desfire ev3 with default AES (16 bytes 0) via apdu.&lt;/P&gt;&lt;P&gt;However I'm getting non identical RandA' after sending RandA || RandB'. You can check to see if the problem lies in my encryption. I clipped my encryption code in the photo attached.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;I use key and iv of zeros for encrypt and decrypt. When auth with des/2ktdes, I follow this following step.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Send -&amp;gt; [0x0A, 0x00]&lt;/DIV&gt;&lt;DIV&gt;Respond -&amp;gt; [0xAF, RandB_Encrypted]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then I decrypt RandB_Encrypted -&amp;gt; RandB&lt;/DIV&gt;&lt;DIV&gt;Rotate left by 1 byte -&amp;gt; RandB_rotate&lt;/DIV&gt;&lt;DIV&gt;Generate RandA_Encrypted&lt;/DIV&gt;&lt;DIV&gt;Decrypt&amp;nbsp;RandA_Encrypted -&amp;gt;&amp;nbsp;RandA&lt;/DIV&gt;&lt;DIV&gt;XOR RandA, RandB_rotate -&amp;gt; RandAB&lt;/DIV&gt;&lt;DIV&gt;Encrypt XOR -&amp;gt; RandAB_Encrypted&lt;/DIV&gt;&lt;DIV&gt;Concat RandA + RandAB_Encrypted -&amp;gt; dataToSend&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Send&amp;nbsp; -&amp;gt; [0xAF, dataToSend]&lt;/DIV&gt;&lt;DIV&gt;Respond -&amp;gt; [0x00, RandA'_Encrypted]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then I decrypt RandA'_Encrypted -&amp;gt; newRandA&lt;/DIV&gt;&lt;DIV&gt;Rotate right by 1 byte -&amp;gt; newRandA_rotate&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;compare&amp;nbsp;newRandA_rotate and RandA_Encrypted&lt;/DIV&gt;&lt;DIV&gt;success&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However after creating application with keytype AES. I couldn't finish the authentication process. I follow the exact same steps as above, and I'm getting different RandA' at authentication part 2. Is the step for auth with AES different from des/2ktdes?&lt;/DIV&gt;&lt;DIV&gt;Command used for auth AES -&amp;gt;&amp;nbsp;[0xAA, 0x00]&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 09:29:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1856614#M22430</guid>
      <dc:creator>amrin-hexondata</dc:creator>
      <dc:date>2024-05-02T09:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Auth desfire ev3 AES key return different RandA'</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1858666#M22484</link>
      <description>&lt;P lang="es-MX"&gt;Hello sir,&lt;/P&gt;
&lt;P lang="es-MX"&gt;My apologies, there are some differences between the procedure and the one explained in our files. Unfortunately, these are secured files and, cannot be disclosed openly. It is required to sign an NDA and, request the files by yourself following this &lt;A href="https://www.nxp.com/docs/en/user-guide/nxp-secure-files-user-guide.pdf" target="_blank"&gt;User Manual&lt;/A&gt; and &lt;A href="https://www.nxp.com/support/support/non-disclosure-agreement-faqs:NDA-FAQS" target="_blank"&gt;FAQ&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 23:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1858666#M22484</guid>
      <dc:creator>Fabian_R</dc:creator>
      <dc:date>2024-05-02T23:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Auth desfire ev3 AES key return different RandA'</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1858699#M22485</link>
      <description>Hi Fabian, thank you for the reply. I do have access to the secured files. I tried to follow the steps in the document, but im still not able to auth using aes.</description>
      <pubDate>Fri, 03 May 2024 01:20:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1858699#M22485</guid>
      <dc:creator>amrin-hexondata</dc:creator>
      <dc:date>2024-05-03T01:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Auth desfire ev3 AES key return different RandA'</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1859146#M22502</link>
      <description>&lt;P&gt;Hello sir,&lt;/P&gt;
&lt;P&gt;As I mentioned, the implementation of the encryption isn't correct. Our &lt;A href="https://www.nxp.com/design/design-center/development-boards-and-designs/nfc-reader-library-software-support-for-nfc-frontend-solutions:NFC-READER-LIBRARY" target="_self"&gt;NFC Reader Library&lt;/A&gt; has great examples explaining these procedures with our API. I highly recommend using one of our readers to perform a correct authentication.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 22:35:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Auth-desfire-ev3-AES-key-return-different-RandA/m-p/1859146#M22502</guid>
      <dc:creator>Fabian_R</dc:creator>
      <dc:date>2024-05-03T22:35:20Z</dc:date>
    </item>
  </channel>
</rss>

