<?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>signature verification of application during secure boot and check condition to jump to DFU or application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82071/signature-verification-of-application-during-secure-boot-and-check-condition-to-jump-to-dfu-or-application</link><description>Hi guys, 
 
 i am using nrf52840 controller. 
 and in that i have mbe at 0x0000000 location. 
 i have two bootloader stage. that boot1 and boot 2. 
 boot 1 i am using to validate the bootloader 2 using signature verfication. 
 and once control reached</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Nov 2021 10:41:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82071/signature-verification-of-application-during-secure-boot-and-check-condition-to-jump-to-dfu-or-application" /><item><title>RE: signature verification of application during secure boot and check condition to jump to DFU or application</title><link>https://devzone.nordicsemi.com/thread/340877?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 10:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15cc2b50-221b-4049-a945-22c13f0c1147</guid><dc:creator>R_S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No that part i have not tested with my key and signature. because previously i faced some issue while using &amp;quot;nrf_crypto_ecdsa_verify&amp;quot; this API for verification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that i contact with nordic team they suggest me to use &amp;quot;nrf_dfu_validation_signature_check&amp;quot; this one. but now i have issue with my hardware , it went bad. hopefully today will receive new hardware and then i will perform DFU operation using my public key and signature .&lt;/p&gt;
&lt;p&gt;i have one more doubt but before that i want to test it on the hardware.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Rohit Saini&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: signature verification of application during secure boot and check condition to jump to DFU or application</title><link>https://devzone.nordicsemi.com/thread/340864?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 09:57:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:320b669b-efe0-4d2f-8a63-66973eaee5b0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, this is the location of where the application signature is stored in the settings page and it must be little-endian (see &lt;span class="item"&gt;&lt;a class="" title="Working with keys" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_keys.html?cp=8_1_3_5_1_3"&gt;Working with keys&lt;/a&gt;&lt;/span&gt;). This is the same kind of signature used for the DFU init command. Have you been able to perform DFU with your key-pair? In that case, do you use nrfutil to generate the DFU package?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: signature verification of application during secure boot and check condition to jump to DFU or application</title><link>https://devzone.nordicsemi.com/thread/340861?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 09:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e1eb565-cc87-4a24-b462-30eca5296aab</guid><dc:creator>R_S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes i am&amp;nbsp;generating my own signature using private key.&lt;/p&gt;
&lt;p&gt;but to keep in the setting page part is bit confusing for me.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1637919784421v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;is this the location of signature for app in setting page or its a location for app.&lt;/p&gt;
&lt;p&gt;and if its for signature then directly we can load that signature value in it. or something else need to be specified there.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1637919941077v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And Signature should be kept in little endian format only..?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: signature verification of application during secure boot and check condition to jump to DFU or application</title><link>https://devzone.nordicsemi.com/thread/340836?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 08:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcdaca1a-a999-4eb4-8104-d0e7cb32fa01</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, unless you have modified the bootloader, the boot validation signature for your application must be generated with your private key and placed in the settings page.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/structnrf__dfu__settings__t.html"&gt;nrf_dfu_settings_t&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637916181240v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="R_S"]I am also using my own private key not the one which there in example code.[/quote]
&lt;p&gt;I forgot to point to the key file in my example. I have updated it now.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: signature verification of application during secure boot and check condition to jump to DFU or application</title><link>https://devzone.nordicsemi.com/thread/340818?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 04:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ea379c5-6789-4064-b3bc-43d33fa51310</guid><dc:creator>R_S</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;--app-boot-validation VALIDATE_ECDSA_P256_SHA256.&lt;br /&gt;this part i didn&amp;#39;t include while generating settings.hex.&lt;/p&gt;
&lt;p&gt;But is it necessary to include this,&amp;nbsp;because i have my own signature which i get from the externally signed from the server.&lt;/p&gt;
&lt;p&gt;I am also using my own private key not the one which there in example code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Rohit saini&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: signature verification of application during secure boot and check condition to jump to DFU or application</title><link>https://devzone.nordicsemi.com/thread/340724?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 12:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eb4c5a2-a305-47ab-81f8-c9bf0f553b52</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When &lt;span&gt;&lt;a title="Generating and displaying bootloader settings" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=10_7_6"&gt;Generating bootloader settings&lt;/a&gt; it&amp;#39;s important that you specify the mode so that the app signature gets included. Did you do this already?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5516.pastedimage1637841031041v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Generating bootloader settings page with app signature validation:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="bat"&gt;nrfutil settings generate --family NRF52^
 --application application.hex^
 --application-version-string &amp;quot;1.0.0&amp;quot;^
 --bootloader-version 1^
 --bl-settings-version 2^
 --app-boot-validation VALIDATE_ECDSA_P256_SHA256^
 --key-file &amp;lt;path to key file&amp;gt;^
 settings.hex&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>