<?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>NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96533/nrf52810-exception-using-aes-ecb-on-sdk16</link><description>Hi， 
 I ported examples\crypto\nrf_crypto\aes\aes_all_cli on the NRF52810 project ECB encrypts related files. During the test, it was found that the NRF52810 project would make calculation errors during the encryption operation. 
 When I switch to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Feb 2023 03:15:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96533/nrf52810-exception-using-aes-ecb-on-sdk16" /><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/410504?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 03:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa3f2a22-7a17-4665-b22c-af9b286e4c53</guid><dc:creator>Zhang|</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span class="tgt color_text_0" data-section="0" data-sentence="0" data-group="0-0"&gt;I can successfully complete the encryption and decryption by using the nRF52810 project you gave me.&lt;/span&gt;&lt;span class="tgt color_text_0" data-section="0" data-sentence="1" data-group="0-1"&gt; Thank you very much!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/410493?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 01:10:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d90b664-bea7-4441-8fd8-b9ecb8f88575</guid><dc:creator>Zhang|</dc:creator><description>&lt;p class="tgt color_text_0 un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_0" data-section="0" data-sentence="0" data-group="0-0"&gt;Hi, &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="1"&gt;&lt;span class="tgt color_text_0" data-section="1" data-sentence="0" data-group="1-0"&gt;I&amp;#39;ll give it a try.&lt;/span&gt;&lt;span class="tgt color_text_0" data-section="1" data-sentence="1" data-group="1-1"&gt; Thank you for your help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/410350?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 12:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860ce06e-156c-41bc-af74-e7c1d7cbf51d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not managed to reproduce this here. I used the same example from nRF5 SDK 17.1.0 and made a new project configuration to run on the nRF52810. This configuration is included below. Can you try it and see if you get the same result?&lt;/p&gt;
&lt;p&gt;Project to be copied to &lt;span&gt;\crypto\nrf_crypto\aes\aes_all_cli&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7506.pca10040e.zip"&gt;devzone.nordicsemi.com/.../7506.pca10040e.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Result when tested on a 52810:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1676551968369v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/410206?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 01:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51a3e76f-7831-4015-adb0-190844f07e2d</guid><dc:creator>Zhang|</dc:creator><description>&lt;p class="tgt color_text_0 un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_0" data-section="0" data-sentence="0" data-group="0-0"&gt;Hi，&lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_0" data-section="0" data-sentence="0" data-group="0-0"&gt;I tried to change the stack size to 8K, but it didn&amp;#39;t work and was still decrypting errors when actually using it. &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="1"&gt;&lt;span class="tgt color_text_0" data-section="1" data-sentence="0" data-group="1-0"&gt;As for the hardware ECB, I tried it, but it didn&amp;#39;t seem to work, and the main thing I needed was decryption, encryption just to verify the decryption was correct. &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="2"&gt;&lt;span class="tgt color_text_0" data-section="2" data-sentence="0" data-group="2-0"&gt;So back to the original question, why did 52810 have a calculation error in the process of encryption and decryption?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/409579?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 12:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bd7b26f-6774-4e76-8c84-f77d7030a018</guid><dc:creator>Zhang|</dc:creator><description>&lt;p class="tgt color_text_0 un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_0" data-section="0" data-sentence="0" data-group="0-0"&gt;Hello &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="1"&gt;&lt;span class="tgt color_text_0" data-section="1" data-sentence="0" data-group="1-0"&gt;Thank you very much for your answer. I will try it through the method you provided. &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="2"&gt;&lt;span class="tgt color_text_0" data-section="2" data-sentence="0" data-group="2-0"&gt;I&amp;#39;ll start by looking at the hardware ECB encryption.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/409577?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 12:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95398372-cbdc-48c2-9856-bf3c3037965d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try to increase your call stack size to see if it makes any difference. The call stack is 8K on the 52832 by default, while it is only 2kB on the 52810.&amp;nbsp;&lt;/p&gt;
[quote user="ZhangMM"]I don&amp;#39;t know how to use the hardware encryption method you mentioned.[/quote]
&lt;p&gt;The&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52810/ecb.html?cp=5_5_0_5_5"&gt;ECB — AES electronic codebook mode encryption&lt;/a&gt;&amp;nbsp;peripheral supports HW accelerated encryption, but not decryption.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/409574?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 12:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a85df1a-b5af-4fc9-9ff3-50656b8bb783</guid><dc:creator>Zhang|</dc:creator><description>&lt;p class="tgt color_text_0 un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_0" data-section="0" data-sentence="0" data-group="0-0"&gt;My original goal was to decrypt it with Android software. &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="1"&gt;&lt;span class="tgt color_text_0" data-section="1" data-sentence="0" data-group="1-0"&gt;Since we do not know much about AES of NRF52810, we will use examples\crypto\nrf_crypto\aes\aes_all_cli routine to learn. &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="2"&gt;&lt;span class="tgt color_text_0" data-section="2" data-sentence="0" data-group="2-0"&gt;I don&amp;#39;t know how to use the hardware encryption method you mentioned.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/409548?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 11:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b10c97da-a203-4c63-8374-778f9f1552c8</guid><dc:creator>Emil Lenngren</dc:creator><description>&lt;p&gt;Any reason you are doing everything entirely in software instead of using the hardware ECB peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/409479?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 03:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a78c0f9c-b29f-4661-8102-04f6f5418b8e</guid><dc:creator>Zhang|</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried to use 17.1.0, but the experimental result is the same as that of v16, 52832 platform is normal, 52810 platform has problems.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/409467?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 01:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b26ce2a-6f2b-440d-b2e4-5335b8c166b9</guid><dc:creator>Zhang|</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="0"&gt;&lt;span class="tgt color_text_0" data-section="0" data-sentence="0" data-group="0-0"&gt;Thank you very much for your answer. I will try to use v17.1.0. &lt;/span&gt;&lt;/p&gt;
&lt;p class="tgt color_text_0 un-step-trans" data-section="1"&gt;&lt;span class="tgt color_text_0" data-section="1" data-sentence="0" data-group="1-0"&gt;However, why does SDK V16 have such problems? Because all our projects use v16, it may not be convenient to modify it into v17.1.0. Therefore, I need to find out the cause of such problems.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 Exception using AES ECB on SDK16</title><link>https://devzone.nordicsemi.com/thread/409335?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 12:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa73c60-9a81-4582-9892-d220c1176068</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you see the same behavior if you try nRF5 SDK v17.1.0?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>