<?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 AES issue using PUF key (SBKEK or USERKEK) on LPC55s06 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1461637#M48849</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create an uart authentication using SBKEK or USERKEK.&lt;/P&gt;&lt;P&gt;I use blhost to send aes key.&lt;/P&gt;&lt;P&gt;I follow AN12324 and keep only code needed.&lt;/P&gt;&lt;P&gt;From AN12324_SW the function "GetKey" seems to work (using&amp;nbsp; keystore = 5 (CMPA) and keyIdx = 1 (SBKEK) or 2(USERKEK)). All PUF functions return success.&lt;/P&gt;&lt;P&gt;Function HASHCRYPT_AES_EncryptEcb fail on&amp;nbsp;hashcrypt_check_need_key due to&amp;nbsp;HASHCRYPT_STATUS_NEEDKEY_MASK bit set.&lt;/P&gt;&lt;P&gt;1) How does it work? Have you got some exemple?&lt;BR /&gt;2) I am a bit confused, the code from AN12324 initialise HashCrypt after getting PUF KEY. Is it the correct order? (I also try to initialise HashCrypt at begin but it not work).&lt;/P&gt;&lt;P&gt;I join a part of code (I cut some sensible code, and some part are ugly (i have to very quickly qualify this function)) and the code is tested using debug mode.&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 12:36:25 GMT</pubDate>
    <dc:creator>Aurelien_Grange</dc:creator>
    <dc:date>2022-05-20T12:36:25Z</dc:date>
    <item>
      <title>AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1461637#M48849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create an uart authentication using SBKEK or USERKEK.&lt;/P&gt;&lt;P&gt;I use blhost to send aes key.&lt;/P&gt;&lt;P&gt;I follow AN12324 and keep only code needed.&lt;/P&gt;&lt;P&gt;From AN12324_SW the function "GetKey" seems to work (using&amp;nbsp; keystore = 5 (CMPA) and keyIdx = 1 (SBKEK) or 2(USERKEK)). All PUF functions return success.&lt;/P&gt;&lt;P&gt;Function HASHCRYPT_AES_EncryptEcb fail on&amp;nbsp;hashcrypt_check_need_key due to&amp;nbsp;HASHCRYPT_STATUS_NEEDKEY_MASK bit set.&lt;/P&gt;&lt;P&gt;1) How does it work? Have you got some exemple?&lt;BR /&gt;2) I am a bit confused, the code from AN12324 initialise HashCrypt after getting PUF KEY. Is it the correct order? (I also try to initialise HashCrypt at begin but it not work).&lt;/P&gt;&lt;P&gt;I join a part of code (I cut some sensible code, and some part are ugly (i have to very quickly qualify this function)) and the code is tested using debug mode.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 12:36:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1461637#M48849</guid>
      <dc:creator>Aurelien_Grange</dc:creator>
      <dc:date>2022-05-20T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1462263#M48868</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I wonder how I can reproduce your issue.&lt;/P&gt;
&lt;P&gt;Do you use nxp demo board or custom board?&lt;/P&gt;
&lt;P&gt;Do you use&amp;nbsp;&lt;SPAN&gt;AN12324_SW directly or you revise it for your application?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can we reproduce your issue with demo board?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 08:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1462263#M48868</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-05-23T08:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1462294#M48870</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;apologize me,&lt;/P&gt;&lt;P&gt;All works fineI, I made a stupid error, I check using sbkek.bin (as i use same key for for both to test), but bytes are in reversed order. If I revert all byte order it works fine.&lt;/P&gt;&lt;P&gt;Sorry.&lt;/P&gt;&lt;P&gt;Have a good days.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 08:42:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1462294#M48870</guid>
      <dc:creator>Aurelien_Grange</dc:creator>
      <dc:date>2022-05-23T08:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1462385#M48876</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;No problem. Thanks for the sharing.&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 10:43:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1462385#M48876</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-05-23T10:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1464004#M48914</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I come back because the code tested using only USERKEK (blhost 11 key) works fine, but if I program an eval board with both USERKEK and SBKEK (blhost 3 key) it's stop working.&lt;/P&gt;&lt;P&gt;I do the following ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;m_handle.keyType = kHASHCRYPT_SecretKey;&lt;BR /&gt;status = HASHCRYPT_AES_SetKey(HASHCRYPT, &amp;amp;m_handle, keyAes, 32);&lt;BR /&gt;status = HASHCRYPT_AES_EncryptEcb(HASHCRYPT, &amp;amp;m_handle, plaintext, ciphertext, 16);&lt;BR /&gt;&amp;nbsp;status = HASHCRYPT_AES_DecryptEcb(HASHCRYPT, &amp;amp;m_handle, ciphertext, output , 16);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When only USERKEK is written I can check that&amp;nbsp;plaintext =&amp;nbsp;output, but when I write both key (which are not equal) HASHCRYPT_AES_EncryptEcb return 1 and cyphertext is not correct (function fail on&amp;nbsp;hashcrypt_check_need_key).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code tested was the same, i just make a new blhost enroll and provising both key.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1464004#M48914</guid>
      <dc:creator>Aurelien_Grange</dc:creator>
      <dc:date>2022-05-25T12:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1464030#M48917</link>
      <description>&lt;P&gt;Does it is possible to overwrite USERKEK (blhost 11)? Does it works&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:32:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1464030#M48917</guid>
      <dc:creator>Aurelien_Grange</dc:creator>
      <dc:date>2022-05-25T13:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1465325#M48940</link>
      <description>&lt;P&gt;Does it is possible to have both USERKEK and SBKEK?&lt;/P&gt;&lt;P&gt;Does the Activation Code is generated each time we send a key (in this case the first key sended is loose if the activation code is not backup) or does the activation code is the same after each reset/PowerUp&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 06:09:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1465325#M48940</guid>
      <dc:creator>Aurelien_Grange</dc:creator>
      <dc:date>2022-05-27T06:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1475015#M49186</link>
      <description>&lt;P&gt;you can set both SBKEK and USERKEY in PFR keystore. You met problem but I can't reproduce your issue.&lt;/P&gt;
&lt;P&gt;Please let me detail steps of how to reproduce the issue. include&lt;/P&gt;
&lt;P&gt;- SDK and IDE version.&lt;/P&gt;
&lt;P&gt;- if blhost is used.&lt;/P&gt;
&lt;P&gt;- How to revise demo code to reproduce?&lt;/P&gt;
&lt;P&gt;AC code is generated after successful enroll. after set key, we can get a keycode (KC), then we use KC to getkey.&lt;/P&gt;
&lt;P&gt;AC will not change when power on or reset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 05:18:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1475015#M49186</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-06-16T05:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1475082#M49190</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SDK is 2.10.1&lt;BR /&gt;IDE is V11.4.1&lt;/P&gt;&lt;P&gt;FIrst time when i set only SBKEK, I use MCUXpresso Secure Provisionning (V3.1) and after I use blhost (from SPSDK) V1.6.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am all write whit AC code, but when only SBKEK is used I can Encrypt/Decrypt and check it's OK (in debug mode woth breakpoint and manual check).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't send you all code but only the part of interest&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:49:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1475082#M49190</guid>
      <dc:creator>Aurelien_Grange</dc:creator>
      <dc:date>2022-06-16T06:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1475322#M49205</link>
      <description>&lt;P&gt;Sorry but we can't test with separating files.&lt;/P&gt;
&lt;P&gt;Please do necessary revise on NXP demo code and tell us steps thus we can test it on our side directly.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 12:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1475322#M49205</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-06-16T12:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: AES issue using PUF key (SBKEK or USERKEK) on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1475323#M49206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can't do it since I have no more dev kit (all are bricked due to test on SecureBoot).&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:01:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AES-issue-using-PUF-key-SBKEK-or-USERKEK-on-LPC55s06/m-p/1475323#M49206</guid>
      <dc:creator>Aurelien_Grange</dc:creator>
      <dc:date>2022-06-16T13:01:08Z</dc:date>
    </item>
  </channel>
</rss>

