<?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>S32KのトピックRe: S32K144 CSEc Remove Key Write-Protection</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Remove-Key-Write-Protection/m-p/827564#M3209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2019 19:49:13 GMT</pubDate>
    <dc:creator>mahmoudsherrah</dc:creator>
    <dc:date>2019-01-03T19:49:13Z</dc:date>
    <item>
      <title>S32K144 CSEc Remove Key Write-Protection</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Remove-Key-Write-Protection/m-p/827563#M3208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using the CSEc module on the S32K144 to store cryptographic keys, generate random numbers and perform AES encryption/decryption. So I know all about how to store keys, use them and erase them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I messed up one of my trials and write protected one of the keys by mistake (not sure which one exactly). I now cannot erase all keys and restore the flash to factory settings using the usual commands of CMD_DB_CHAL and CMD_DBG_AUTH, since they require that no key is write-protected. AN5401 clearly says that I cannot reprogram or erase the keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However AN5401 section 4.4.4.2&amp;nbsp;"Scenario 2: One or more keys is write protected and all user keys cannot be erased. (or not all user keys are known)" states that I need to update BOOT_MAC either manually or automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is after running the first 3 steps of&amp;nbsp;Example-4 Secure_boot_add_BOOT_MAC:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Step-1 Program the code/program flash with the code to be protected */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Step-2 Program BOOT_MAC_KEY into secure flash */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Step-3 Define the secure boot flavor and the BOOT_SIZE */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;/&lt;/SPAN&gt;&lt;SPAN&gt;* Reset S32K144EVB twice */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the flash memory reset to the factory state and I can reprogram my keys again normally (even the master ECU key)? Is there anything I need to take care of?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2018 13:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Remove-Key-Write-Protection/m-p/827563#M3208</guid>
      <dc:creator>mahmoudsherrah</dc:creator>
      <dc:date>2018-12-22T13:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Remove Key Write-Protection</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Remove-Key-Write-Protection/m-p/827564#M3209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 19:49:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Remove-Key-Write-Protection/m-p/827564#M3209</guid>
      <dc:creator>mahmoudsherrah</dc:creator>
      <dc:date>2019-01-03T19:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc Remove Key Write-Protection</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-Remove-Key-Write-Protection/m-p/827565#M3210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahmoud,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example you are mentioning seems to only recompute the BOOT_MAC, it does not reset the flash to factory state.&amp;nbsp;After the BOOT_MAC_KEY and the secure boot flavor and size are configured, at the next reset, CSEc will compute the MAC for the memory region 0...BOOT_SIZE and store it into the BOOT_MAC slot. After this, at each reset, the MAC will be re-computed and compared to the value stored in BOOT_MAC. If the verification fails, depending on the boot flavor configured, boot protected keys will not be available (sequential/parallel boot mode) or the main core will stay in reset (strict sequential mode).&lt;/P&gt;&lt;P&gt;Unfortunately, once a key is write protected, I don't think there is any method for resetting the flash memory to factory settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Veronica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2019 10:31:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-Remove-Key-Write-Protection/m-p/827565#M3210</guid>
      <dc:creator>veronicavelciu</dc:creator>
      <dc:date>2019-01-04T10:31:32Z</dc:date>
    </item>
  </channel>
</rss>

