<?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>Can&amp;#39;t see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102685/can-t-see-aes-cbc-no-padding-2nd-test-log-messages</link><description>I call nrfAes128Test() two times in function body of main(). But RTT Viewer only shows log messages of 1st times. 
 
 The following are log messages of RTT Viewer. 
 00&amp;gt; *** Booting Zephyr OS build v3.3.99-ncs1 *** 00&amp;gt; btInit() e 00&amp;gt; btInit() x 00&amp;gt; [00</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Aug 2023 07:32:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102685/can-t-see-aes-cbc-no-padding-2nd-test-log-messages" /><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/441766?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 07:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95775f40-39a1-42b3-a3cf-2c3dbd7e53f6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;I am glad to hear you got it working! I will consider the case resolved then &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/441565?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 10:40:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb9fb1a1-7f55-47f3-8302-e044473676f8</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/07162.prj.conf"&gt;devzone.nordicsemi.com/.../07162.prj.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/441564?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 10:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7a1da8f-13bd-45eb-8551-1ddf06f103e2</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your great support. I can see AES-CBC-NO-PADDING 2nd test log messages after adding CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=2048 to prj.conf file.&lt;/p&gt;
&lt;p&gt;00&amp;gt; *** Booting Zephyr OS build v3.3.99-ncs1 ***&lt;br /&gt;00&amp;gt; btInit() e&lt;br /&gt;00&amp;gt; btInit() x&lt;br /&gt;00&amp;gt; [00:00:00.948,272] &amp;lt;inf&amp;gt; aes_cbc: crypto_init() ok&lt;br /&gt;00&amp;gt; [00:00:00.948,516] &amp;lt;inf&amp;gt; aes_cbc: Starting AES-CBC-NO-PADDING test 1&lt;br /&gt;00&amp;gt; [00:00:00.948,852] &amp;lt;inf&amp;gt; aes_cbc: Importing random AES key...&lt;br /&gt;00&amp;gt; psa_import_key() nrf e&lt;br /&gt;00&amp;gt; [00:00:00.949,218] &amp;lt;inf&amp;gt; aes_cbc: AES key imported successfully!&lt;br /&gt;00&amp;gt; [00:00:00.949,554] &amp;lt;inf&amp;gt; aes_cbc: Encrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; psa_cipher_encrypt_setup() nrf e&lt;br /&gt;00&amp;gt; psa_cipher_setup() nrf e&lt;br /&gt;00&amp;gt; psa_key_algorithm_permits() e key_type=9216, policy_alg=71319552, requested_alg=71319552&lt;br /&gt;00&amp;gt; psa_cipher_setup() return 0&lt;br /&gt;00&amp;gt; [00:00:00.950,927] &amp;lt;inf&amp;gt; aes_cbc: Encryption successful!&lt;br /&gt;00&amp;gt; [00:00:00.951,232] &amp;lt;inf&amp;gt; aes_cbc: Decrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; psa_cipher_setup() nrf e&lt;br /&gt;00&amp;gt; psa_key_algorithm_permits() e key_type=9216, policy_alg=71319552, requested_alg=71319552&lt;br /&gt;00&amp;gt; psa_cipher_setup() return 0&lt;br /&gt;00&amp;gt; [00:00:00.952,392] &amp;lt;inf&amp;gt; aes_cbc: Decryption successful!&lt;br /&gt;00&amp;gt; [00:00:00.952,667] &amp;lt;inf&amp;gt; aes_cbc: Example finished successfully!&lt;br /&gt;00&amp;gt; [00:00:00.952,972] &amp;lt;inf&amp;gt; aes_cbc: Starting AES-CBC-NO-PADDING test 2&lt;br /&gt;00&amp;gt; [00:00:00.953,277] &amp;lt;inf&amp;gt; aes_cbc: Importing random AES key...&lt;br /&gt;00&amp;gt; psa_import_key() nrf e&lt;br /&gt;00&amp;gt; [00:00:00.953,643] &amp;lt;inf&amp;gt; aes_cbc: AES key imported successfully!&lt;br /&gt;00&amp;gt; [00:00:00.953,979] &amp;lt;inf&amp;gt; aes_cbc: Encrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; psa_cipher_encrypt_setup() nrf e&lt;br /&gt;00&amp;gt; psa_cipher_setup() nrf e&lt;br /&gt;00&amp;gt; psa_key_algorithm_permits() e key_type=9216, policy_alg=71319552, requested_alg=71319552&lt;br /&gt;00&amp;gt; psa_cipher_setup() return 0&lt;br /&gt;00&amp;gt; [00:00:00.955,352] &amp;lt;inf&amp;gt; aes_cbc: Encryption successful!&lt;br /&gt;00&amp;gt; [00:00:00.955,657] &amp;lt;inf&amp;gt; aes_cbc: Decrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; psa_cipher_setup() nrf e&lt;br /&gt;00&amp;gt; psa_key_algorithm_permits() e key_type=9216, policy_alg=71319552, requested_alg=71319552&lt;br /&gt;00&amp;gt; psa_cipher_setup() return 0&lt;br /&gt;00&amp;gt; [00:00:00.956,787] &amp;lt;inf&amp;gt; aes_cbc: Decryption successful!&lt;br /&gt;00&amp;gt; [00:00:00.957,092] &amp;lt;inf&amp;gt; aes_cbc: Example finished successfully!&lt;br /&gt;00&amp;gt; _btReady(0) e&lt;br /&gt;00&amp;gt; Bluetooth initialized&lt;br /&gt;00&amp;gt; _btReady(0) x&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/441521?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 07:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93fe6377-e268-416b-9e70-6ea77104c6e9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe the issue is related to the size of the outgoing RTT buffer, which you can change by modifying the &lt;em&gt;CONFIG_SEGGER_RTT_BUFFER_SIZE_UP&lt;/em&gt;&amp;nbsp;parameter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By default this is set to 1024, which is not enough to buffer all the output during your boot sequence.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Every time you flash the nRF device and reset the board the JLink RTT viewer will be disconnected, and by the time you are able to reconnect the viewer and start polling out the RTT data the buffers&amp;nbsp;have&amp;nbsp;overflowed, leading to loss of logging data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason adding a delay worked for me is that I was able to connect the RTT viewer before the nRF started printing log messages, avoiding the overflow.&lt;/p&gt;
&lt;p&gt;Try setting&amp;nbsp;&lt;em&gt;CONFIG_SEGGER_RTT_BUFFER_SIZE_UP&lt;/em&gt;&lt;span&gt;&amp;nbsp; to 2048 or more and it should work fine.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/441337?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 10:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a406eff9-7186-4a5b-850f-77ffb5956c03</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/441325?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 09:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7b173e9-f463-4f72-b884-33c33afd03fd</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Switching to RTT logging I see the same issue, for some reason it hangs in the middle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adding a 3 second delay at the top of main solves it, but I am not exactly sure why.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will have to investigate this a bit further and see if I can find the root cause.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/441094?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 08:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2f99b0b-6373-40e6-827d-b2b8151f86ea</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I am using Raytac MDBT53-DB-40 board. (&lt;a href="https://www.raytac.com/product/ins.php?index_id=139"&gt;https://www.raytac.com/product/ins.php?index_id=139&lt;/a&gt;). Could you try to use RTT LOG backend since I don&amp;#39;t use UART?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/441091?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 08:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66ead2e7-fee5-406f-be22-01352a797aa9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested your code, and it seems to work fine for me. The only change I made was to use the UART LOG backend instead of RTT:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.3.99-ncs1 ***
btInit() e
btInit() x
[00:00:00.270,477] &amp;lt;inf&amp;gt; aes_cbc: Starting AES-CBC-NO-PADDING test 1
[00:00:00.277,252] &amp;lt;inf&amp;gt; aes_cbc: Importing random AES key...
[00:00:00.283,477] &amp;lt;inf&amp;gt; aes_cbc: AES key imported successfully!
[00:00:00.289,916] &amp;lt;inf&amp;gt; aes_cbc: Encrypting using AES CBC MODE...
[00:00:00.296,936] &amp;lt;inf&amp;gt; aes_cbc: Encryption successful!
[00:00:00.302,642] &amp;lt;inf&amp;gt; aes_cbc: Decrypting using AES CBC MODE...
[00:00:00.309,570] &amp;lt;inf&amp;gt; aes_cbc: Decryption successful!
[00:00:00.315,277] &amp;lt;inf&amp;gt; aes_cbc: Example finished successfully!
[00:00:00.321,685] &amp;lt;inf&amp;gt; aes_cbc: Starting AES-CBC-NO-PADDING test 2
[00:00:00.328,491] &amp;lt;inf&amp;gt; aes_cbc: Importing random AES key...
[00:00:00.334,686] &amp;lt;inf&amp;gt; aes_cbc: AES key imported successfully!
[00:00:00.341,125] &amp;lt;inf&amp;gt; aes_cbc: Encrypting using AES CBC MODE...
[00:00:00.348,144] &amp;lt;inf&amp;gt; aes_cbc: Encryption successful!
[00:00:00.353,851] &amp;lt;inf&amp;gt; aes_cbc: Decrypting using AES CBC MODE...
[00:00:00.360,778] &amp;lt;inf&amp;gt; aes_cbc: Decryption successful!
[00:00:00.366,485] &amp;lt;inf&amp;gt; aes_cbc: Example finished successfully!
_btReady(0) e
Bluetooth initialized
_btReady(0) x&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you try this as well and see if it makes a difference?&lt;/p&gt;
&lt;p&gt;Are you testing on an nRF5340DK, or on custom hardware?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/440856?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 05:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:021447cd-0bc8-4959-ac7f-91a02d8213a3</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I have removed the following code from main.c. But I still don&amp;#39;t see AES-CBC-NO-PADDING 2nd test log messages.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//#ifdef CONFIG_PM
//    while (1) {
//        k_usleep(1);
//    }
//#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The following are log messages of RTT Viewer.&lt;/p&gt;
&lt;p&gt;00&amp;gt; *** Booting Zephyr OS build v3.3.99-ncs1 ***&lt;br /&gt;00&amp;gt; btInit() e&lt;br /&gt;00&amp;gt; btInit() x&lt;br /&gt;00&amp;gt; [00:00:00.947,082] &amp;lt;inf&amp;gt; aes_cbc: crypto_init() ok&lt;br /&gt;00&amp;gt; [00:00:00.947,357] &amp;lt;inf&amp;gt; aes_cbc: Starting AES-CBC-NO-PADDING test 1&lt;br /&gt;00&amp;gt; [00:00:00.947,692] &amp;lt;inf&amp;gt; aes_cbc: Importing random AES key...&lt;br /&gt;00&amp;gt; psa_import_key() nrf e&lt;br /&gt;00&amp;gt; [00:00:00.948,059] &amp;lt;inf&amp;gt; aes_cbc: AES key imported successfully!&lt;br /&gt;00&amp;gt; [00:00:00.948,394] &amp;lt;inf&amp;gt; aes_cbc: Encrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; psa_cipher_encrypt_setup() nrf e&lt;br /&gt;00&amp;gt; psa_cipher_setup() nrf e&lt;br /&gt;00&amp;gt; psa_key_algorithm_permits() e key_type=9216, policy_alg=71319552, requested_alg=71319552&lt;br /&gt;00&amp;gt; psa_cipher_setup() return 0&lt;br /&gt;00&amp;gt; [00:00:00.949,737] &amp;lt;inf&amp;gt; aes_cbc: Encryption successful!&lt;br /&gt;00&amp;gt; [00:00:00.950,042] &amp;lt;inf&amp;gt; aes_cbc: Decrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; psa_cipher_setup() nrf e&lt;br /&gt;00&amp;gt; psa_key_algorithm_permits() e key_type=9216, policy_alg=71319552, requested_alg=71319552&lt;br /&gt;00&amp;gt; psa_cipher_setup() return 0&lt;br /&gt;00&amp;gt; [00:00:00.951,202] &amp;lt;inf&amp;gt; aes_cbc: Decryption successful!&lt;br /&gt;00&amp;gt; [00:00:00.951,507] &amp;lt;inf&amp;gt; aes_cbc:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/440691?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 10:24:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312a7ee3-dfaf-4ab2-a1f2-b6bb465adb88</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What if you add a while loop at the end of your main function so it doesn&amp;#39;t exit?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;while (1) {
  k_msleep(100);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Normally it shouldn&amp;#39;t be a problem to exit the main function in Zephyr, but it is worth a shot...&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/440602?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 01:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:071e1b04-b332-41e3-bd6c-3eb1a85d2fc7</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your suggestion! I have moved crypto_init() to function body of nrfAes128Init(). But I still don&amp;#39;t see AES-CBC-NO-PADDING 2nd test log messages.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int nrfAes128Init(void) {
    const int status = crypto_init();
    if (status != APP_SUCCESS) {
        LOG_INF(APP_ERROR_MESSAGE);
        return APP_ERROR;
    }

    LOG_INF(&amp;quot;crypto_init() ok&amp;quot;);
    return 0;
}

int nrfAes128Test(const int count) {
    int status;

    LOG_INF(&amp;quot;Starting AES-CBC-NO-PADDING test %d&amp;quot;, count);
    status = import_key();
    if (status != APP_SUCCESS) {
        LOG_INF(APP_ERROR_MESSAGE);
        return APP_ERROR;
    }

    status = encrypt_cbc_aes();
    if (status != APP_SUCCESS) {
        LOG_INF(APP_ERROR_MESSAGE);
        return APP_ERROR;
    }

    status = decrypt_cbc_aes();
    if (status != APP_SUCCESS) {
        LOG_INF(APP_ERROR_MESSAGE);
        return APP_ERROR;
    }

    status = crypto_finish();
    if (status != APP_SUCCESS) {
        LOG_INF(APP_ERROR_MESSAGE);
        return APP_ERROR;
    }

    LOG_INF(APP_SUCCESS_MESSAGE);

    return APP_SUCCESS;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The following are log messages of RTT Viewer.&lt;/p&gt;
&lt;p&gt;00&amp;gt; *** Booting Zephyr OS build v3.3.99-ncs1 ***&lt;br /&gt;00&amp;gt; btInit() e&lt;br /&gt;00&amp;gt; btInit() x&lt;br /&gt;00&amp;gt; [00:00:00.986,968] &amp;lt;inf&amp;gt; aes_cbc: crypto_init() ok&lt;br /&gt;00&amp;gt; [00:00:00.987,243] &amp;lt;inf&amp;gt; aes_cbc: Starting AES-CBC-NO-PADDING test 1&lt;br /&gt;00&amp;gt; [00:00:00.987,579] &amp;lt;inf&amp;gt; aes_cbc: Importing random AES key...&lt;br /&gt;00&amp;gt; psa_import_key() nrf e&lt;br /&gt;00&amp;gt; [00:00:00.987,945] &amp;lt;inf&amp;gt; aes_cbc: AES key imported successfully!&lt;br /&gt;00&amp;gt; [00:00:00.988,281] &amp;lt;inf&amp;gt; aes_cbc: Encrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; psa_cipher_encrypt_setup() nrf e&lt;br /&gt;00&amp;gt; psa_cipher_setup() nrf e&lt;br /&gt;00&amp;gt; psa_key_algorithm_permits() e key_type=9216, policy_alg=71319552, requested_alg=71319552&lt;br /&gt;00&amp;gt; psa_cipher_setup() return 0&lt;br /&gt;00&amp;gt; [00:00:00.989,654] &amp;lt;inf&amp;gt; aes_cbc: Encryption successful!&lt;br /&gt;00&amp;gt; [00:00:00.989,959] &amp;lt;inf&amp;gt; aes_cbc: Decrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; psa_cipher_setup() nrf e&lt;br /&gt;00&amp;gt; psa_key_algorithm_permits() e key_type=9216, policy_alg=71319552, requested_alg=71319552&lt;br /&gt;00&amp;gt; psa_cipher_setup() return 0&lt;br /&gt;00&amp;gt; [00:00:00.991,088] &amp;lt;inf&amp;gt; aes_cbc: Decryption successful!&lt;br /&gt;00&amp;gt; [00:00:00.991,394] &amp;lt;inf&amp;gt; aes_cbc:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/440530?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 14:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be525566-4bf6-433e-8716-193c4f03720a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you try to run the debugger to see if the code gets stuck somewhere?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at your code I notice that you run crypto_init() every time you call nrfAes128Test(..). Is this on purpose?&amp;nbsp;&lt;br /&gt;I am not sure initializing the psa_crypto libraries twice will work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to move this into the nrfAes128Init() function instead and see if it works better?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't see AES-CBC-NO-PADDING 2nd test log messages</title><link>https://devzone.nordicsemi.com/thread/440388?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 02:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07787e60-a37f-4c2b-adc2-0a0eca0baa8f</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6470.minimal_5F00_log_5F00_aes.zip"&gt;devzone.nordicsemi.com/.../6470.minimal_5F00_log_5F00_aes.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>