<?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>How to crosscheck if the firmware hash generated by hash function .</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72484/how-to-crosscheck-if-the-firmware-hash-generated-by-hash-function</link><description>Hello Everyone, I am generating firmware hash using an hash function provided by an external library and using CODE_START and CODE_SIZE macros in app_util.h , So i wanted to crosscheck if the hash generated is correct or not, Is there any external site</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Mar 2021 21:56:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72484/how-to-crosscheck-if-the-firmware-hash-generated-by-hash-function" /><item><title>RE: How to crosscheck if the firmware hash generated by hash function .</title><link>https://devzone.nordicsemi.com/thread/298522?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 21:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db2441d0-fbf8-459f-ac48-55c409cea54d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;you convert the application to a .bin file, you should be able to use any SHA256 Hash calculator for this task.&lt;/p&gt;
&lt;p&gt;You can convert using following command (given that application.hex is present in C:\FW\ directory):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-objcopy -I ihex C:\FW\application.hex -O binary C:\FW\application.bin&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I verified that the following &lt;a href="https://emn178.github.io/online-tools/sha256_checksum.html"&gt;online tool calculates&lt;/a&gt; the same hash as Notepad++ (Tools &amp;gt; SHA-256 &amp;gt; Generate from files):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sha256_5F00_online.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sha256_5F00_notepadpp.png" /&gt;&lt;/p&gt;
&lt;p&gt;I verified that nrf_crypto_hash produce the same hash:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sha256_5F00_nrfcrypto.png" /&gt;&lt;/p&gt;
&lt;p&gt;I will post the code I used for calculation in the &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72193/how-to-generate-firmware-s-hash"&gt;other thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>