<?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>Application file encryption (.bin)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25371/application-file-encryption-bin</link><description>Hello we would like to upload to the cloud the nrfutil generated zip package, however we are worried about the application file security.
As far as we know, nrfutils takes the unencrypted .hex file and generates signature in order to make a security</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Sep 2017 08:24:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25371/application-file-encryption-bin" /><item><title>RE: Application file encryption (.bin)</title><link>https://devzone.nordicsemi.com/thread/99987?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 08:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46468575-5307-4307-9c65-74adf7411cd1</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@nicolagallazzi: If you&amp;#39;re concerned with the efficiency, then you could as Emil suggests, use the ECB-AES peripheral in CTR mode to encrypt the firmware. See &lt;a href="https://devzone.nordicsemi.com/blogs/721/intro-to-application-level-security-using-the-ecb-/"&gt;this&lt;/a&gt; blog post for an example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application file encryption (.bin)</title><link>https://devzone.nordicsemi.com/thread/99984?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 12:37:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6cf5354-7176-47f6-898c-55eadfd511d8</guid><dc:creator>Nicola Gallazzi</dc:creator><description>&lt;p&gt;Thanks again Bjorn, I&amp;#39;ve updated my question with more details&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application file encryption (.bin)</title><link>https://devzone.nordicsemi.com/thread/99986?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 10:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4bb3dfb-5400-4604-8604-2aaa8700e746</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;YEs, micro-ecc is good choice as we already use that library in the SDK, we provide an abstraction called nrf_crypto, see &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/lib_crypto.html"&gt;this&lt;/a&gt; Infocenter page for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application file encryption (.bin)</title><link>https://devzone.nordicsemi.com/thread/99985?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 09:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2778085-ebac-4dcb-899e-f679da58ac01</guid><dc:creator>Nicola Gallazzi</dc:creator><description>&lt;p&gt;Thanks a lot Bjorn,&lt;/p&gt;
&lt;p&gt;do you suggest a way to encrypt the application file in order to easily decrypt it on the firmware side? A symmetric algorithm would be a good choice? We read something about MicroEcc, could it possibly be a valuable choice?&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Nicola Gallazzi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application file encryption (.bin)</title><link>https://devzone.nordicsemi.com/thread/99983?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 09:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:188dad69-68d7-48de-9d14-1a4c56f77709</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Nicola,&lt;/p&gt;
&lt;p&gt;you are correct, nrfutil will only sign the firmware image using the provided private key so that autenticity of the firmware image can be verified on the nRF side using the corresponding public key.&lt;/p&gt;
&lt;p&gt;The conversion of the application .hex file to a .bin file does not contain any encryption procedure, i.e. the .bin file will be unencrypted.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>