<?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>nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122481/nrf54l15---fail-to-provision-keys-in-to-the-kmu-nrfutil</link><description>Hi Team, 
 We are developing on a custom board with an nRF54L15 (Raytac Module with NRF54L15_xxAA_ENGB) and are unable to provision a pre-generated secp256r1 private key into a non-reserved KMU slot. 
 The nrfutil tool fails with the error: Failed to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Jul 2025 20:28:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122481/nrf54l15---fail-to-provision-keys-in-to-the-kmu-nrfutil" /><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/544150?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 20:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6705288-e956-4775-8f66-9cd214d5c68b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Daniyal,&lt;/p&gt;
&lt;p&gt;Our developer points out that ECDSA&amp;nbsp;key has to be for signing and not for encryption. Therefore, the problem is with&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;--usage ENCRYPT_DECRYPT_EXPORT&lt;/span&gt;. Please use a usage for signing, such as&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;SIGN_VERIFY&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Best 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: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/543932?ContentTypeID=1</link><pubDate>Tue, 29 Jul 2025 12:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e759f88c-20f5-4433-8ee9-6fa7d5c0a491</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;we wanted to move forward on some of our firmware development, so we couldn&amp;#39;t wait till this patch is merged, we have tested out with the new patch, we are having the same issue:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; 1050250936: Device error: Tried to provision 1 keys, 1 keyslot(s) failed to be provisioned (Generic)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The command we used is the following (we have also changed some parameters to try out different combinations, but non of it worked with the SECP_R1 type key):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/home/redacted/generate_psa_key_attributes_v3.0.3.py 
--usage ENCRYPT_DECRYPT_EXPORT --id 170 
--type ECC_KEY_PAIR_SECP_R1 --key-bits 256 
--algorithm ECDSA_SHA256 --location LOCATION_CRACEN_KMU 
--persistence PERSISTENCE_READ_ONLY --cracen-usage RAW 
--key fbd8003d571e1823f5b351b1f6bc4b083b269fff2bdee596014fc9b1dfb97a68 
--file /home/redacted/kmu_provisioning_data.json&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and the content of the json file is the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
    &amp;quot;version&amp;quot;: 0,
    &amp;quot;keyslots&amp;quot;: [
        {
            &amp;quot;metadata&amp;quot;: &amp;quot;0x12710001034B4E80010300000906000600000000AA30FF7F00000000&amp;quot;,
            &amp;quot;value&amp;quot;: &amp;quot;0xa76a466b3feb77eb4ed5534d1c9847957b9397e396e408c95a14dd68638ff77a&amp;quot;
        }
    ]
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;We have also attached the log file, &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5265.nrfutil_2D00_device.log"&gt;devzone.nordicsemi.com/.../5265.nrfutil_2D00_device.log&lt;/a&gt;can we please get some support on this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Daniyal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/542214?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 09:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9c24637-341d-4d6a-bb9e-882b73aaeb3f</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi Abhijith,&lt;br /&gt;&lt;br /&gt;Just opened a new &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/122902/nrf54l15---fail-to-provision-ed25519-keys-in-to-the-kmu-nrfutil"&gt;ticket&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Daniyal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/542209?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 08:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2390b22a-ebe8-4b58-ae62-1676bca38ef3</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry you need to open a new ticket for this issue.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/542204?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 08:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c7596a-ade6-44fd-aed2-df6f8ddf27b5</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi Abhijith,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the follow up, should I open a new issue in devzone or will you do it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Daniyal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/542195?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 08:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c6f089e-fda6-4b79-a149-357f60b8fea1</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Hieu is on vacation for a while, so I’ll be following this thread and keeping you updated.&lt;/p&gt;
&lt;p&gt;From what I see, the issues you reported with ED25519 provisioning, like needing &lt;code&gt;--size&lt;/code&gt; to be 255 and &lt;code&gt;--cracen_usage&lt;/code&gt; only working with RAW, seem to fall outside the scope of this thread/PR. I would suggest we track them separately by opening a new ticket. That’ll help keep DevZone organized and make it easier to reference later.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt; Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/541501?ContentTypeID=1</link><pubDate>Fri, 04 Jul 2025 16:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:435317f5-4b19-4868-8756-25ae5a26aed0</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;br /&gt;&lt;br /&gt;While we are still on this topic, we found some additional issues with the provisioning parameters when we were testing with the ED25519 algorithm:&lt;br /&gt;&lt;br /&gt;1. the --size parameter must be 255, the ED25519 key pairs length are actually 256 bit, when we give 256 the provisioning fails, I guess somewhere the microcode checks for this, not sure if this is a issue or not just mentioning it here as information.&lt;br /&gt;&lt;br /&gt;2. the --cracen_usage parameter supposed to support both the &amp;quot;ENCRYPTED&amp;quot; and &amp;quot;RAW&amp;quot; based on the link you sent, however, the provisioning only works with the&amp;nbsp;&lt;span&gt;&amp;quot;RAW&amp;quot; option (--size&amp;nbsp;255). We kept other parameters same as above.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Daniyal&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/541320?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2025 12:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a84354-0464-428a-bc4d-709285f7669a</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you very much for your effort, we will try out the script once its ready to be patched.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Daniyal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/541318?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2025 12:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2915ea-911c-4043-a73e-3b34a2255836</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Daniyal,&lt;/p&gt;
&lt;p&gt;Our developer has created a PR. It is pending further reviews and tests, but if you need something to work with urgently, you can give it a try:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/23113"&gt;scripts: Added features in generate_psa_key_attributes.py by magnev · Pull Request #23113 · nrfconnect/sdk-nrf&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you can wait, it&amp;#39;s best to just follow/watch the PR and patch it in once it is merged.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/541156?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2025 11:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c84e17f-f8a6-4b34-b879-434ed25a8e4f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Daniyal,&lt;/p&gt;
&lt;p&gt;I have confirmed the issue with the maintainer of the script, and an update will be worked on. I will update you when it is available.&lt;/p&gt;
&lt;p&gt;Our apologies for the inconvenience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/540918?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 15:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51723bf3-9051-4482-b3e3-5ed1a594d6bb</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply and the additional information.&lt;/p&gt;
&lt;p&gt;The key&amp;nbsp;type&amp;nbsp;we have is &amp;quot;&lt;span&gt;ECC secp256r1 key pair&amp;quot;&lt;/span&gt;, this is also shown as supported as per the information on the link you have sent.&lt;/p&gt;
&lt;p&gt;However, when I look at the latest &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/scripts/generate_psa_key_attributes.py"&gt;generate_psa_key_attributes.py&lt;/a&gt;&lt;span&gt;&amp;nbsp;file you see only the following few options that are allowed for the provisioning:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;class PsaKeyType(IntEnum):
    &amp;quot;&amp;quot;&amp;quot;The type of the key&amp;quot;&amp;quot;&amp;quot;

    AES = 0x2400
    ECC_TWISTED_EDWARDS = 0x4142
    RAW_DATA = 0x1001
    
    
class PsaAlgorithm(IntEnum):
    &amp;quot;&amp;quot;&amp;quot;Algorithm that can be associated with a key. Not used for AES&amp;quot;&amp;quot;&amp;quot;

    NONE = 0
    CBC = 0x04404000
    EDDSA_PURE = 0x06000800&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As our inital intent we thought it would be both NONE, that didn&amp;#39;t work of course, so based on this script is our key type and algorithm (ECC secp256r1) not support even though the official document says it supports it?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/540902?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 14:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9064c329-07bd-469c-8b1d-082a4c8509d5</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Daniyal,&lt;/p&gt;
&lt;p&gt;Sorry again for the incompleteness of my last answer. You need to specify both a non-raw key type and algorithm. The reason is that keys provisioned this way will be used with the PSA Crypto API, which requires known key type and algorithm&amp;nbsp;for each key. The list of supported key types is here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.2/page/nrf/app_dev/device_guides/nrf54l/cryptography.html#supported_key_types"&gt;nRF54L Series cryptography&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/540870?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 12:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72a440d4-4fdf-4223-a08c-820c373ab307</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the update, I assume you are talking about the &amp;quot;--algorithm&amp;quot; parameter passed onto the generate_psa_key_attributes.py script.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have just tried with both other two available options for the --algorithm input parameter, &amp;quot;CBC&amp;quot; and &amp;quot;EDDSA_PURE&amp;quot; I&amp;#39;m getting the same error.&lt;/p&gt;
&lt;p&gt;Daniyal&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/540829?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 09:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bd1707-9cff-4e72-9262-75b9e4dcd636</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Daniyal,&lt;/p&gt;
&lt;p&gt;My apology for the late follow up. I have been out of office.&lt;/p&gt;
&lt;p&gt;The issue is that keys cannot be provisioned to KMU without an algorithm specified. If you specify an algorithm, things will work.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/540818?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 08:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1be746f-f42a-472d-9531-77ce6273f490</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/vthieu"&gt;Hieu&lt;/a&gt;&amp;nbsp;any update on this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/540497?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 14:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc6dee89-e9e7-4696-bc6e-56d777924ff2</guid><dc:creator>DanN</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;br /&gt;&lt;br /&gt;There are two files in the logs folder, I redacted some file path names and left only the logs regarding the most recent command execution.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3225.nrfutil.log"&gt;devzone.nordicsemi.com/.../3225.nrfutil.log&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8015.nrfutil_2D00_device.log"&gt;devzone.nordicsemi.com/.../8015.nrfutil_2D00_device.log&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Daniyal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 - Fail to provision keys in to the KMU (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/540492?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 13:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6934bee2-cda3-47fa-99e2-841b288d8a3d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi DanN,&lt;/p&gt;
&lt;p&gt;Could you please try again with the argument &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;--log-level trace&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;It will produce a log file in the&amp;nbsp;.nrfutils/log folder, which is located in the home directory on Linux, or the&amp;nbsp;user root directory on Windows. Please share that file with us.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>