<?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>Building standalone library without any TFM dependencies on nrf5340 TFM secure environment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96960/building-standalone-library-without-any-tfm-dependencies-on-nrf5340-tfm-secure-environment</link><description>Hello, 
 We are developing a library which uses the psa crypto features for key storage and few other crypto operations which is expected to be integrated on nrf5340 secure environment. 
 The communication between NSE and SE will be over TFM-IPC. Our</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Feb 2023 14:11:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96960/building-standalone-library-without-any-tfm-dependencies-on-nrf5340-tfm-secure-environment" /><item><title>RE: Building standalone library without any TFM dependencies on nrf5340 TFM secure environment</title><link>https://devzone.nordicsemi.com/thread/411685?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 14:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2776c522-6085-4cf0-8b45-db25b030a32f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just to make sure I understood your question correctly:&lt;/p&gt;
&lt;p&gt;You are developing a library, that will run in the non-secure domain, which uses some TF-M functionality. But, because you don&amp;#39;t want to build a new library for each TF-M version, you do not want to depend on any TF-M symbols.&lt;/p&gt;
&lt;p&gt;Does that accurately sum up your question?&lt;/p&gt;
&lt;p&gt;If so, I would make a wrapper around the TF-M functionality that you use, and use the wrapper in the library. Then, you instruct the users how to implement the glue layer. This solution is similar to what we do for out modem library for the nRF9160. The library itself is OS agnostic, but requires some support from the OS/runtime, which means that the users of the modem library have to implement a glue layer between the library and the OS they are using.&lt;/p&gt;
&lt;p&gt;You can see how we document this here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrfxlib/nrf_modem/doc/ug_nrf_modem_porting_os.html#os-abstraction-layer"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrfxlib/nrf_modem/doc/ug_nrf_modem_porting_os.html#os-abstraction-layer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>