<?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>Advertisement and encryption performance</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16795/advertisement-and-encryption-performance</link><description>I am developing an advertise only code. 
 
 
 There is PERIPHERAL_LINK_COUNT macro in ble_app_template that is used by the softdevice to reserve RAM for peripheral link. Since, I only want to advertise, not connect to any central, can I set PERIPHERAL_LINK_COUNT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Oct 2016 10:33:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16795/advertisement-and-encryption-performance" /><item><title>RE: Advertisement and encryption performance</title><link>https://devzone.nordicsemi.com/thread/64266?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2016 10:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93708fd-c061-4e0a-97fe-957058ded8f2</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Recommend to take a look at this blogpost: &lt;a href="https://devzone.nordicsemi.com/blogs/721/intro-to-application-level-security-using-the-ecb-/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement and encryption performance</title><link>https://devzone.nordicsemi.com/thread/64269?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2016 13:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd42dc2b-9492-4818-af32-82780f678f3c</guid><dc:creator>Amit Chahar</dc:creator><description>&lt;p&gt;sd_ecb_block_encrypt() uses aes-ecb but I want aes-ccm. Using aes-ccm hardware will be more efficient instead of implementing it in software.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement and encryption performance</title><link>https://devzone.nordicsemi.com/thread/64268?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2016 12:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7005b90-841e-4ea6-be26-1d9dc074baaf</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Does sd_ecb_block_encrypt() not do what you want?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement and encryption performance</title><link>https://devzone.nordicsemi.com/thread/64267?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2016 12:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe74a430-bfc3-4079-95c7-8f88568e6b66</guid><dc:creator>Amit Chahar</dc:creator><description>&lt;p&gt;Regarding 4th point.
But How can I use aes-ccm peripheral without using timeslot api, since aes-ccm peripheral is restricted by softdevice ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement and encryption performance</title><link>https://devzone.nordicsemi.com/thread/64265?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2016 11:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1350c562-1bd8-4a9a-982d-27de3363b0df</guid><dc:creator>RK</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;if you get an error - set it to 1, you don&amp;#39;t really care anyway, it&amp;#39;s just a little bit of RAM (I would expect zero to work however)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;using the softdevice is going to be much much much much easier, so unless you are totally resource constrained for some reason, use the softdevice.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It&amp;#39;s possible to encrypt the payload data, obviously the actual packet itself is unencrypted, that&amp;#39;s the BTLE standard.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You don&amp;#39;t need to encrypt with the timeslot API, you can just encrypt and then set the advertising data into the packet. So I would start with softdevice and just encrypting the payload before setting it. If that doesn&amp;#39;t perform well enough then start optimising then.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>