<?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>MCUBoot - Firmware signature looks different at each build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105006/mcuboot---firmware-signature-looks-different-at-each-build</link><description>Hi, 
 We are developing on an NRF9160 using the NRF Connect SDK v1.6.1. (The project started two years earlier). We have set up a CI to ensure the integrity of the generated firmwares. 
 We use MCUBoot (v1.7.99) as a bootloader and we noticed that two</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Oct 2023 13:17:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105006/mcuboot---firmware-signature-looks-different-at-each-build" /><item><title>RE: MCUBoot - Firmware signature looks different at each build</title><link>https://devzone.nordicsemi.com/thread/452797?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 13:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f1b132f-7619-4011-b1a5-30b6adbe0b0b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Good to hear it works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot - Firmware signature looks different at each build</title><link>https://devzone.nordicsemi.com/thread/452706?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 06:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9b2858d-9bcf-4992-86ae-aa596ffec841</guid><dc:creator>Benjamin V.</dc:creator><description>&lt;p&gt;Thank you for your response and promptness.&lt;/p&gt;
&lt;p&gt;Indeed, what you said makes sense.&lt;/p&gt;
&lt;p&gt;I just checked the &lt;code&gt;app_to_sign.bin&lt;/code&gt; files and they are indeed identical.&lt;/p&gt;
&lt;p&gt;I just ran &lt;code&gt;imgtool verify --key &amp;lt;key.pem&amp;gt; app_update.bin&lt;/code&gt; on my two builds and both returned the same thing.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;imgtool verify --key &amp;lt;key.pem&amp;gt; build/zephyr/app_update.bin
Image was correctly validated
Image version: 1.12.0+0
Image digest: 8f1d53663ec5c[...]836fb96bfc&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks again and have a great day,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot - Firmware signature looks different at each build</title><link>https://devzone.nordicsemi.com/thread/452612?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 13:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cbaacfb-e427-4dac-9f3d-467535d086ad</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The signature schemes are non-deterministic, so this is to be expected.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Given the signature is non-deterministic, one way to ensure two builds have created the same firmware is to do these two steps:&lt;/p&gt;
&lt;p&gt;1. strip the signature and hash before comparing the firmware itself.&lt;/p&gt;
&lt;p&gt;2. use the &lt;code&gt;imgtool verify&lt;/code&gt; command to check that the signature of both images can be verified with the same key.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot - Firmware signature looks different at each build</title><link>https://devzone.nordicsemi.com/thread/452421?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 06:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f70652c3-9682-4190-b4e9-b15a4f5273f5</guid><dc:creator>Benjamin V.</dc:creator><description>&lt;p&gt;Thanks for your&amp;nbsp;investigations on my issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot - Firmware signature looks different at each build</title><link>https://devzone.nordicsemi.com/thread/452365?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 19:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a9bf80-3019-4abd-8831-7958ed517439</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am working on this case and will update it later.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>