<?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>Bluetooth Firmware AES implementation and replacement possibility</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117562/bluetooth-firmware-aes-implementation-and-replacement-possibility</link><description>Hello, 
 In regards to the nRF Connect SDK... 
 I am looking into the possibility of switching out the current implementation of AES used by the Bluetooth firmware. I am curious if my initial impressions/intuition of where this would be done is correct</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Dec 2024 21:24:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117562/bluetooth-firmware-aes-implementation-and-replacement-possibility" /><item><title>RE: Bluetooth Firmware AES implementation and replacement possibility</title><link>https://devzone.nordicsemi.com/thread/516233?ContentTypeID=1</link><pubDate>Tue, 24 Dec 2024 21:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57dab0c6-6b3b-4c62-b83c-86f4fb608122</guid><dc:creator>Emil Lenngren</dc:creator><description>&lt;p&gt;The ECB functions are used for more infrequent operations, such as in the pairing protocol (SMP) as well as when the session key for the link layer encryption setup is derived (typically at the beginning of encrypted connection setup).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Firmware AES implementation and replacement possibility</title><link>https://devzone.nordicsemi.com/thread/516232?ContentTypeID=1</link><pubDate>Tue, 24 Dec 2024 21:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e82a7111-db8f-42c7-b215-d06832bb55c8</guid><dc:creator>night1rider</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am just simply researching the potential of doing such a thing, whether or not it is practical is not for me to determine currently.&lt;/p&gt;
&lt;p&gt;From my understanding you are saying that upon a request to send, the packet I send is automatically encrypted via the AES-CCM hardware component as described in this &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52810/page/ccm.html#ariaid-title6"&gt;section&lt;/a&gt; as &amp;quot;On the Fly&amp;quot;.&lt;/p&gt;
&lt;p&gt;It does look possible to disable that hardware component.&lt;/p&gt;
&lt;p&gt;Thank you for this information!&lt;/p&gt;
&lt;p&gt;Do you happen to know what the ECB functions in crypto.c are used for specifically?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Firmware AES implementation and replacement possibility</title><link>https://devzone.nordicsemi.com/thread/516231?ContentTypeID=1</link><pubDate>Tue, 24 Dec 2024 20:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9754a5b-49f3-41a6-997e-2c040007ef6d</guid><dc:creator>Emil Lenngren</dc:creator><description>&lt;p&gt;Why would you want to do that? The AES implementation in MPSL uses the ECB hardware peripheral. MPSL&amp;#39;s job is to make sure that the hardware resources are not used by several pieces of code at the same time.&lt;/p&gt;
&lt;p&gt;A custom software replacement would possibly be too slow so it&amp;#39;s nothing I would recommend.&lt;/p&gt;
&lt;p&gt;Note that the normal Link Layer encryption (encryption of radio packets) is performed by the CCM peripheral in sync with receiving/sending radio packets on the air, initiated by the hardware automatically using PPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>