<?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>How To Add AES128 bit encription in my Application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60190/how-to-add-aes128-bit-encription-in-my-application</link><description>Dear Nordic Team, 
 Thanks for supporting. 
 I want support for AES18bit Encription. Need basic tutorials and how to add my existing code.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 May 2020 07:24:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60190/how-to-add-aes128-bit-encription-in-my-application" /><item><title>RE: How To Add AES128 bit encription in my Application</title><link>https://devzone.nordicsemi.com/thread/249346?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 07:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d63d49b-8f4f-47e6-b729-aa80be352a44</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Murugan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Decimal 4352 is 0x1100. The following defines and reasoning for this error in&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fgroup___p_m___s_e_c___e_r_r_o_r_s.html&amp;amp;anchor=ga7e81205d3850287580bf418e578c331e"&gt;peer_manager_types.h&lt;/a&gt;&lt;span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define PM_CONN_SEC_ERROR_BASE 0x1000  /**&amp;lt; @brief The base for Peer Manager defined errors. See @ref PM_SEC_ERRORS and @ref pm_sec_error_code_t. */
#define PM_CONN_SEC_ERROR_DISCONNECT         (PM_CONN_SEC_ERROR_BASE + 0x100) /**&amp;lt; @brief Pairing or encryption did not finish before the link disconnected for an unrelated reason. */&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So it looks like the device disconnects before the pairing or encryption procedure completed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can you provide the full log output from the failing device? If you could set&amp;nbsp;NRF_LOG_DEFAULT_LEVEL to 4 in your sdk_config.h file, that should provide more details.&lt;/p&gt;
&lt;p&gt;What device are you testing against?&lt;/p&gt;
&lt;p&gt;Can you provide a sniffer trace between the two devices when trying to perform bonding? You can use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer/Download#infotabs"&gt;nRFSniffer v2&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for that.&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49894/peermanager-error-error-4352/202559#202559"&gt;thread &lt;/a&gt;might help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Add AES128 bit encription in my Application</title><link>https://devzone.nordicsemi.com/thread/249326?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 04:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fa3a2e2-f4fa-4ffd-b21e-a70c3a38216d</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Thanks for reply. I add AES128 encryption in my application (BLE_UART) both peripheral and central code. Peripheral side working good. But central side facing connection error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;0&amp;gt; &amp;lt;info&amp;gt; app: BLE UART central example started.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: C42CA8A1FD6A&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: ATT MTU exchange completed.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: Ble NUS max data length set to 0xF4(244)&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: Discovery complete.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: Connected to device with Nordic UART Service.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Bonding, error: 4352&lt;br /&gt; 0&amp;gt; &amp;lt;warning&amp;gt; peer_manager_handler: Disconnecting conn_handle 0.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: Disconnected.&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; app: Erase bonds&lt;br /&gt; 0&amp;gt; &amp;lt;info&amp;gt; peer_manager_handler: All peers deleted.&lt;br /&gt; 0&amp;gt; &amp;lt;error&amp;gt; app: Fatal error&lt;/p&gt;
&lt;p&gt;My SDK 15.2&lt;/p&gt;
&lt;p&gt;Example :&amp;nbsp;ble_app_uart_c and&amp;nbsp;ble_app_uart&amp;nbsp;&lt;/p&gt;
&lt;p&gt;please support solve this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Add AES128 bit encription in my Application</title><link>https://devzone.nordicsemi.com/thread/245441?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 08:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7445b552-6c0d-41cf-bf90-cd0e4a7be35b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]I want support for AES18bit Encription. Need basic tutorials and how to add my existing code.[/quote]
&lt;p&gt;Please see the&amp;nbsp;&lt;a title="AES Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf_crypto_aes_example.html?cp=7_1_4_3_0_1"&gt;AES Example&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;span&gt;If you want to encrypt advertisement data you need to do that in your application. Something like this might do the trick:&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/13429/aes-encryption-with-sd"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/13429/aes-encryption-with-sd&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Add AES128 bit encription in my Application</title><link>https://devzone.nordicsemi.com/thread/244579?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 03:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8598f0c7-231a-42b8-b16d-d8aba6df490e</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;This encryption is also affect advertising data ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Add AES128 bit encription in my Application</title><link>https://devzone.nordicsemi.com/thread/244578?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 03:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d36b40-e4b1-4edd-b02c-5d4fd4fd41b0</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Thanks for reply. I will check and update you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Add AES128 bit encription in my Application</title><link>https://devzone.nordicsemi.com/thread/244577?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 03:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d4671ca-c17f-4162-aa6f-d8336d521212</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;you can use the crypto library.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://jimmywongiot.com/2019/07/30/how-to-use-the-ecdh-and-aes128-for-the-data-encryption/"&gt;https://jimmywongiot.com/2019/07/30/how-to-use-the-ecdh-and-aes128-for-the-data-encryption/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;or the SDK 16.0 examples&lt;/p&gt;
&lt;p&gt;examples\crypto\nrf_crypto\aes\aes_all_cli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>