<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: KeyDerivation Copy parameters issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108677#M49484</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249628"&gt;@kerti1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is original function from HSE Demo Examples:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1748871362133.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340883i7F95530AAD978B5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1748871362133.png" alt="lukaszadrapa_0-1748871362133.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The key point - &lt;STRONG&gt;whole descriptor is erased before next use.&lt;/STRONG&gt;&amp;nbsp; This is not implemented in your code, so there are some leftovers from previous operations. Let's compare parameters in your original version:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1748871454198.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340884i4F648D221B6C0FA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1748871454198.png" alt="lukaszadrapa_1-1748871454198.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;... with version when the descriptor was cleared at the beginning (I did that manually in my debugger):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_2-1748871502302.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340885i7061A103F4ED596A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_2-1748871502302.png" alt="lukaszadrapa_2-1748871502302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, I got HSE_SRV_RSP_OK when the descriptor is erased before setting of parameters. Obviously HSE could not accept those messed parameters. &lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jun 2025 13:46:28 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2025-06-02T13:46:28Z</dc:date>
    <item>
      <title>KeyDerivation Copy parameters issue</title>
      <link>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2107715#M49397</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795" target="_blank"&gt;@lukaszadrapa&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the keyderiveCopyKeyReq struct to get the key for my AES encryption. I am sure that my key catalog is correct. My keyhandle points to the Shared key that i derived using the keyderiveReq and which I stored in the RAM key handle with group index as 3. The targethandle to the new RAM catalog for the AES. After all these still i get the invalid_params. Please help me in finding out the issue&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 06:31:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2107715#M49397</guid>
      <dc:creator>kerti1</dc:creator>
      <dc:date>2025-05-30T06:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: KeyDerivation Copy parameters issue</title>
      <link>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108470#M49462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please let me know what is the issue. It would be really helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 07:14:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108470#M49462</guid>
      <dc:creator>kerti1</dc:creator>
      <dc:date>2025-06-02T07:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: KeyDerivation Copy parameters issue</title>
      <link>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108582#M49474</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249628"&gt;@kerti1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you share whole project, so I can check it on my side? I can't see a problem in the parameters. &lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 10:13:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108582#M49474</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-06-02T10:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: KeyDerivation Copy parameters issue</title>
      <link>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108588#M49475</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. Please find the attached project. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 10:26:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108588#M49475</guid>
      <dc:creator>kerti1</dc:creator>
      <dc:date>2025-06-02T10:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: KeyDerivation Copy parameters issue</title>
      <link>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108677#M49484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249628"&gt;@kerti1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is original function from HSE Demo Examples:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1748871362133.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340883i7F95530AAD978B5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1748871362133.png" alt="lukaszadrapa_0-1748871362133.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The key point - &lt;STRONG&gt;whole descriptor is erased before next use.&lt;/STRONG&gt;&amp;nbsp; This is not implemented in your code, so there are some leftovers from previous operations. Let's compare parameters in your original version:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1748871454198.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340884i4F648D221B6C0FA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1748871454198.png" alt="lukaszadrapa_1-1748871454198.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;... with version when the descriptor was cleared at the beginning (I did that manually in my debugger):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_2-1748871502302.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340885i7061A103F4ED596A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_2-1748871502302.png" alt="lukaszadrapa_2-1748871502302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, I got HSE_SRV_RSP_OK when the descriptor is erased before setting of parameters. Obviously HSE could not accept those messed parameters. &lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 13:46:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2108677#M49484</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-06-02T13:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: KeyDerivation Copy parameters issue</title>
      <link>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2109210#M49511</link>
      <description>Thank you</description>
      <pubDate>Tue, 03 Jun 2025 06:45:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/KeyDerivation-Copy-parameters-issue/m-p/2109210#M49511</guid>
      <dc:creator>kerti1</dc:creator>
      <dc:date>2025-06-03T06:45:59Z</dc:date>
    </item>
  </channel>
</rss>

