<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52832 Secure Boot / DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75820/nrf52832-secure-boot-dfu</link><description>Hi, i&amp;#39;m a litte bit confused about the Secure Boot functionality. I&amp;#39;m using a custom example and the SDK 17.0.2 Secure bootloader. When generating a DFU package I have to specify my private.key to encrypt the signature and sign the DFU image using ECDSA_P256_SHA256</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Jun 2021 14:19:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75820/nrf52832-secure-boot-dfu" /><item><title>RE: nRF52832 Secure Boot / DFU</title><link>https://devzone.nordicsemi.com/thread/313711?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 14:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bad033a-e31f-4553-bd1c-481221ddcdf8</guid><dc:creator>hannes</dc:creator><description>&lt;p&gt;Thanks very much! So far I understood everything correct. Nevertheless, using&amp;nbsp;VALIDATE_ECDSA_P256_SHA256 and setting&amp;nbsp;&lt;span&gt;NRF_BL_APP_SIGNATURE_CHECK_REQUIRED to 1 does not work in my DFU case. Since this is something new I&amp;#39;ve created a new Post:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/76022/secure-dfu-app-sd-bl-from-sdk-15-3-0-to-sdk-17-0-2-with-validate_ecdsa_p256_sha256"&gt;New-Post&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 Secure Boot / DFU</title><link>https://devzone.nordicsemi.com/thread/313399?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 12:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f67a5b87-44fd-43da-a2d0-dcdce2225429</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
[quote user=""]So this key/validation is only used for the DFU-update process?[/quote]
&lt;p&gt;Yes, the DFU requires private and public keys. The public key can be computed from a private key but the private key must be provided. When the update is signed and verification of the signature passes the bootloader can be sure that the update is correct bit-for-bit and that the holder of the private key has approved the contents. You can read more about the Signature verification for the DFU process &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_dfu_validation.html?cp=8_1_3_5_1_1_2_3#lib_bootloader_signatures"&gt;here&lt;/a&gt;. &lt;/p&gt;
[quote user=""]When I also want to implement a secure boot validation for every boot&amp;nbsp;AFTER the DFU I also have to add the &lt;em&gt;VALIDATE_ECDSA_P256_SHA256&lt;/em&gt; Option (for APP and or SD)?[/quote]
&lt;p&gt;&amp;nbsp;Yes.&lt;/p&gt;
[quote user=""]When I want to implement a secure boot validation for every boot already BEFORE a DFU I have to add the&amp;nbsp;&lt;em&gt;VALIDATE_ECDSA_P256_SHA256&lt;/em&gt; Option already when generating the Bootloader-settings file and flashing the chip for the first time?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote user=""]Do I need to enable NRF_BL_APP_SIGNATURE_CHECK_REQUIRED in the bootloaders &lt;em&gt;skd_config.h&lt;/em&gt; to get the boot validation finally enabled/work, or what does this option do in this case?[/quote]
&lt;p&gt;&amp;nbsp;Yes.&lt;/p&gt;
&lt;p&gt;For more information about boot validation see &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_secure_boot.html?cp=8_1_3_5_0_8_1#secure_boot_validation"&gt;here&lt;/a&gt;. Take notice that hash validation VALIDATE_ECDSA_P256_SHA256 is the most secure but also the most time costly, which will result in some delay before booting.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>