<?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>Struggling with crypto examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63573/struggling-with-crypto-examples</link><description>Hi, 
 I&amp;#39;m trying to familiarise myself with the available crypto functionality on the 52811 and have managed to get basic AES-128 block encryption working using the ECB peripheral. So far so good, but as I can&amp;#39;t do decryption using the ECB, I now need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jul 2020 10:45:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63573/struggling-with-crypto-examples" /><item><title>RE: Struggling with crypto examples</title><link>https://devzone.nordicsemi.com/thread/259666?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 10:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:472362e3-61da-4911-b00e-fabc7222828a</guid><dc:creator>Pete W</dc:creator><description>&lt;p&gt;Thanks for the reply. I&amp;#39;ve managed to get the CCM module working and have been able to test encryption/decryption with this, which was all I was looking for at this point. I thought there would be some simple examples for the ECB and CCM peripherals (without using backends) but there doesn&amp;#39;t seem to be, but I found the one that&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn did a few years, ago, which really helped.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Pete&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Struggling with crypto examples</title><link>https://devzone.nordicsemi.com/thread/259450?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 12:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6ae6e44-a4f0-4f0c-aee8-efff193b9b47</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;/p&gt;
[quote user=""] I keep getting an error about the external micro_ecc_lib_nrf52.a&amp;nbsp; not being found. I&amp;#39;m guessing I have to build this, but this doesn&amp;#39;t seem to be stated anywhere - the instructions for the examples are &amp;#39;compile and program&amp;#39;.[/quote]
&lt;p&gt;&amp;nbsp;Please see the&amp;nbsp;&lt;a title="Installing micro-ecc" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_crypto_backend_micro_ecc.html?cp=7_1_3_11_16_2_2#lib_crypto_backend_micro_ecc_install"&gt;Installing micro-ecc&lt;/a&gt;&amp;nbsp;documentation.&amp;nbsp;&lt;/p&gt;
[quote user=""]1. Why is decryption functionality not included in the ECB?[/quote]
&lt;p&gt;&amp;nbsp;Please see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/5048/nrf51422-aes-app-mode-with-soft-module-s110"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2. The crypto examples seem to pull in every possible backend and an inordinate number of extra files. I don&amp;#39;t know where to start to add basic encryption &amp;amp; decryption to my project. Is there any guidance for getting a basic AES decryption working?[/quote]
&lt;p&gt;&amp;nbsp;Please see&amp;nbsp;&lt;a title="AES Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/nrf_crypto_aes_example.html?cp=7_1_4_3_0_1"&gt;AES Example&lt;/a&gt;&amp;nbsp;and its sdk_config.h.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]3. Am I correct in thinking that there is no driver for the CCM? I can only see the HAL file and the libraries.[/quote]
&lt;p&gt;&amp;nbsp;Yes, only the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/group__nrf__ccm__hal.html"&gt;AES CCM HAL&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]3. Do I need to build all external backends, and if so why?[/quote]
&lt;p&gt;&amp;nbsp;No, see the&amp;nbsp;&lt;a title="Configuring nrf_crypto frontend and backends" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_crypto_config.html?cp=7_1_3_11_14"&gt;Configuring nrf_crypto frontend and backends&lt;/a&gt;&amp;nbsp;documentation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The support staff is reduced during the summer holidays, and you may experience delayed answers.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>