<?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>Cracen drivers preventing some ciphers from being compiled in</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116705/cracen-drivers-preventing-some-ciphers-from-being-compiled-in</link><description>Hello, 
 I am trying to upgrade my project from ncs 2.1.0 to ncs 2.6.1. I am running into some strange issues with mbedtls and I suspect it&amp;#39;s because the same ciphers enabled when we were using ncs 2.1.0 are no longer enabled now that we have upgraded</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2024 16:36:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116705/cracen-drivers-preventing-some-ciphers-from-being-compiled-in" /><item><title>RE: Cracen drivers preventing some ciphers from being compiled in</title><link>https://devzone.nordicsemi.com/thread/512200?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 16:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a84ec79-69b2-444e-b3be-83f8bf4d2837</guid><dc:creator>alexdr5398</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;I have managed to solve it. It appears that I had the mbedtls heap set too small and increasing it a bit solves the problem. Although it&amp;#39;s a bit strange cause this amount was totally adequate on the old version.&lt;br /&gt;&lt;br /&gt;Also a bit annoying that there were no error messages indicating failure to allocate memory at all.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cracen drivers preventing some ciphers from being compiled in</title><link>https://devzone.nordicsemi.com/thread/512195?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 15:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7f63a2c-fadb-4ce2-addf-378aa660e639</guid><dc:creator>alexdr5398</dc:creator><description>&lt;p&gt;For some context. The issue is when connecting to our CoAP server over DTLS. Every time I try I get the error&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:36.675,292] &amp;lt;err&amp;gt; net_sock_tls: TLS handshake error: -0x6e00
[00:00:36.685,180] &amp;lt;err&amp;gt; mm_file_transfer: Failed to send block request (-1, -113)
[00:00:36.699,493] &amp;lt;err&amp;gt; mm_file_transfer: Failed to send block request -1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Looking at the exchange on wireshark, it seems normal, but then they exchange encrypted alerts and no more traffic follows. Here&amp;#39;s a screenshot of the exchange:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20241126_5F00_104900.png" /&gt;&lt;/p&gt;
&lt;p&gt;So I suspect some ciphers/curves are enabled in the old version but not in the new version. One that I can see is PSA_WANT_ALG_CFB is enabled in the old version but setting that&amp;nbsp; same config in the new version gives the error in the OP:&lt;br /&gt;&lt;br /&gt;`error: #error &amp;quot;No software implementation for 128 bit AES-CFB&amp;quot;` among others&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cracen drivers preventing some ciphers from being compiled in</title><link>https://devzone.nordicsemi.com/thread/512180?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 14:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0216c74-add0-48b5-ae85-446e75c776b2</guid><dc:creator>alexdr5398</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;                                                                                                Symbol information
Name: PSA_ACCEL_CFB_AES_128
Type: bool
Value: n

Direct dependencies (=y):
     MBEDTLS_PSA_CRYPTO_C(=y) &amp;amp;&amp;amp; NRF_SECURITY(=y)  (=y)
  || PSA_CRYPTO_DRIVER_CRACEN(=n) &amp;amp;&amp;amp; MBEDTLS_PSA_CRYPTO_C(=y) &amp;amp;&amp;amp; NRF_SECURITY(=y)  (=n)

Default:
  - y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the menuconfig symbol info. The dependencies are met, the default value is `y`, yet the value is no. I cannot set this symbol to yes manually cause it&amp;#39;s not user configurable. So why is it being set to no?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cracen drivers preventing some ciphers from being compiled in</title><link>https://devzone.nordicsemi.com/thread/512176?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 14:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c0d6e7e-5e70-4bca-a69c-135e27504133</guid><dc:creator>alexdr5398</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;br /&gt;&lt;br /&gt;That is already disabled, you can see that one in the dependencies &lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;     MBEDTLS_PSA_CRYPTO_C(=y) &amp;amp;&amp;amp; NRF_SECURITY(=y)  (=y)
  || PSA_CRYPTO_DRIVER_CRACEN(=n) &amp;amp;&amp;amp; MBEDTLS_PSA_CRYPTO_C(=y) &amp;amp;&amp;amp; NRF_SECURITY(=y)  (=n)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The first term in the OR is true ` MBEDTLS_PSA_CRYPTO_C(=y) &amp;amp;&amp;amp; NRF_SECURITY(=y) (=y)`&lt;/p&gt;
&lt;p&gt;But the second term is false `PSA_CRYPTO_DRIVER_CRACEN(=n) &amp;amp;&amp;amp; MBEDTLS_PSA_CRYPTO_C(=y) &amp;amp;&amp;amp; NRF_SECURITY(=y) (=n)` &lt;br /&gt;&lt;br /&gt;&amp;nbsp;And for some reason that is causing the value of `PSA_ACCEL_CFB_AES_128` to be set to no, even though it is OR&amp;#39;d, so it should be set to yes. Is that correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cracen drivers preventing some ciphers from being compiled in</title><link>https://devzone.nordicsemi.com/thread/512174?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 14:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3884b399-eb27-4141-b094-0bc621a160cf</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]Is there a way to simply remove the cracen drivers from my project?[/quote]
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/security/nrf_security/doc/drivers.html"&gt;nRF Security drivers&lt;/a&gt;&amp;nbsp;documentation webpage specifies how to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/security/nrf_security/doc/drivers.html#enabling_the_cracen_driver"&gt;disable cracen driver&lt;/a&gt;.&amp;nbsp;Kconfig option CONFIG_PSA_CRYPTO_DRIVER_CRACEN is used to enable/disable CRACEN driver.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>