<?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>Encrypting packets on-the-fly when MODE.LENGTH = Extended</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84754/encrypting-packets-on-the-fly-when-mode-length-extended</link><description>Hello ! 
 In PS1.7 chapter 6.4.5 Encrypting packets on-the-fly in radio transmit mode is explained encryption of a short packets (MODE.LENGTH = Default). 
 
 But when MODE.LENGTH = Extended is only clear &amp;quot;the keystream generation needs to start earlier</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Feb 2022 09:23:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84754/encrypting-packets-on-the-fly-when-mode-length-extended" /><item><title>RE: Encrypting packets on-the-fly when MODE.LENGTH = Extended</title><link>https://devzone.nordicsemi.com/thread/353293?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3e96391-c8ff-4a7e-9c90-24b1fc0e4d74</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi !&lt;/p&gt;
&lt;p&gt;There I found some exact settings of MAXPACKET size :&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645003145636v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Should MAXPACKET size be so exact&amp;nbsp; in case of RX/TX ?&lt;/p&gt;
&lt;p&gt;Can I set to max value 251 always ?&lt;/p&gt;
&lt;p&gt;Or it have some effect for encrypt/decrypt process ?&lt;/p&gt;
&lt;p&gt;I think only LENGTH of packet is in use.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypting packets on-the-fly when MODE.LENGTH = Extended</title><link>https://devzone.nordicsemi.com/thread/353277?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 08:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:611052fa-49c3-40bb-91b4-3c575cd50503</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Maybe it would be helpful to take a look at how it&amp;#39;s done in the Zephyr Bluetooth Controller.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.7.1/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c#L1335"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.7.1/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c#L1335&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.7.1/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c#L1380"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.7.1/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c#L1380&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypting packets on-the-fly when MODE.LENGTH = Extended</title><link>https://devzone.nordicsemi.com/thread/353189?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 18:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddf9d1f7-24f6-43eb-9bf4-8ae2c56d577d</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi !&lt;/p&gt;
&lt;p&gt;Looks like in case of decryption, the same channel should be used and no need nothing else&lt;/p&gt;
&lt;p&gt;if&amp;nbsp;&lt;span&gt;NRF_CCM&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;TASKS_KSGEN&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;; is enabled beforehand&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;NRF_PPI&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;CHEN&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|=&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;UL&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span&gt; NRF_PPI_CHANNEL25);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is this so ?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Can KSGEN be&amp;nbsp; triggered&amp;nbsp;even before than&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;TASKS_TXEN/RXEN tasks ?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Or better to start it synchronously with TXEN/RXEN ? Or attach to other radio events ?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I have done KSGEN beforehand but looks like something wrong and encrypted data are not decrypted properly on RX side.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;What about RFU byte ( S1) ? Looks like&amp;nbsp; if on-fly mode is enabled, it must be present.&lt;/div&gt;
&lt;div&gt;S1LEN and S1INC in PCFN0 should be &amp;gt; 0&lt;/div&gt;
&lt;div&gt;Is this so ?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;/div&gt;
&lt;div&gt;Eugene&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypting packets on-the-fly when MODE.LENGTH = Extended</title><link>https://devzone.nordicsemi.com/thread/353142?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 14:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87f05e3a-2f5f-4f60-9808-1b6fc2aa9b18</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]RADIO-&amp;gt;EVENTS_ADDRESS -&amp;gt; CCM-&amp;gt;TASKS_CRYPT ?[/quote]
&lt;p&gt;Correct, PPI channel 25 is already pre-programmed with this connection.&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ppi.html?cp=4_0_0_5_15_0#preprogrammed_channels"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/ppi.html?cp=4_0_0_5_15_0#preprogrammed_channels&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>