<?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>Other NXP ProductsのトピックRe: Mifare 1K TAG Read and Write using KEYB</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938322#M7723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;we make the correction in the Library. and it's working on KEYB.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2019 05:50:14 GMT</pubDate>
    <dc:creator>selvaraj1</dc:creator>
    <dc:date>2019-08-23T05:50:14Z</dc:date>
    <item>
      <title>Mifare 1K TAG Read and Write using KEYB</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938318#M7719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Here using PN512 Reader for our Project.And Using Mifare 1K Tag.&lt;/P&gt;&lt;P&gt;For KeyA Based Authentication ,Read and Write Operation which getting success. &lt;/P&gt;&lt;P&gt;For KeyB only getting Authentication Success.Read and Write Operation getting Fail.&lt;/P&gt;&lt;P&gt;This will be on Default Access Bit- FF078069 and Both Keys are &amp;lt;FF FF FF FF FF FF&amp;gt;.&lt;/P&gt;&lt;P&gt;Same type of some NXP 1K Cards Getting Success on KEYB Read and Write.&lt;/P&gt;&lt;P&gt;&amp;nbsp;For Success and Fail Status Response Below from PN512.&lt;/P&gt;&lt;P&gt;Success:&lt;/P&gt;&lt;P&gt;Authentication of block 08 successful, continue operation.&lt;BR /&gt; Mifare Read: Block=08, Data: &lt;BR /&gt; 30313100000000000000000000000000&lt;BR /&gt; Fail.&lt;BR /&gt; Authentication of block 08 successful, continue operation.&lt;BR /&gt; *** ERROR! MifareRead: Block=08, Status = 091b&lt;BR /&gt; Here 091b- refers to NACK detected.(negative acknowledgement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give the Solution for this Issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 13:51:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938318#M7719</guid>
      <dc:creator>selvaraj1</dc:creator>
      <dc:date>2019-08-01T13:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mifare 1K TAG Read and Write using KEYB</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938319#M7720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="345693" data-username="selvaraj@prodigyelectronics.com" href="https://community.nxp.com/people/selvaraj@prodigyelectronics.com"&gt;SELVARAJ KARUPPASAMY&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I see the internal case you posted once you determine it has been solved,&amp;nbsp;&amp;nbsp;I will post here the answer.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 19:35:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938319#M7720</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2019-08-12T19:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mifare 1K TAG Read and Write using KEYB</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938320#M7721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In PN512 Reader -Once change the KEY Block Access bit From -FF078069-&amp;nbsp;&amp;nbsp; to 7F078869. then we can Read and write the Data Block Using KEY B. our issue will be solved By changing the Key Access Bit conditions. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our New Product Development Using CLRC66303 reader chip.&lt;/P&gt;&lt;P&gt;For KeyA Login Authendication, Read and Write getting Success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here Facing KEYB Authentication Fail.Does Not Login Using KeyB for this Access Bit Conditions (7F078869).&lt;/P&gt;&lt;P&gt;Here using OM26630FDK -Development Kit. Any Script File toTest the Authenticate, Read and Write using KeyB for Classic 1K/4Kcards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 05:45:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938320#M7721</guid>
      <dc:creator>selvaraj1</dc:creator>
      <dc:date>2019-08-13T05:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mifare 1K TAG Read and Write using KEYB</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938321#M7722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope you are doing great,&lt;/P&gt;&lt;P&gt;there was a mistake in the library, this will be fixed in the next release. The issue is following.&lt;/P&gt;&lt;P&gt;By using Key-B the pointer of ‘pKey’ is set to start at index ‘6’ of 'aKey’ &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88833i5EF2C3F670CF0EB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of all 0xFF the last 4 bytes are different. This causes the authentication to fail.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88874iAB685CF00BD94159/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Conclusion: Initialization of the key is wrong/not done.&lt;/P&gt;&lt;P&gt;The keys are set by following function: &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88910iEAD34EAD89AC8439/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If we further look into this function we will see that the size of the key is retrieved by ‘phKeyStore_GetKeySize(wKeyType)’&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88936i37C045A9C529C06A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88979i3DB281101AC5FDF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So we will copy 12 bytes, of course!, for Key-A and Key-B. But if we look at the key we pass:&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89030i1F99A529883B98B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt; it is only 6 byte long!!! The rest will be whatever is written after that. Actually we have here a perfect example of a boundary violation! By changing it to actual 12 bytes everything works as expected!! &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89068i78CD556F4D787DBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 14:57:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938321#M7722</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2019-08-21T14:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mifare 1K TAG Read and Write using KEYB</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938322#M7723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;we make the correction in the Library. and it's working on KEYB.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 05:50:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Mifare-1K-TAG-Read-and-Write-using-KEYB/m-p/938322#M7723</guid>
      <dc:creator>selvaraj1</dc:creator>
      <dc:date>2019-08-23T05:50:14Z</dc:date>
    </item>
  </channel>
</rss>

