<?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>Using HW AES CCM module with zephyr OS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61053/using-hw-aes-ccm-module-with-zephyr-os</link><description>Hi, 
 
 I am experimenting with zephyr OS on my nrf52 DK. I want to use the HW AES CCM encryption module available on the board, but I can&amp;#39;t figure out how to do this with zephyr. In my mind, there should be crypto functions which are performed in HW</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 May 2020 15:01:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61053/using-hw-aes-ccm-module-with-zephyr-os" /><item><title>RE: Using HW AES CCM module with zephyr OS</title><link>https://devzone.nordicsemi.com/thread/248527?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 15:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a99855df-164d-4a44-99e1-662b9e98ed8c</guid><dc:creator>NewUser5340</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thank you for your quick reply. I am not using it for Bluetooth communication, so this shouldn&amp;#39;t be the problem.&amp;nbsp;I want to build an application with zephyr, which I can easily run on multiple architectures without changing the code. I am using SW crypto libraries right now, but would of course like to use HW accelerators, if they are available. But it looks like this is not yet possible with zephyr, so I will either stick to SW crypto or write a crypto wrapper for every device I use with the architecture specific calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using HW AES CCM module with zephyr OS</title><link>https://devzone.nordicsemi.com/thread/248477?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 13:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a896460-0a44-415b-8398-034cb63cb9da</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The AES CCM peripheral is used for encrypting/decrypting Bluetooth traffic, so if you have a Bluetooth application then using it for other purposes may not be straight forward. Also, since it was designed for a single purpose, it is not very flexible. If you don&amp;#39;t use it for Bluetooth or anything else, then you can use it in the same way as you do in the nRF5 SDK (without SoftDevice), by accessing the registers as &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ccm.html?cp=4_2_0_28#topic"&gt;described in the product specification&lt;/a&gt;. I suggest you look at the HAL (&lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/hal/nrf_ccm.h"&gt;nrf_ccm.h&lt;/a&gt;) and use that. You can refer to Zephyr BLE LL HAL for Nordic for an example of how it is used there (&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c"&gt;radio.c&lt;/a&gt;).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>