<?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 can I encrypt and decrypt data in CBC mode with nRF51822 ？</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29964/how-can-i-encrypt-and-decrypt-data-in-cbc-mode-with-nrf51822</link><description>As the title，I want to encrypted and decrypt data in CBC mode with nRF51822，S110，the version of SoftDevice is v8.0。can anyone provide an example or demo code？ thanks ！</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jan 2018 06:19:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29964/how-can-i-encrypt-and-decrypt-data-in-cbc-mode-with-nrf51822" /><item><title>RE: How can I encrypt and decrypt data in CBC mode with nRF51822 ？</title><link>https://devzone.nordicsemi.com/thread/119155?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 06:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4909f7a5-86bf-4296-954e-80e56f5f5144</guid><dc:creator>LIANGTAO</dc:creator><description>&lt;p&gt;thank you，the problem has been solved。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I encrypt and decrypt data in CBC mode with nRF51822 ？</title><link>https://devzone.nordicsemi.com/thread/119157?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 06:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e762f320-123e-4a05-8234-e5d1ffb4d48a</guid><dc:creator>LIANGTAO</dc:creator><description>&lt;p&gt;Thank you very much！&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I encrypt and decrypt data in CBC mode with nRF51822 ？</title><link>https://devzone.nordicsemi.com/thread/119156?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 13:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1a98ed0-4c6d-417d-bed0-8ed172df2dfb</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In SDK 12.3 under location: nRF5_SDK_12.3.0_d7731ad\external\tiny-AES128 there are available software implementation for AES ECB and AES CBC.&lt;/p&gt;
&lt;p&gt;If you are using older SDK you can simply download SDK12.3 and integrate tiny-AES128 library from it.&lt;/p&gt;
&lt;p&gt;What I see usage is pretty easy, you are only interested in these 2 functions:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void AES128_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
void AES128_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I encrypt and decrypt data in CBC mode with nRF51822 ？</title><link>https://devzone.nordicsemi.com/thread/119154?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 11:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d4751b-2253-4e92-a15e-92196e8bc24c</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not currently have any examples for AES-CBC.&lt;/p&gt;
&lt;p&gt;We will have some more examples in the upcoming nRF5 SDK v15 but this will only support nRF52x devices out-of-the-box.&lt;/p&gt;
&lt;p&gt;You should be able to study these examples and with a little effort modify them to work in your project.&lt;/p&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>