<?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>Simple AES ECB test</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111925/simple-aes-ecb-test</link><description>I&amp;#39;m trying to integrate AES-128 (ECB mode) decryption into my project 
 I&amp;#39;ve based it on the AES_CBC sample, and adapted it to use ECB mode instead of CBC. When I compile and run from this sample, the code works 
 When I try and import the same code into</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2024 12:23:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111925/simple-aes-ecb-test" /><item><title>RE: Simple AES ECB test</title><link>https://devzone.nordicsemi.com/thread/488131?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 12:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e882cfc0-4f82-4b8c-9a09-9838372d03dd</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]When I try and import the same code into a blank application, I get a -134 error when I try to import a key - &lt;span&gt;psa_import_key(&lt;/span&gt;)[/quote]
&lt;p&gt;Try to copy the boards files config&amp;#39;s&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.6.1/samples/crypto/aes_cbc/boards"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v2.6.1/samples/crypto/aes_cbc/boards&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and prj.conf as well&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/samples/crypto/aes_cbc/prj.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/samples/crypto/aes_cbc/prj.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>