<?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>psa_open_key failed PSA_ERROR_DOES_NOT_EXIST (-134) on nRF9151 with NCS v3.2.2 and MCUboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127535/psa_open_key-failed-psa_error_does_not_exist--134-on-nrf9151-with-ncs-v3-2-2-and-mcuboot</link><description>Board: nRF9151DK (nrf9151dk/nrf9151/ns) 
 NCS version: v3.2.2 
 Softsim branch: master (59bac8b) 
 MCUboot: enabled 
 
 Issue: 
 Keys are provisioned successfully (SoftSIM keys written to KMU, SoftSIM fully provisioned) but psa_open_key returns -134 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Apr 2026 11:46:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127535/psa_open_key-failed-psa_error_does_not_exist--134-on-nrf9151-with-ncs-v3-2-2-and-mcuboot" /><item><title>RE: psa_open_key failed PSA_ERROR_DOES_NOT_EXIST (-134) on nRF9151 with NCS v3.2.2 and MCUboot</title><link>https://devzone.nordicsemi.com/thread/564441?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2026 11:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaac25d2-3e94-4e21-8ec1-fc11cf66918f</guid><dc:creator>luqman</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there any update on my issue?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: psa_open_key failed PSA_ERROR_DOES_NOT_EXIST (-134) on nRF9151 with NCS v3.2.2 and MCUboot</title><link>https://devzone.nordicsemi.com/thread/564322?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2026 15:34:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4da5ff07-af8c-404e-9f6a-180452f1a3b0</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;Vidar is out of office this week and will follow up on this when he&amp;#39;s back.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will have a look tomorrow myself to see if I can provide any insight.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: psa_open_key failed PSA_ERROR_DOES_NOT_EXIST (-134) on nRF9151 with NCS v3.2.2 and MCUboot</title><link>https://devzone.nordicsemi.com/thread/564227?ContentTypeID=1</link><pubDate>Sun, 29 Mar 2026 12:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2dcd17c-eeb3-410b-8344-aff6541d49eb</guid><dc:creator>luqman</dc:creator><description>&lt;div&gt;
&lt;div&gt;
&lt;p&gt;&lt;strong&gt;Hi Vidar,&lt;/strong&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;Thank you for the suggestion. I tested the &lt;code&gt;softsim_static_profile&lt;/code&gt; sample and it works correctly, the device connects to the network successfully.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v3.2.2 ***
[00:00:00.333,038] &amp;lt;inf&amp;gt; softsim_sample: SoftSIM sample started.
[00:00:00.661,956] &amp;lt;inf&amp;gt; softsim_sample: Waiting for LTE connect event.
+CEREG: 2,&amp;quot;2F12&amp;quot;,&amp;quot;01F80701&amp;quot;,7
[00:00:08.241,210] &amp;lt;inf&amp;gt; softsim_sample: LTE cell changed: Cell ID: 33031937, Tracking area: 12050
+CSCON: 1
[00:00:08.295,562] &amp;lt;inf&amp;gt; softsim_sample: RRC mode: Connected
+CEREG: 2,&amp;quot;B07D&amp;quot;,&amp;quot;00D69C03&amp;quot;,7
[00:00:08.801,300] &amp;lt;inf&amp;gt; softsim_sample: LTE cell changed: Cell ID: 14064643, Tracking area: 45181
+CSCON: 1
[00:00:08.849,609] &amp;lt;inf&amp;gt; softsim_sample: RRC mode: Connected&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, when integrating SoftSIM into my full application (TF-M + MCUboot + LwM2M on nRF9151), &lt;code&gt;psa_open_key&lt;/code&gt; returns -134 during network authentication.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Root cause found:&lt;/strong&gt; After investigation I traced the issue to &lt;code&gt;CRYPTO_STORAGE_DISABLED=ON&lt;/code&gt; in TF-M&amp;#39;s CMake build, which is set when &lt;code&gt;CONFIG_MBEDTLS_PSA_CRYPTO_STORAGE_C&lt;/code&gt; is not enabled. This results in &lt;code&gt;tfm_config.h&lt;/code&gt; having.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CRYPTO_KEY_MODULE_ENABLED 0
CRYPTO_CIPHER_MODULE_ENABLED 0
CRYPTO_MAC_MODULE_ENABLED 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Key difference between working sample and my project:&lt;/p&gt;
&lt;ul&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;Working sample: no MCUboot, &lt;code&gt;CONFIG_PM_PARTITION_SIZE_TFM=0x10000&lt;/code&gt;&lt;/li&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;My project: MCUboot enabled + TF-M + LwM2M + SoftSIM&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;hat I&amp;#39;ve tried:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;&lt;code&gt;CONFIG_TFM_PARTITION_PROTECTED_STORAGE=n&lt;/code&gt;&lt;/li&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;&lt;code&gt;CONFIG_PSA_CRYPTO_DRIVER_CC3XX=n&lt;/code&gt;&amp;nbsp;&lt;/li&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;&lt;code&gt;CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y&lt;/code&gt;&lt;/li&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;&lt;code&gt;CONFIG_MBEDTLS_PSA_CRYPTO_STORAGE_C=y&lt;/code&gt;&lt;/li&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;&lt;code&gt;CONFIG_NRF_SECURITY=y&lt;/code&gt;&lt;/li&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;&lt;code&gt;CONFIG_PSA_WANT_KEY_TYPE_AES=y&lt;/code&gt;&lt;/li&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;&lt;code&gt;CONFIG_PSA_WANT_ALG_CBC_NO_PADDING=y&lt;/code&gt;&lt;/li&gt;
&lt;li class="whitespace-normal break-words pl-2"&gt;&lt;code&gt;CONFIG_PSA_WANT_ALG_CMAC=y&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But TF-M CMakeCache still shows &lt;code&gt;TFM_PARTITION_INTERNAL_TRUSTED_STORAGE:BOOL=OFF&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.262,939] &amp;lt;err&amp;gt; softsim_crypto: Failed to open key 10, error: -134
[00:00:00.264,373] &amp;lt;inf&amp;gt; softsim: Provisioning static profile
[00:00:00.264,617] &amp;lt;err&amp;gt; softsim_crypto: Failed to open a persistent key, ERR: -134
[00:00:00.264,709] &amp;lt;err&amp;gt; softsim_crypto: Failed to open a persistent key, ERR: -134
[00:00:00.264,801] &amp;lt;err&amp;gt; softsim_crypto: Failed to open a persistent key, ERR: -134
[00:00:00.264,801] &amp;lt;inf&amp;gt; softsim: SoftSIM keys written to KMU
[00:00:09.108,764] &amp;lt;err&amp;gt; softsim_crypto: ss_utils_aes_decrypt: psa_open_key failed! (Error: -134)
[00:00:09.539,489] &amp;lt;wrn&amp;gt; lte_lc: Registration rejected, EMM cause: 17&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, i remove the private SIM configuration due to public, so you may need your own&lt;/p&gt;
&lt;p&gt;Full reproduction code available here: &lt;a id="" class="underline underline underline-offset-2 decoration-1 decoration-current/40 hover:decoration-current focus:decoration-current" href="https://github.com/luqman8230339900/nrf9151-softsim-tfm-mcuboot-issue"&gt;https://github.com/luqman8230339900/nrf9151-softsim-tfm-mcuboot-issue&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards:&lt;/p&gt;
&lt;p&gt;Luqman&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: psa_open_key failed PSA_ERROR_DOES_NOT_EXIST (-134) on nRF9151 with NCS v3.2.2 and MCUboot</title><link>https://devzone.nordicsemi.com/thread/563939?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2026 10:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48ca71ef-e783-42ea-af83-9444c69ed810</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Update: I didn&amp;#39;t anyone who immediately recognised the&amp;nbsp;problem you are observing. However, when looking at the logs again now&amp;nbsp;I see that the actual error is PSA_ERROR_NOT_SUPPORTED (-134), which indicates that there is a problem with the crypto configuration in your project. Have you tried the provided softsim_static_profile sample provided in this repo to see if it results in the same errors?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: psa_open_key failed PSA_ERROR_DOES_NOT_EXIST (-134) on nRF9151 with NCS v3.2.2 and MCUboot</title><link>https://devzone.nordicsemi.com/thread/563894?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2026 14:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:740474f2-8274-48ce-9e44-ba86650c1d3b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I need to check with my coworkers who are familiar with this softsim solution and get back to you. Expect to have an answer by tomorrow.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>