<?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>persistent keys on psa/crypto.h with TFM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82726/persistent-keys-on-psa-crypto-h-with-tfm</link><description>Hi all, 
 
 I wonder how to use persistent keys with TFM. Or why persistence works only with ECC 
 Following code works on secure side and keys are persisted just fine. 
 When compiling as &amp;quot;_ns&amp;quot; and using TFM, only ECC persistent keys function returns</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jan 2022 08:44:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82726/persistent-keys-on-psa-crypto-h-with-tfm" /><item><title>RE: persistent keys on psa/crypto.h with TFM</title><link>https://devzone.nordicsemi.com/thread/345586?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 08:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2471e74b-5e90-4a2a-b60b-87df1c469bf3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay.&lt;/p&gt;
&lt;p&gt;The problem with this is that ITS is not configured to store such large keys. The persistent keys are stored in the ITS storage and the largest possible asset stored is dependent on the configuration here: &lt;a href="https://github.com/nrfconnect/sdk-trusted-firmware-m/blob/336ef5f18546bea384fac0dcf3349ebf5125b885/trusted-firmware-m/config/config_default.cmake#L113"&gt;ITS_MAX_ASSET_SIZE&lt;/a&gt;.&amp;nbsp;Even though this value seems big enough for the requested RSA key it is not. There is storage overhead added by the PSA APIs which increase the size of the key substantially. Increasing this configuration though will eventually result to the success of of the operation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: persistent keys on psa/crypto.h with TFM</title><link>https://devzone.nordicsemi.com/thread/343675?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 14:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:434128df-42d4-42fc-9c88-40564dfa0cd7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see the same as you, but I did not get to the bottom of this today. I will continue to look into it, though.&lt;/p&gt;
&lt;p&gt;(Note that TF-M is still experimental, and there are some issues with it. At the same time, the SPM does not provide this features (it provides virtually no crypto related features at all, except RNG), so TF-M is never-the-less the way to go.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: persistent keys on psa/crypto.h with TFM</title><link>https://devzone.nordicsemi.com/thread/343403?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 13:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f15c751-83df-44d0-ae78-4b373f5ffdc3</guid><dc:creator>hk1234</dc:creator><description>&lt;p&gt;v1.7.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: persistent keys on psa/crypto.h with TFM</title><link>https://devzone.nordicsemi.com/thread/343402?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 12:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:133c02c4-1552-4661-a434-b64051d8ae93</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any key type can be stored with PSA ITS, and that should be the case also when using TF-M (see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/crypto/persistent_key_usage/README.html"&gt;Crypto: Persistent key storage sample&lt;/a&gt;). Which nRF Connect SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>