<?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 Question: Is it possible to do a Secure Boot (SB) image on the MKV31F128? in MCU Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Question-Is-it-possible-to-do-a-Secure-Boot-SB-image-on-the/m-p/622054#M174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I found the following comment in this post:&amp;nbsp; &lt;A _jive_internal="true" data-containerid="11534" data-containertype="14" data-objectid="330885" data-objecttype="102" href="https://community.nxp.com/docs/DOC-330885"&gt;https://community.nxp.com/docs/DOC-330885&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;It is quite easy&amp;nbsp;to generate an encrypted SB image. No need to modify the command file.&amp;nbsp;Just add "-k KeyFile" to the command line, and remove "-z".&amp;nbsp;&amp;lt;KeyFile&amp;gt; is a text file containing the AES key. You can generate one with "-K" parameter.&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: red;"&gt;BTW, to let bootloader parse the encrypted sb file, you also need to program the AES key into device's IFR field, and the device must support hardware decryption.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;You can refer to the "Kinetis ROM bootloader" chapter in the device's reference manual about the hardware decryption support and IFR programming.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The MKV31 is a supported processor in the Bootloader Document but it is not obvious whether the MKV31 can actually handle an encrypted SB image. &amp;nbsp;I do not believe it has any crypto hardware to handle this decryption task. &amp;nbsp;Can it be done in software?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 17:06:28 GMT</pubDate>
    <dc:creator>deanmcu</dc:creator>
    <dc:date>2016-12-16T17:06:28Z</dc:date>
    <item>
      <title>Question: Is it possible to do a Secure Boot (SB) image on the MKV31F128?</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Question-Is-it-possible-to-do-a-Secure-Boot-SB-image-on-the/m-p/622054#M174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I found the following comment in this post:&amp;nbsp; &lt;A _jive_internal="true" data-containerid="11534" data-containertype="14" data-objectid="330885" data-objecttype="102" href="https://community.nxp.com/docs/DOC-330885"&gt;https://community.nxp.com/docs/DOC-330885&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;It is quite easy&amp;nbsp;to generate an encrypted SB image. No need to modify the command file.&amp;nbsp;Just add "-k KeyFile" to the command line, and remove "-z".&amp;nbsp;&amp;lt;KeyFile&amp;gt; is a text file containing the AES key. You can generate one with "-K" parameter.&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: red;"&gt;BTW, to let bootloader parse the encrypted sb file, you also need to program the AES key into device's IFR field, and the device must support hardware decryption.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;You can refer to the "Kinetis ROM bootloader" chapter in the device's reference manual about the hardware decryption support and IFR programming.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The MKV31 is a supported processor in the Bootloader Document but it is not obvious whether the MKV31 can actually handle an encrypted SB image. &amp;nbsp;I do not believe it has any crypto hardware to handle this decryption task. &amp;nbsp;Can it be done in software?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 17:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Question-Is-it-possible-to-do-a-Secure-Boot-SB-image-on-the/m-p/622054#M174</guid>
      <dc:creator>deanmcu</dc:creator>
      <dc:date>2016-12-16T17:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question: Is it possible to do a Secure Boot (SB) image on the MKV31F128?</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Question-Is-it-possible-to-do-a-Secure-Boot-SB-image-on-the/m-p/622055#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it can be done by a SW AES algorithm implementation, please replace all the function in the&amp;nbsp;aes_security.c with the SW implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, regarding the SB key, it can be implemented in other ways, for example, storing them in internal FLASH or the generic IFRs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope above info is helpful to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2016 01:41:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Question-Is-it-possible-to-do-a-Secure-Boot-SB-image-on-the/m-p/622055#M175</guid>
      <dc:creator>ramboyang</dc:creator>
      <dc:date>2016-12-17T01:41:08Z</dc:date>
    </item>
  </channel>
</rss>

