<?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>Enabling ciphersuites on NRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107704/enabling-ciphersuites-on-nrf-connect-sdk</link><description>Hi, 
 
 I am trying to enable the below cipher suite, but I am not sure what configurations are needed to do so: 
 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 
 
 The reason for this is that I keep receiving a MBEDTLS error 0x7780 when attempting a post to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jan 2024 13:11:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107704/enabling-ciphersuites-on-nrf-connect-sdk" /><item><title>RE: Enabling ciphersuites on NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/466010?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 13:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f324e36f-a31d-44b0-8a8a-ce3c2d8cdbf1</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Aman,&lt;/p&gt;
&lt;p&gt;For TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,&lt;span&gt;&amp;nbsp;&lt;/span&gt;you will need to set the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.1/kconfig/index.html#CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED"&gt;CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To set CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED, you will need to satisfy its dependencies. If you trace back all of its dependency, it will boil down to:&lt;/p&gt;
&lt;p&gt;CONFIG_MBEDTLS_GCM_C&amp;nbsp;||&amp;nbsp;CONFIG_PSA_WANT_ALG_GCM&lt;br /&gt;CONFIG_MBEDTLS_ECDH_C&amp;nbsp;||&amp;nbsp;CONFIG_PSA_WANT_ALG_ECDH&lt;br /&gt;CONFIG_MBEDTLS_ECDSA_C&amp;nbsp;||&amp;nbsp;CONFIG_PSA_WANT_ALG_ECDSA&lt;/p&gt;
&lt;p&gt;The MBEDTLS_ line of configs&amp;nbsp;is&lt;span&gt;&amp;nbsp;&lt;/span&gt;legacy. We recommend enabling the PSA_ configs instead.&lt;/p&gt;
&lt;p&gt;For clues on which&amp;nbsp;Kconfig needs to be set for a particular cipher suite, please refer to the&amp;nbsp;generated Mbed TLS config file&amp;nbsp;at&amp;nbsp;&lt;em&gt;&amp;lt;SDK root&amp;gt;\modules\crypto\mbedtls\include\mbedtls\mbedtls_config.h&lt;/em&gt;. &lt;br /&gt;Here is the same file used in NCS v2.5.0 on GitHub:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mbedtls/blob/v3.3.0-ncs2/include/mbedtls/mbedtls_config.h"&gt;sdk-mbedtls/include/mbedtls/mbedtls_config.h at v3.3.0-ncs2 · nrfconnect/sdk-mbedtls · GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling ciphersuites on NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/465882?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 21:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:723bc940-c797-4ad5-8cd8-1b20c17e3563</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Aman,&lt;/p&gt;
&lt;p&gt;As a general solution, you&amp;nbsp;should be able to use&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.1/kconfig/index.html#CONFIG_MBEDTLS_KEY_EXCHANGE_ALL_ENABLED"&gt;CONFIG_MBEDTLS_KEY_EXCHANGE_ALL_ENABLED&lt;/a&gt;&amp;nbsp;and get enable supports for all cipher suites available in the SDK.&lt;/p&gt;
&lt;p&gt;However, that can result in wasted memory use. It can be better to&amp;nbsp;enable only&amp;nbsp;a specific cipher suite or a specific group of suites.&amp;nbsp;I am investigating this direction and will follow up with details shortly.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>