<?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>Firmware over the air - Produce hash calculation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115078/firmware-over-the-air---produce-hash-calculation</link><description>Hi all 
 How would I be able to generate and view the calculated hash that i get while using the dfu library? Is there an easy way. I&amp;#39;m hoping to generate one single hash after i do the the complete download which involved running dfu_write continsously</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Oct 2024 13:23:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115078/firmware-over-the-air---produce-hash-calculation" /><item><title>RE: Firmware over the air - Produce hash calculation</title><link>https://devzone.nordicsemi.com/thread/504536?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 13:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e62c7f29-6cd3-4b23-9bb4-30867b771b21</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi HKhan,&amp;nbsp;&lt;br /&gt;I can build (and run) the sha256 with no problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But from what I can see the Oberon driver is used in the sample. Is there any reason you don&amp;#39;t want to enable Oberon ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware over the air - Produce hash calculation</title><link>https://devzone.nordicsemi.com/thread/504513?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 11:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e323848-444d-4af8-a5cd-129ff6f45c74</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;It is essentially not a building issue as the program runs.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware over the air - Produce hash calculation</title><link>https://devzone.nordicsemi.com/thread/504511?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 11:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d77f3dce-f58f-42ae-b6e7-5fe71e5573ac</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi Hung&lt;/p&gt;
&lt;p&gt;Unfortunately we have custom board which uses the nrf9160.&amp;nbsp; Have you tried building the sha256 sample?&amp;nbsp; In my configuration i have this :&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_PSA_CRYPTO_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_ENABLE_HEAP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_HEAP_SIZE&lt;/span&gt;&lt;span&gt;=8192&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PSA_CRYPTO_DRIVER_OBERON&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PSA_CRYPTO_DRIVER_CC3XX&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;But im still getting the above error.&amp;nbsp; Do you any idea why this could be happening.&amp;nbsp; We are building this into the lwm2m sample.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware over the air - Produce hash calculation</title><link>https://devzone.nordicsemi.com/thread/504506?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 10:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db098233-aa34-4acf-b344-f414f88866bd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi HKhan,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Building an application on _ns non-secure board is the correct way of getting security, especially for PSA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please take a look here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-trusted-firmware-m-t-m"&gt;An Introduction to Trusted Firmware-M (TF-M)&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did a quick test here with a cryto sample (&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/crypto/rsa/README.html"&gt;rsa &lt;/a&gt;) and I don&amp;#39;t see a problem when building for nRF9160dk_nrf9160ns board.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware over the air - Produce hash calculation</title><link>https://devzone.nordicsemi.com/thread/504478?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 08:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a0f24c1-a3f1-4ee4-b447-41b0ad026461</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi Hung&lt;/p&gt;
&lt;p&gt;I&amp;#39;m&amp;nbsp; having trouble running crypto samples on our custom board that uses the nrf9160 chip.&amp;nbsp; The error i get when trying to use &amp;#39;psa_crypto_init&amp;#39; is &amp;quot;&amp;nbsp;Could not setup the hash operation! Error -134&amp;quot;&amp;nbsp; I&amp;#39;m assuming its because its not on the list of boards and because it is a non-secure version of the board.&amp;nbsp; Is there a way i can bypass this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware over the air - Produce hash calculation</title><link>https://devzone.nordicsemi.com/thread/504309?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 09:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63963b37-b457-4292-bffe-2cae7edcfca0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Hkhan,&amp;nbsp;&lt;br /&gt;I assume you are using the dfu libraries in nRF Connect SDK and the function you mentioned is dfu_target_write , not&amp;nbsp;&lt;span&gt;dfu_write ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am not so familiar with the dfu library but maybe you can refer to function get_has_from_flash() to get the hash value. You can see how it&amp;#39;s used to compare the actual calculated hash and the received hash on the manifest.&amp;nbsp;&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/dfu/fmfu_fdev/src/fmfu_fdev.c#L237"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/dfu/fmfu_fdev/src/fmfu_fdev.c#L237&lt;/a&gt;&lt;br /&gt;&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>