<?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>Manufacturer data encryption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5594/manufacturer-data-encryption</link><description>Hi, 
 I am using the sofdevice s110. I want to encrypt my manufacturer_data. However , the type of the advertising is BLE_GAP_ADV_TYPE_ADV_NONCONN_IND.
I tried : nrf_ecb_init() and nrf_ecb_crypt(dest_buf,src_buf), it is not working. 
 
 
 I cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Feb 2015 11:56:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5594/manufacturer-data-encryption" /><item><title>RE: Manufacturer data encryption</title><link>https://devzone.nordicsemi.com/thread/19599?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2015 11:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3be0078-4649-41ec-ae1a-226efd152817</guid><dc:creator>ting&amp;#178;</dc:creator><description>&lt;p&gt;thank you! It is working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manufacturer data encryption</title><link>https://devzone.nordicsemi.com/thread/19598?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2015 15:14:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad978de-0358-4be6-8acd-41bd94279455</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;That is correct. The module is restricted and must be accessed through the SoftDevice.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You should use the function &lt;em&gt;sd_ecb_block_encrypt()&lt;/em&gt; instead. It takes a &lt;em&gt;nrf_ecb_hal_data_t&lt;/em&gt; which contains a cleartext and encryption key field used an inputs. The encrypted data will be stored in the ciphertext field.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>