<?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 NTAG 424 DNA – SDM CMAC Verification Fails with Custom Tag Data in NFC</title>
    <link>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDM-CMAC-Verification-Fails-with-Custom-Tag-Data/m-p/2196324#M13749</link>
    <description>&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;We are currently implementing and testing an 'attendance verification system' based on 'Java Spring', using 'NTAG 424 DNA with SDM (Secure Dynamic Messaging)'.&lt;/P&gt;&lt;P&gt;### Test Environment&lt;/P&gt;&lt;P&gt;* 'Hardware': Omnikey HID 5022CL&lt;BR /&gt;* 'Software Tools':&lt;BR /&gt;・GoToTags Desktop&lt;BR /&gt;・TagXplorer&lt;BR /&gt;* 'Test URL Format':&lt;BR /&gt;'&lt;A href="http://xxxxx.xxxxxx.com/user/nfcverify.do?uid=00000000000001&amp;amp;ctr=000000&amp;amp;c=0000000000000000" target="_blank"&gt;http://xxxxx.xxxxxx.com/user/nfcverify.do?uid=00000000000001&amp;amp;ctr=000000&amp;amp;c=0000000000000000&lt;/A&gt;'&lt;BR /&gt;* 'Offset Settings':&lt;BR /&gt;・UID Offset: '46'&lt;BR /&gt;・Read Counter Offset: '65'&lt;BR /&gt;・MAC Offset: '74'&lt;BR /&gt;・MAC Input Offset: '0'&lt;BR /&gt;* 'SDM Parameters in URL':&lt;BR /&gt;'uid', 'ctr', 'c'&lt;BR /&gt;* 'Keys Configured': Key 0 through Key 5 (all tested)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;### Test Summary &amp;amp; Issue&lt;/P&gt;&lt;P&gt;1. We used 'both GoToTags and TagXplorer'.&lt;BR /&gt;In TagXplorer, even with 'SDM Mirroring enabled', the Offset fields remain grayed out and uneditable.&lt;BR /&gt;Therefore, all tag configuration was completed via 'GoToTags'.&lt;BR /&gt;2. All 6 keys (Key 0 ~ Key 5) have been tested with known values.&lt;BR /&gt;3. When using 'public test vectors' for AES-CMAC, our CMAC verification logic returns the correct result.&lt;BR /&gt;However, with 'our configured tag's data', the verification 'consistently fails'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;### Additional Observations&lt;/P&gt;&lt;P&gt;* We suspect the issue may relate to encoding or tag configuration (e.g., KDF, Truncation, Endianness, etc.).&lt;BR /&gt;* We have already tested all possible combinations of these settings to rule out configuration mismatches.&lt;BR /&gt;* We also found online that some tools may encode SDM data differently, depending on the version or environment.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;### Request for Help&lt;/P&gt;&lt;P&gt;If anyone has insight or has experienced similar issues when configuring SDM with 'NTAG 424 DNA', we would greatly appreciate any suggestions or references.&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Oct 2025 04:35:46 GMT</pubDate>
    <dc:creator>rabelais</dc:creator>
    <dc:date>2025-10-31T04:35:46Z</dc:date>
    <item>
      <title>NTAG 424 DNA – SDM CMAC Verification Fails with Custom Tag Data</title>
      <link>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDM-CMAC-Verification-Fails-with-Custom-Tag-Data/m-p/2196324#M13749</link>
      <description>&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;We are currently implementing and testing an 'attendance verification system' based on 'Java Spring', using 'NTAG 424 DNA with SDM (Secure Dynamic Messaging)'.&lt;/P&gt;&lt;P&gt;### Test Environment&lt;/P&gt;&lt;P&gt;* 'Hardware': Omnikey HID 5022CL&lt;BR /&gt;* 'Software Tools':&lt;BR /&gt;・GoToTags Desktop&lt;BR /&gt;・TagXplorer&lt;BR /&gt;* 'Test URL Format':&lt;BR /&gt;'&lt;A href="http://xxxxx.xxxxxx.com/user/nfcverify.do?uid=00000000000001&amp;amp;ctr=000000&amp;amp;c=0000000000000000" target="_blank"&gt;http://xxxxx.xxxxxx.com/user/nfcverify.do?uid=00000000000001&amp;amp;ctr=000000&amp;amp;c=0000000000000000&lt;/A&gt;'&lt;BR /&gt;* 'Offset Settings':&lt;BR /&gt;・UID Offset: '46'&lt;BR /&gt;・Read Counter Offset: '65'&lt;BR /&gt;・MAC Offset: '74'&lt;BR /&gt;・MAC Input Offset: '0'&lt;BR /&gt;* 'SDM Parameters in URL':&lt;BR /&gt;'uid', 'ctr', 'c'&lt;BR /&gt;* 'Keys Configured': Key 0 through Key 5 (all tested)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;### Test Summary &amp;amp; Issue&lt;/P&gt;&lt;P&gt;1. We used 'both GoToTags and TagXplorer'.&lt;BR /&gt;In TagXplorer, even with 'SDM Mirroring enabled', the Offset fields remain grayed out and uneditable.&lt;BR /&gt;Therefore, all tag configuration was completed via 'GoToTags'.&lt;BR /&gt;2. All 6 keys (Key 0 ~ Key 5) have been tested with known values.&lt;BR /&gt;3. When using 'public test vectors' for AES-CMAC, our CMAC verification logic returns the correct result.&lt;BR /&gt;However, with 'our configured tag's data', the verification 'consistently fails'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;### Additional Observations&lt;/P&gt;&lt;P&gt;* We suspect the issue may relate to encoding or tag configuration (e.g., KDF, Truncation, Endianness, etc.).&lt;BR /&gt;* We have already tested all possible combinations of these settings to rule out configuration mismatches.&lt;BR /&gt;* We also found online that some tools may encode SDM data differently, depending on the version or environment.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;### Request for Help&lt;/P&gt;&lt;P&gt;If anyone has insight or has experienced similar issues when configuring SDM with 'NTAG 424 DNA', we would greatly appreciate any suggestions or references.&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 04:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDM-CMAC-Verification-Fails-with-Custom-Tag-Data/m-p/2196324#M13749</guid>
      <dc:creator>rabelais</dc:creator>
      <dc:date>2025-10-31T04:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: NTAG 424 DNA – SDM CMAC Verification Fails with Custom Tag Data</title>
      <link>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDM-CMAC-Verification-Fails-with-Custom-Tag-Data/m-p/2196839#M13753</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256175"&gt;@rabelais&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;By any chance, have you referred to &lt;A href="https://www.nxp.com/docs/en/application-note/AN12196.pdf" target="_blank"&gt;NTAG 424 DNA and NTAG 424 DNA TagTamper features and hints&lt;/A&gt;? Section 3 provides the details to get a deeper understanding on Secure Dynamic Messaging and also includes some examples of URLs with mirrored data. You can also refer to &lt;A href="https://www.nxp.com/docs/en/data-sheet/NT4H2421Tx.pdf" target="_blank"&gt;NTAG 424 DNA Data Sheet&lt;/A&gt;, Section 9.3.&lt;/P&gt;
&lt;P&gt;Also, the 8-byte SDMMAC is calculated using AES according to the CMAC standard described in NIST Special Publication 800-38B, truncated by using only the 8 even-numbered bytes out of the 16 bytes output when represented in most-to-least-significant order. Could you please confirm that your verification is done according to this specification?&lt;/P&gt;
&lt;P&gt;Please, consider that TagXplorer is an old software that is no longer supported. We recommend using &lt;A href="https://www.nxp.com/applications/technologies/security/industrial-security/rfiddiscover:RFID-DISCOVER" target="_blank"&gt;RFIDDiscover,&lt;/A&gt; as this tool allows you to test and configure NTAG devices from our portfolio. RFIDDiscover supports many third-party PCSC devices; however, we also recommend &lt;A href="https://www.nxp.com/design/design-center/development-boards-and-designs/CLRD730" target="_blank"&gt;PEGODA Contactless Smart Card Reader Based on PN7642&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Something important to remark is that RFIDDIscover is secured under NDA (Non-Disclosure Agreement); you can try requesting an NDA directly from the &lt;A href="https://www.nxp.com/webapp-signup/ndaReqForm" target="_blank"&gt;NDA online form&lt;/A&gt;. After this, you must request the tool through the Secure Files (&lt;A href="https://www.nxp.com/support/support/secure-access-rights/secure-access-rights-faqs:SEC-ACCESS-FAQS" target="_blank"&gt;Secure Access Rights FAQs | NXP Semiconductors&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 18:44:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDM-CMAC-Verification-Fails-with-Custom-Tag-Data/m-p/2196839#M13753</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2025-10-31T18:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: NTAG 424 DNA – SDM CMAC Verification Fails with Custom Tag Data</title>
      <link>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDM-CMAC-Verification-Fails-with-Custom-Tag-Data/m-p/2197160#M13755</link>
      <description>&lt;P&gt;Thank you very much for your kind advice.&lt;/P&gt;&lt;P&gt;I'll try again using the combination of 'RFIDDiscover' and the 'PEGODA Contactless Smart Card Reader' as you suggested.&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 03:07:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDM-CMAC-Verification-Fails-with-Custom-Tag-Data/m-p/2197160#M13755</guid>
      <dc:creator>rabelais</dc:creator>
      <dc:date>2025-11-03T03:07:10Z</dc:date>
    </item>
  </channel>
</rss>

