<?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: NTAG 424 DNA SDMACFull calculation in NFC</title>
    <link>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDMACFull-calculation/m-p/1986438#M12290</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242781"&gt;@xxxlucaxxx&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Hope you are doing well.&lt;/P&gt;
&lt;P&gt;Cryptographic parameters, keys, random numbers, TI and computed MACs are represented as most significant byte (MSB) first.&lt;/P&gt;
&lt;P&gt;Perhaps you may some useful information and other examples in &lt;A href="https://www.nxp.com/docs/en/data-sheet/NT4H2421Gx.pdf" target="_blank"&gt;NTAG 424 Data Sheet&lt;/A&gt;, Section 9.3; Section 9.3.10 shows an example of output mapping.&lt;/P&gt;
&lt;P&gt;Also, you can refer to &lt;A href="https://inspire.nxp.com/tagwriter/tag-writer-user-manual.pdf" target="_blank"&gt;TagWriter User Manual&lt;/A&gt;, Section 4.3 for an example of how to enable UID and Counter Mirror by using TagWriter app.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 21:32:54 GMT</pubDate>
    <dc:creator>EduardoZamora</dc:creator>
    <dc:date>2024-11-01T21:32:54Z</dc:date>
    <item>
      <title>NTAG 424 DNA SDMACFull calculation</title>
      <link>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDMACFull-calculation/m-p/1985927#M12282</link>
      <description>&lt;P&gt;Good Day!&lt;BR /&gt;&lt;BR /&gt;I am trying to decrypt the SDMACFull from AN12196 document as reference PAGE 18 with the given example STEP 17.&lt;/P&gt;&lt;P&gt;This is the formula:&lt;BR /&gt;SDMMACfull = MAC(KSesSDMFileReadMAC;DynamicFileData[ SDMMACInputOffset ::SDMMACOffset - 1 ])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDMMACOffset:&lt;BR /&gt;6A0000&lt;/P&gt;&lt;P&gt;SDMMACInputOffset:&lt;BR /&gt;440000&lt;BR /&gt;&lt;BR /&gt;KSesSDMFileReadMAC:&lt;BR /&gt;3ED0920E5E6A0320D823D5987FEAFBB1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;DynamicFileData (ASCII):&lt;BR /&gt;CEE9A53E3E463EF1F459635736738962&amp;amp;cmac=&lt;/P&gt;&lt;P&gt;DynamicFileData (HEX): 434545394135334533453436334546314634353936333537333637333839363226636d61633d&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have some basic understanding calculating the SliceLength. If i convert the hex2dec&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;x&lt;/SPAN&gt;&lt;SPAN class=""&gt;6&lt;/SPAN&gt;&lt;SPAN class=""&gt;A&lt;/SPAN&gt;&lt;SPAN class=""&gt;0000&lt;/SPAN&gt;&lt;SPAN class=""&gt;−&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;x&lt;/SPAN&gt;&lt;SPAN class=""&gt;440000&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;x&lt;/SPAN&gt;&lt;SPAN class=""&gt;260000 in decimal 2490368&lt;SPAN class=""&gt;&amp;nbsp;bytes. However, my DynamicFileData does not provide this byte length.&lt;BR /&gt;&lt;BR /&gt;Secondly, in the example 2 different length of DynamicFileData in Hex and ASCII.&lt;BR /&gt;&lt;BR /&gt;Which one is the correct to use, HEX, ASCII or Both?&lt;BR /&gt;&lt;BR /&gt;Also what is also not clear, in STEP 15 the Data Message has a suffix &amp;amp;cmac=&lt;BR /&gt;&lt;BR /&gt;Not sure if it has to be part of it or not.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 04:23:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDMACFull-calculation/m-p/1985927#M12282</guid>
      <dc:creator>xxxlucaxxx</dc:creator>
      <dc:date>2024-11-01T04:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: NTAG 424 DNA SDMACFull calculation</title>
      <link>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDMACFull-calculation/m-p/1986438#M12290</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242781"&gt;@xxxlucaxxx&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Hope you are doing well.&lt;/P&gt;
&lt;P&gt;Cryptographic parameters, keys, random numbers, TI and computed MACs are represented as most significant byte (MSB) first.&lt;/P&gt;
&lt;P&gt;Perhaps you may some useful information and other examples in &lt;A href="https://www.nxp.com/docs/en/data-sheet/NT4H2421Gx.pdf" target="_blank"&gt;NTAG 424 Data Sheet&lt;/A&gt;, Section 9.3; Section 9.3.10 shows an example of output mapping.&lt;/P&gt;
&lt;P&gt;Also, you can refer to &lt;A href="https://inspire.nxp.com/tagwriter/tag-writer-user-manual.pdf" target="_blank"&gt;TagWriter User Manual&lt;/A&gt;, Section 4.3 for an example of how to enable UID and Counter Mirror by using TagWriter app.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 21:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NTAG-424-DNA-SDMACFull-calculation/m-p/1986438#M12290</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2024-11-01T21:32:54Z</dc:date>
    </item>
  </channel>
</rss>

