<?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>S32KのトピックRe: S32K324 - Crypto_KeyElementSet duration is too long (~60ms) when SHE container loaded</title>
    <link>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1748689#M28246</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/36216"&gt;@ovidiubriscan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. I can't download your project on the GitHub because this is violate the security policy of NXP.&lt;/P&gt;
&lt;P&gt;Could you attach your project on this link?&lt;/P&gt;
&lt;P&gt;2. Follow to the Release Note of S32K3 3.0.0 P07: "&lt;EM&gt;&lt;SPAN class="fontstyle0"&gt;All of the drivers (&lt;STRONG&gt;except CRYPTO&lt;/STRONG&gt;) support ASR R21-11 and are also highly backwards compatible with ASR 4.4, ASR R19-11, ASR R20-11.&lt;/SPAN&gt;&lt;/EM&gt;" So, most likely, the potential issues can occur when you use this package version. I proposal you should use&amp;nbsp;SW32K3_RTD_R21-11_3.0.0 for your project (this package tested S32K344 with&amp;nbsp;&lt;SPAN&gt;s32k3x4_hse_fw_0.5.0_2.1.0).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 11:34:56 GMT</pubDate>
    <dc:creator>DanNguyenDuy</dc:creator>
    <dc:date>2023-10-30T11:34:56Z</dc:date>
    <item>
      <title>S32K324 - Crypto_KeyElementSet duration is too long (~60ms) when SHE container loaded</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1744485#M28077</link>
      <description>&lt;P&gt;Hi NXP community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am involved in a S32K324 project, where HSE_B FW 2.1.0 is used. We have 2 use case where this API is failing :&lt;/P&gt;&lt;P&gt;1) FBL (Bootloader) 1st message on CAN within 300ms --&amp;gt; KeyElementSet duration is ~60ms and we initialize 5 keys so all time is eaten by Crypto DRV / HSE_B FW&lt;/P&gt;&lt;P&gt;2) APPL : Update of a SHE key is triggered from an not preemptive task (WDG reset is triggered) due to large duration of the execution of KeyElementSet API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So assumption is the problem is on the other side (not host) in HSE_B while handling SHE crypto material and implicit NVM immediate handling of the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to tackle this issue ? (Note: at CSM level according to AUTOSAR specification requirement SWS_Csm_00957 this API Csm_KeyElementSet cannot be configured as async).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Ovidiu&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 12:21:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1744485#M28077</guid>
      <dc:creator>ovidiubriscan</dc:creator>
      <dc:date>2023-10-23T12:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 - Crypto_KeyElementSet duration is too long (~60ms) when SHE container loaded</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1748340#M28236</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/36216"&gt;@ovidiubriscan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What is the RTD package you are using?&lt;/P&gt;
&lt;P&gt;Could you send me the configuration files?(as .xdm files or .arxml files)&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 06:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1748340#M28236</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-10-30T06:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 - Crypto_KeyElementSet duration is too long (~60ms) when SHE container loaded</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1748584#M28242</link>
      <description>&lt;P&gt;Hi Dan, thanks for your interest into this topic,&amp;nbsp;&lt;/P&gt;&lt;P&gt;On HSE_B side we have :&amp;nbsp;s32k3x4_hse_fw_0.5.0_2.1.0_pb220625.bin.pink (FULL_MEM)&lt;/P&gt;&lt;P&gt;On host side we have :&amp;nbsp;RTD 3.0.0 P07&lt;/P&gt;&lt;P&gt;But i think i saw this in the latest HSE_B FW also (0.2.40.0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the configuration, i am not sure it is relevant, for testing purposes, use one catalog, 1 nvm key (KEY_1 (0x04)) , and call the Crypto_KeyElementSet with the M1 | M2 | M3 packages (which will eventually translate to a&amp;nbsp;HSE_SRV_ID_SHE_LOAD_KEY&amp;nbsp;0x0000A101UL service) , for the container calculations you can use this :&amp;nbsp;&lt;A href="https://github.com/frankie-zeng/ECUBus/releases" target="_blank"&gt;https://github.com/frankie-zeng/ECUBus/releases&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Key Id - KEY_1 (0x04)&amp;nbsp;&lt;/P&gt;&lt;P&gt;New key - any 16 bytes&amp;nbsp;&lt;/P&gt;&lt;P&gt;Auth key - previous value of KEY_1 which is all zeros&amp;nbsp;&lt;/P&gt;&lt;P&gt;Counter - 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flags - wildcard (UID is all zeros)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ovidiu&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 09:23:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1748584#M28242</guid>
      <dc:creator>ovidiubriscan</dc:creator>
      <dc:date>2023-10-30T09:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 - Crypto_KeyElementSet duration is too long (~60ms) when SHE container loaded</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1748689#M28246</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/36216"&gt;@ovidiubriscan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. I can't download your project on the GitHub because this is violate the security policy of NXP.&lt;/P&gt;
&lt;P&gt;Could you attach your project on this link?&lt;/P&gt;
&lt;P&gt;2. Follow to the Release Note of S32K3 3.0.0 P07: "&lt;EM&gt;&lt;SPAN class="fontstyle0"&gt;All of the drivers (&lt;STRONG&gt;except CRYPTO&lt;/STRONG&gt;) support ASR R21-11 and are also highly backwards compatible with ASR 4.4, ASR R19-11, ASR R20-11.&lt;/SPAN&gt;&lt;/EM&gt;" So, most likely, the potential issues can occur when you use this package version. I proposal you should use&amp;nbsp;SW32K3_RTD_R21-11_3.0.0 for your project (this package tested S32K344 with&amp;nbsp;&lt;SPAN&gt;s32k3x4_hse_fw_0.5.0_2.1.0).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 11:34:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1748689#M28246</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-10-30T11:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 - Crypto_KeyElementSet duration is too long (~60ms) when SHE container loaded</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1752665#M28418</link>
      <description>&lt;P&gt;Hi, seem there is a work around about this proposed by NXP team, the work around consists in enabling the HSE attribute&amp;nbsp;&lt;SPAN&gt;HSE_ENABLE_PUBLISH_KEY_STORE_RAM_TO_FLASH_ATTR_ID&lt;/SPAN&gt; this way splitting somehow the update of the new SHE key (secure RAM vs secure NVRAM), and service &lt;SPAN&gt;HSE_SRV_ID_PUBLISH_NVM_KEYSTORE_RAM_TO_FLASH&amp;nbsp;&lt;/SPAN&gt;need to be called afterwards in a preemptive context as it will take a while to force a writing/save key from secure RAM to secure NVRAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not a pretty solution, as the atomicity of the call Crypto_KeyElementSet is broken, giving the possibility to loose the new updated key (as it is saved only to secure RAM) if an unexpected reset happens on the host side.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 08:53:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-Crypto-KeyElementSet-duration-is-too-long-60ms-when-SHE/m-p/1752665#M28418</guid>
      <dc:creator>ovidiubriscan</dc:creator>
      <dc:date>2023-11-06T08:53:44Z</dc:date>
    </item>
  </channel>
</rss>

