<?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>NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85630/ncs-1-9-1-unable-to-use-psa-crypto-methods-with-openthread-enabled</link><description>I&amp;#39;m unable to use the PSA crypto methods when OpenThread is enabled on NCS 1.9.1. Linking fails with undefined references to PSA crypto methods. 
 
 To reproduce, us the nrf/samples/crypto/aes_cbc example, and add the following to prj.conf: 
 
 
 
 Building</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2022 14:22:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85630/ncs-1-9-1-unable-to-use-psa-crypto-methods-with-openthread-enabled" /><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/380649?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 14:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253ea932-0b19-4e50-83f6-6a72db05ec6a</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Zack,&lt;/p&gt;
&lt;p&gt;Here is the feedback from our development team:&lt;/p&gt;
&lt;div&gt;&lt;em&gt;We are planning to do OpenThread PSA Configurations for nRF Connect SDK 2.1, but the configuration will most likely be a prototype (experimental).&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Charlie&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/380561?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 10:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41116d8d-ec71-45c0-9c32-eaa5a5393c61</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Zack,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I am just back from vacation.&lt;/p&gt;
&lt;p&gt;I see no change on the latest NCS2.0.x, I will check with our development team to learn&amp;nbsp;the current state.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/378587?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 20:08:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9be503fd-9446-48bc-9e40-a89bc6d926ec</guid><dc:creator>zcornelius</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/charlie-shao"&gt;Charlie&lt;/a&gt;&amp;nbsp;Has this been addressed in NCS 2.X?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/359425?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 15:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4623e376-9a02-4265-86f5-9aec1791d6c4</guid><dc:creator>zcornelius</dc:creator><description>&lt;p&gt;We have an application using BLE + OpenThread (as an SED), using ECDH key exchange and CBC encryption on the (unpaired) BLE connection&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/359423?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 15:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed98edbd-7a6b-4c07-b0b0-90bfa30c9c2e</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Zack,&lt;/p&gt;
&lt;p&gt;You cannot avoid this since OpenThread needs legacy APIs.&lt;/p&gt;
&lt;p&gt;Can you explain more about your application? What are you going to do with&amp;nbsp;&lt;span&gt;aes_cbc through PSA APIs with an OpenThread device?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/359406?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 14:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c3052a2-bab0-4312-8637-9d1b2f17169c</guid><dc:creator>zcornelius</dc:creator><description>&lt;p&gt;Charlie,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sadly, our current implementations are already using the PSA APIs in nRF Connect SDK (Even 1.7 and 1.8) - We cannot port our application to use the legacy APIs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We do not use TLS/DTLS in our application - Is there a workaround where we can have PSA enabled but without the TLS/DTLS support?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/359370?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 12:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c57d22b-f0d7-4049-84da-b7496392a5b4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Zack,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;After some investigation, we found enabling PSA crypto APIs in OpenThread is limited to some configurations around ECJPAKE (required for OpenThread)&lt;/p&gt;
&lt;p&gt;There are a few things missing in TLS/DTLS to handle pure PSA crypto APIs. Unfortunately, we have some conflicts with regards to old and new configurations so we can&amp;#39;t enable both in case TLS/DTLS is in use. We hope to solve some of this before nRF Connect SDK 2.0.0 timeline, but it may be fairly heavy work, so we don&amp;#39;t have a good estimation of when the alternative solution will be ready by far.&lt;/p&gt;
&lt;p&gt;Is that OK you continue your development with the legacy crypto library and switch to the new one later?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/359162?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 13:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e1ad2a-0ad1-4e62-a9cd-a5cf98d4a770</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi&amp;nbsp; Zack,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;It is true that a lot of legacy configurations will prevent&amp;nbsp;PSA configuraiton added to the OpenThread sample proj.conf from being used.&lt;/p&gt;
&lt;p&gt;We will try to figure out an alternative solution with PSA enabled and need a bit more time to do adaption and tests. Thanks for your patience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/358893?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 14:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c7f76e3-e2dd-4e29-bcec-6b7391b3823d</guid><dc:creator>zcornelius</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/charlie"&gt;Charlie&lt;/a&gt; Any updates here? We&amp;#39;re still unable to use NCS 1.9.1 with our application because of this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/357719?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 15:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22e3440-a73c-41b5-b057-7992c55971f7</guid><dc:creator>zcornelius</dc:creator><description>&lt;p&gt;Our actual application is based off an OpenThread sample, and added PSA crypto. Even when the new PSA crypto methods are enabled, they&amp;#39;re not linked (undefined reference to all PSA crypto methods)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A bit more testing and it appears the culprit here is actually the legacy crypto support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just adding&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NORDIC_SECURITY_BACKEND=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to that aes_cbc sample causes the same compilation failures. It just happens that OpenThread is using the legacy crypto, rather than the newer CONFIG_NRF_SECURITY.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What can we do to have legacy crypto support and the newer PSA methods enabled at the same time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.9.1 unable to use PSA crypto methods with  OpenThread enabled</title><link>https://devzone.nordicsemi.com/thread/357633?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 11:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:683a96aa-f5d0-4644-83cd-84188d6cfeae</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Zack,&lt;/p&gt;
&lt;p&gt;I am not sure if you can enable openthread support in this sample directly. If you work on an openthread related project, it would be better to start with openthread samples and add other features you need.&lt;/p&gt;
&lt;p&gt;I will do some investigation and feedback&amp;nbsp;to you later.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>