<?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>Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51692/is-there-a-way-to-disable-on-the-fly-encryption-and-decryption</link><description>Is there any configuration using which we can disable on-the-fly Encryption/Decryption of packets?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Sep 2019 13:28:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51692/is-there-a-way-to-disable-on-the-fly-encryption-and-decryption" /><item><title>RE: Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/thread/207706?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 13:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03bd1cd9-fe6e-4dc8-a4ed-302a85f01c9b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Ah, I finally get the question. No, that is not possible. The CCM module is not very flexible since it is specifically designed to work with the radio in BLE context. The decryption speed has to be one of the supported datarates.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/thread/207697?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 13:08:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca74ab8b-6e35-4813-ad6f-21bf41d4b12e</guid><dc:creator>Rohith PN</dc:creator><description>&lt;p&gt;Yes, I kind of got the idea regarding this.&lt;/p&gt;
&lt;p&gt;But, I am not using the on-the-fly decryption method. I am explicitly giving the Encrypted data as Input and waiting for the Decryption to complete and get the decrypted output. So, I would like to know if there is any configuration that can be used to get the decryption done in quickly like in the case of Encryption.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/thread/207693?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 13:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3deef218-2549-4b67-a42d-fc34575e40d2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is because since decryption happens on the fly as data flows in, it cannot be faster than the pace of the incoming data. So it is expected and correct that decryption takes 8 times longer when the rate is configured for&amp;nbsp;125 kbps (S=8) compared to using 1 Mbps. For encryption, it is different, since all data is present from the beginning of the operation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/thread/207667?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 11:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b70e3928-e7b3-4f59-b1a4-2ab25fe5bb1e</guid><dc:creator>Rohith PN</dc:creator><description>&lt;p&gt;Encrypting 27byte payload is taking 42us even in LR-C8.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/thread/207666?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 11:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4452b820-d76e-4df5-ac74-60ae7af12b12</guid><dc:creator>Rohith PN</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you. But I am not using SoftDevice.&lt;/p&gt;
&lt;p&gt;The problem I am facing when using the above mentioned method is that, the &amp;quot;EVENTS_ENDCRYPT&amp;quot; is coming after 40us when Encrypting which is fine. But when decrypting &amp;quot;EVENTS_ENDCRYPT&amp;quot; is getting set based on the payload length and the datarate.&lt;/p&gt;
&lt;p&gt;For Example, if the payload length is 27bytes, &amp;quot;EVENTS_ENDCRYPT&amp;quot; is getting set after 320us. But the same Event is getting set while Encrypting 27bytes payload after 40us in 1M PHY. The same is coming after 2.32ms for 27byte payload in LR-C8 while decrypting.&lt;/p&gt;
&lt;p&gt;I would like to reduce this latency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/thread/207660?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 11:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:486047a4-5831-4ef5-8737-fe9d97f86e14</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. This is not possible if you are using the SoftDevice (Nordic&amp;#39;s BLE stack).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/thread/207620?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 09:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfac0733-9e0a-433a-bb50-c67e58cfff33</guid><dc:creator>Rohith PN</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Using BLE Protocol.&lt;/p&gt;
&lt;p&gt;My question was w.r.t configuring on-the-fly encryption/decryption of the packets. i.e. I would like to feed the input to the CCM engine and get the Encrypted/Decrypted Payload as output instead of configuring the on-the-fly mode where PPI and Shorts are used to get the decrypted payload directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disable on-the-fly encryption and decryption?</title><link>https://devzone.nordicsemi.com/thread/207598?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 08:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233400fe-af7c-45a6-9bca-5f74ed957f71</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you be more specific? Which protocol are you using (BLE or something else?), and which stack, etc? And do you want to disable encryption/decryption in a non-standard way, for instance for some debugging, or do you just want to not encrypt the link?&lt;/p&gt;
&lt;p&gt;For instance with BLE, you do not have to encrypt the link, but depending on the configuration some characteristics may not be usable without it (the required security level is configured separately for each characteristic).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>