<?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のトピック[Security] CSEC secureboot verify</title>
    <link>https://community.nxp.com/t5/S32K/Security-CSEC-secureboot-verify/m-p/1839368#M33723</link>
    <description>&lt;P&gt;Dear NXPs：&lt;/P&gt;&lt;P&gt;S32K146&lt;/P&gt;&lt;P&gt;P-Flash 1M(2 Block)&lt;/P&gt;&lt;P&gt;D-Flash 32K&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;background:&lt;/P&gt;&lt;P&gt;CMD_BOOT_DEFINE→BootManager 6KB Use CSEC's secureboot mechanism for verification.&lt;/P&gt;&lt;P&gt;The secondary verification area is Flex NVM Bootloader;&lt;/P&gt;&lt;P&gt;The area of third-level verification is Application;&lt;/P&gt;&lt;P&gt;A. Sequential Boot Mode&lt;/P&gt;&lt;P&gt;Q1:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;(void)CSEC_DRV_BootDefine(BOOT_SIZE, CSEC_BOOT_SERIAL) After enabling secureboot, power on again to enter Secureboot. Since the selected mode is A. Sequential Boot Mode, even if the on-chip ROM fails to verify the Bootmanager image, the Bootmanager code will still be executed, so I&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;It cannot be judged whether the first level verification is successful.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I use the CSEC_DRV_GetStatus() interface in Bootmanager to determine the result of the first-level verification. If the (1 == (CSEC_STATUS_BOOT_OK &amp;amp; CSEC_DRV_GetStatus())) condition is met, the first-level verification is considered successful. Is my understanding correct?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Q2:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Is there any way I can get the BOOT_MAC value calculated by CSEC?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Because I want to know what is the difference between this and the BOOT_MAC I calculated on my PC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 12:56:00 GMT</pubDate>
    <dc:creator>Gideon</dc:creator>
    <dc:date>2024-04-25T12:56:00Z</dc:date>
    <item>
      <title>[Security] CSEC secureboot verify</title>
      <link>https://community.nxp.com/t5/S32K/Security-CSEC-secureboot-verify/m-p/1839368#M33723</link>
      <description>&lt;P&gt;Dear NXPs：&lt;/P&gt;&lt;P&gt;S32K146&lt;/P&gt;&lt;P&gt;P-Flash 1M(2 Block)&lt;/P&gt;&lt;P&gt;D-Flash 32K&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;background:&lt;/P&gt;&lt;P&gt;CMD_BOOT_DEFINE→BootManager 6KB Use CSEC's secureboot mechanism for verification.&lt;/P&gt;&lt;P&gt;The secondary verification area is Flex NVM Bootloader;&lt;/P&gt;&lt;P&gt;The area of third-level verification is Application;&lt;/P&gt;&lt;P&gt;A. Sequential Boot Mode&lt;/P&gt;&lt;P&gt;Q1:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;(void)CSEC_DRV_BootDefine(BOOT_SIZE, CSEC_BOOT_SERIAL) After enabling secureboot, power on again to enter Secureboot. Since the selected mode is A. Sequential Boot Mode, even if the on-chip ROM fails to verify the Bootmanager image, the Bootmanager code will still be executed, so I&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;It cannot be judged whether the first level verification is successful.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I use the CSEC_DRV_GetStatus() interface in Bootmanager to determine the result of the first-level verification. If the (1 == (CSEC_STATUS_BOOT_OK &amp;amp; CSEC_DRV_GetStatus())) condition is met, the first-level verification is considered successful. Is my understanding correct?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Q2:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Is there any way I can get the BOOT_MAC value calculated by CSEC?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Because I want to know what is the difference between this and the BOOT_MAC I calculated on my PC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:56:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Security-CSEC-secureboot-verify/m-p/1839368#M33723</guid>
      <dc:creator>Gideon</dc:creator>
      <dc:date>2024-04-25T12:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: [Security] CSEC secureboot verify</title>
      <link>https://community.nxp.com/t5/S32K/Security-CSEC-secureboot-verify/m-p/1842063#M33901</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218898"&gt;@Gideon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even if sequential or parallel secure boot mode fails, the application code is executed. The only effect of the failure is that boot protected keys cannot be used. Only if strict sequential boot mode is used, the device will stay in reset forever if secure boot fails. But notice that there's no way to recover - the device needs to be replaced.&lt;/P&gt;
&lt;P&gt;Yes, use CSEC_STATUS_BOOT_OK to check the result.&lt;/P&gt;
&lt;P&gt;There's no way to read BOOT_MAC. This would violate the SHE specification.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 06:40:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Security-CSEC-secureboot-verify/m-p/1842063#M33901</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-04-08T06:40:54Z</dc:date>
    </item>
  </channel>
</rss>

