<?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>NFCのトピックRe: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
    <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1574900#M9907</link>
    <description>&lt;P&gt;Hi, I use a PC/SC reader to personalize SAM AV2 / AV3 via a windows software I wrote using NXP Reader Library.&lt;/P&gt;&lt;P&gt;The SAM will then be used to authenticate Mifare DESFire EV1 cards.&lt;/P&gt;&lt;P&gt;In the process of personalizing the SAM, I need the change Key Entries, for example, the entry n°0 as host / unlock key.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Call phhalHw_SamAV2_Cmd_SAM_GetKeyEntry to determine key type and key versions&lt;/LI&gt;&lt;LI&gt;Authenticate with default key with authType 0x02 to encipher host channel.&lt;/LI&gt;&lt;LI&gt;Call phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry to change entry.&lt;/LI&gt;&lt;LI&gt;Call phhalHw_SamAV2_Cmd_SAM_GetKeyEntry to check all is OK.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After step 3, the Host is no longer authenticated with entry 0 because the key changed.&lt;/P&gt;&lt;P&gt;So for Step 4 to succed, I need to force &lt;STRONG&gt;pDataParams-&amp;gt;bAuthType&lt;/STRONG&gt; to 0x00 (plain).&lt;/P&gt;&lt;P&gt;Thats not a big deal to do, but it was confusing to no be able to use phhalHw_SamAV2_Cmd_SAM_GetKeyEntry. This function is supposed to be available at any time.&lt;/P&gt;&lt;P&gt;So I imagine that phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry could reset AuthType in case the authentication is invalidated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 11:05:08 GMT</pubDate>
    <dc:creator>frederic_surleau</dc:creator>
    <dc:date>2022-12-27T11:05:08Z</dc:date>
    <item>
      <title>NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1573062#M9895</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When the function &lt;STRONG&gt;phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry()&lt;/STRONG&gt;, is called to change the actual authentication host key, authentication is no longer valid.&lt;/P&gt;&lt;P&gt;So, in this case, &lt;STRONG&gt;pDataParams-&amp;gt;bAuthType&lt;/STRONG&gt; should be reset to 0x00.&lt;/P&gt;&lt;P&gt;It is not.&lt;/P&gt;&lt;P&gt;Same problem with &lt;STRONG&gt;phhalHw_SamAV3_Cmd_SAM_ChangeKeyEntry()&lt;/STRONG&gt;...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 07:34:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1573062#M9895</guid>
      <dc:creator>frederic_surleau</dc:creator>
      <dc:date>2022-12-22T07:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1574894#M9906</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/119431"&gt;@frederic_surleau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to clarify your question. So, what kind of environment do you work in, what kind of reader do you use, and what kind of card do you operate? It will be convenient for me to repeat your question.&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Kelly&lt;BR /&gt;Technical Support&lt;BR /&gt;NXP Semiconductor&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 10:48:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1574894#M9906</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2022-12-27T10:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1574900#M9907</link>
      <description>&lt;P&gt;Hi, I use a PC/SC reader to personalize SAM AV2 / AV3 via a windows software I wrote using NXP Reader Library.&lt;/P&gt;&lt;P&gt;The SAM will then be used to authenticate Mifare DESFire EV1 cards.&lt;/P&gt;&lt;P&gt;In the process of personalizing the SAM, I need the change Key Entries, for example, the entry n°0 as host / unlock key.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Call phhalHw_SamAV2_Cmd_SAM_GetKeyEntry to determine key type and key versions&lt;/LI&gt;&lt;LI&gt;Authenticate with default key with authType 0x02 to encipher host channel.&lt;/LI&gt;&lt;LI&gt;Call phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry to change entry.&lt;/LI&gt;&lt;LI&gt;Call phhalHw_SamAV2_Cmd_SAM_GetKeyEntry to check all is OK.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After step 3, the Host is no longer authenticated with entry 0 because the key changed.&lt;/P&gt;&lt;P&gt;So for Step 4 to succed, I need to force &lt;STRONG&gt;pDataParams-&amp;gt;bAuthType&lt;/STRONG&gt; to 0x00 (plain).&lt;/P&gt;&lt;P&gt;Thats not a big deal to do, but it was confusing to no be able to use phhalHw_SamAV2_Cmd_SAM_GetKeyEntry. This function is supposed to be available at any time.&lt;/P&gt;&lt;P&gt;So I imagine that phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry could reset AuthType in case the authentication is invalidated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 11:05:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1574900#M9907</guid>
      <dc:creator>frederic_surleau</dc:creator>
      <dc:date>2022-12-27T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1575209#M9913</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/119431"&gt;@frederic_surleau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an example for how to authentication MIFARE DESFire EV2/EV1 by SAM. But&amp;nbsp;as you may know, this is a secure product, and its document requires an NDA. If you already have one, please let me know so I can orient you to find the documents which can help you solve your issue. In case you need to sign an NDA, please let me know if you need.&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Kelly&lt;BR /&gt;Technical Support&lt;BR /&gt;NXP Semiconductor&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 12:33:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1575209#M9913</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2022-12-28T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1578589#M9931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have already signed a NDA, and have all documentation needed.&lt;/P&gt;&lt;P&gt;The problem is not authenticating a SAM with a MIFARE DESFire. I wrote about DESFire to answer your question about the type of card we use.&lt;/P&gt;&lt;P&gt;The problem is before, when I use the library to put keys in the SAM : After changing a HOST key, the authentication with that key is no longer valid, and the the parameter &lt;STRONG&gt;bAuthType&lt;/STRONG&gt; should be reset to 0x00, which I think the function "phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry" should do.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 13:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1578589#M9931</guid>
      <dc:creator>frederic_surleau</dc:creator>
      <dc:date>2023-01-06T13:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1578751#M9933</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/119431"&gt;@frederic_surleau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you already have NDA, and then please download&amp;nbsp;sw733910 package from&amp;nbsp;&lt;A class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1" title="https://www.docstore.nxp.com/" href="https://www.docstore.nxp.com/" target="_blank" rel="noopener noreferrer" aria-label="Link https://www.docstore.nxp.com/"&gt;https://www.docstore.nxp.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And if you have any issue for download or&lt;SPAN&gt;&amp;nbsp;doc store account issue, please contact&amp;nbsp;&lt;/SPAN&gt;&lt;A class="fui-Link ___m14voj0 f3rmtva f1ern45e f1deefiw f1n71otn f1q5o8ev f1h8hb77 f1vxd6vx f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f9n3di6 f1ids18y fygtlnl f1deo86v f12x56k7 f1iescvh ftqa4ok f50u1b5 fs3pq8b f1hghxdh f1tymzes f1x7u7e9 f1cmlufx f10aw75t fsle3fq" tabindex="-1" title="mailto:support.docstore@nxp.com" href="mailto:support.docstore@nxp.com" target="_blank" rel="noopener noreferrer" aria-label="Link support.docstore@nxp.com"&gt;support.docstore@nxp.com&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;for further support.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Kelly&lt;BR /&gt;Technical Support&lt;BR /&gt;NXP Semiconductor&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 02:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1578751#M9933</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2023-01-07T02:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1579071#M9937</link>
      <description>&lt;P&gt;Ok, I do not find it.&lt;/P&gt;&lt;P&gt;In which category should I look ?&lt;/P&gt;&lt;P&gt;Is it an upgrade of sw171756, the subject of this topic ?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 07:40:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1579071#M9937</guid>
      <dc:creator>frederic_surleau</dc:creator>
      <dc:date>2023-01-09T07:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1579087#M9938</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/119431"&gt;@frederic_surleau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN&gt;The fact that you cannot see this file means you don't have permission yet, please contact&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="mailto:support.docstore@nxp.com" target="_blank"&gt;&lt;SPAN&gt;support.docstore@nxp.com&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for further support.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NXF92074_0-1673251524232.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206461iBAD08AF427B78BD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NXF92074_0-1673251524232.png" alt="NXF92074_0-1673251524232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Best regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Kelly&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Technical Support&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;NXP Semiconductor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 08:06:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1579087#M9938</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2023-01-09T08:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1579912#M9948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I downloaded SW7339 PN7462 MIFARE DESFire and MIFARE SAM AV3 v07.02.00 NDA v01.00.&lt;/P&gt;&lt;P&gt;I found "phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry()" in NxpNfcRdLib\comps\phhalHw\src\SamAV2\phhalHw_SamAV2_Cmd.c&lt;/P&gt;&lt;P&gt;It is exactly the same code as the one in NxpRdLib (sw171756), so I don't see the point...&lt;/P&gt;&lt;P&gt;As I said in my first post, it is not a BIG problem. I was just suggesting to do a little modification.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 09:17:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1579912#M9948</guid>
      <dc:creator>frederic_surleau</dc:creator>
      <dc:date>2023-01-10T09:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1580049#M9953</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/119431"&gt;@frederic_surleau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;&lt;SPAN&gt;This example &lt;/SPAN&gt;&lt;STRONG&gt;sw733910\Examples\NfcrdlibEx10_MIFAREDESFire_Evx&lt;/STRONG&gt;&lt;SPAN&gt; is using &lt;/SPAN&gt;&lt;SPAN&gt;SAM to authenticate Mifare DESFire EV&lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt; cards&lt;/SPAN&gt;&lt;SPAN&gt; base on PN7462 Reader. Please try to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;follow the steps &lt;/SPAN&gt;&lt;SPAN&gt;in &lt;/SPAN&gt;&lt;SPAN&gt;this example to implement your application.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;Best regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;Kelly&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;Technical Support&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;NXP Semiconductor&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 12:17:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1580049#M9953</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2023-01-10T12:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1580058#M9954</link>
      <description>&lt;P&gt;Ok, you really misunderstood my problem.&lt;/P&gt;&lt;P&gt;Bye.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 12:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1580058#M9954</guid>
      <dc:creator>frederic_surleau</dc:creator>
      <dc:date>2023-01-10T12:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1580406#M9956</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/119431"&gt;@frederic_surleau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;SPAN&gt;I don't misunderstand your question, I mean your ultimate goal is achieved by this example, I don't have these&lt;/SPAN&gt; &lt;SPAN&gt;devices&lt;/SPAN&gt; &lt;SPAN&gt;on my side and to debug, so I suggest you follow this example to achieve your goal. Anyway, your question has been forwarded to the internal expert of NXP and I'll keep update you. Please understand the inconvenience.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 11.0pt;" lang="en-US"&gt;&lt;SPAN&gt;Thank you for your interest in NXP Semiconductor products and&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;for the opportunity to serve you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Microsoft YaHei'; font-size: 11.0pt;" lang="en-US"&gt;Best regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Microsoft YaHei'; font-size: 11.0pt;" lang="en-US"&gt;Kelly&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Microsoft YaHei'; font-size: 11.0pt;" lang="en-US"&gt;Technical Support&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Microsoft YaHei'; font-size: 11.0pt;" lang="en-US"&gt;NXP Semiconductor&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 01:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1580406#M9956</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2023-01-11T01:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: NXP Reader Library : phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry</title>
      <link>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1580742#M9957</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/119431"&gt;@frederic_surleau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="en-US"&gt;For the below issues, I have received reply from the internal experts. The following is from expert suggestions:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;SPAN&gt;here is the KillAuthentication command, which will invalidate all authentications, or only the PICC Auth (P1 param)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN&gt;simply inject that one between 3 and 4, that is the correct solution, and will bring the dataparams in a defined state.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN&gt;Hope the above reply could help you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #e84c22;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;Hi, I use a PC/SC reader to personalize SAM AV2 / AV3 via a windows software I wrote using NXP Reader Library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;The SAM will then be used to authenticate Mifare DESFire EV1 cards.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;In the process of personalizing the SAM, I need the change Key Entries, for example, the entry n°0 as host / unlock key.&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL style="direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Arial; font-size: 12.0pt; font-weight: normal; font-style: normal;" type="1"&gt;
&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #333f48;" value="1"&gt;&lt;SPAN&gt;Call phhalHw_SamAV2_Cmd_SAM_GetKeyEntry to determine key type and key versions&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #333f48;"&gt;&lt;SPAN&gt;Authenticate with default key with authType 0x02 to encipher host channel.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #333f48;"&gt;&lt;SPAN&gt;Call phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry to change entry.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #333f48;"&gt;&lt;SPAN&gt;Call phhalHw_SamAV2_Cmd_SAM_GetKeyEntry to check all is OK.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;After step 3, the Host is no longer authenticated with entry 0 because the key changed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;So for Step 4 to succed, I need to force&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;pDataParams-&amp;gt;bAuthType&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to 0x00 (plain).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;Thats not a big deal to do, but it was confusing to no be able to use phhalHw_SamAV2_Cmd_SAM_GetKeyEntry. This function is supposed to be available at any time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;So I imagine that phhalHw_SamAV2_Cmd_SAM_ChangeKeyEntry could reset AuthType in case the authentication is invalidated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 11pt; font-family: Arial; font-size: 12.0pt; color: #333f48;"&gt;&lt;SPAN&gt;Fred.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 10:25:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NXP-Reader-Library-phhalHw-SamAV2-Cmd-SAM-ChangeKeyEntry/m-p/1580742#M9957</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2023-01-11T10:25:40Z</dc:date>
    </item>
  </channel>
</rss>

