<?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: RAM KEY loading with Crypto_43_HSE RTD v5.0.0 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/RAM-KEY-loading-with-Crypto-43-HSE-RTD-v5-0-0/m-p/2084563#M47992</link>
    <description>&lt;P&gt;Also, I just wanted to add that I performed the HSE KeyCatalog formatting just one time at the HSE installation. At startup I only perform the Crypto_43_HSE_Init.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2025 10:27:23 GMT</pubDate>
    <dc:creator>strofald</dc:creator>
    <dc:date>2025-04-22T10:27:23Z</dc:date>
    <item>
      <title>RAM KEY loading with Crypto_43_HSE RTD v5.0.0</title>
      <link>https://community.nxp.com/t5/S32K/RAM-KEY-loading-with-Crypto-43-HSE-RTD-v5-0-0/m-p/2084561#M47991</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using Crypto_43_HSE RTD v5.0.0.&lt;BR /&gt;I want to load a new RAM_KEY in the HSE.&lt;/P&gt;&lt;P&gt;I configured the RAM Key in the following way:&lt;BR /&gt;CryptoKeyType is formed by: CipherProof, KeyMaterial, MacProof.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;RAM KEY Key Material is configured as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="strofald_0-1745316998376.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334228i4DD05023780C79EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="strofald_0-1745316998376.png" alt="strofald_0-1745316998376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(no HseKeyFlags are configured)&lt;BR /&gt;with the related ram key catalog:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="strofald_2-1745317044275.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334230i208B44968B584BEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="strofald_2-1745317044275.png" alt="strofald_2-1745317044275.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;accessible by both MU instances 0 and 1.&lt;/P&gt;&lt;P&gt;I am trying to import the RAM Key as an encrypted key, thus by using calculation of M1M2M3. I am able to calculate M1, M2 and M3 correctly (I already checked the correctness by trying to import the NvM catalog keys and the import was successful).&lt;BR /&gt;The M1M2M3 values I have are configured according to the following parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new_key&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB\xAB&lt;/SPAN&gt;&lt;SPAN&gt;' #key I want to import&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;auth_key&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F&lt;/SPAN&gt;&lt;SPAN&gt;' #my master key&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uid&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;000000000000000000000000000000&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new_key_id&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;AutosarKeySlots&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;RAM_KEY (0x0E)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;auth_key_id&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;AutosarKeySlots&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MASTER_ECU_KEY (0x01)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;counter&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;flags&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fid&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt; &lt;SPAN&gt;# all flags set to zero&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the calculated M1M2M3 values are:&lt;BR /&gt;static uint8 sKeyUpdateM1M2M3[64u] __attribute__((aligned)) =&lt;BR /&gt;{&lt;BR /&gt;/* M1 */&lt;BR /&gt;0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe1,&lt;BR /&gt;/* M2 */&lt;BR /&gt;0x2b, 0x11, 0x1e, 0x2d, 0x93, 0xf4, 0x86, 0x56, 0x6b, 0xcb, 0xba, 0x1d, 0x7f, 0x7a, 0x97, 0x97, 0x29, 0x8d, 0x4e, 0xa0, 0x6, 0xa2, 0x80, 0xc1, 0x5d, 0xd2, 0xa3, 0xe5, 0x6f, 0x4f, 0x5b, 0x6,&lt;BR /&gt;/* M3 */&lt;BR /&gt;0x4c, 0x1b, 0xcb, 0x77, 0x87, 0xb3, 0x9, 0x19, 0xfb, 0x6e, 0x73, 0x9c, 0xa6, 0xab, 0x48, 0xf4,&lt;BR /&gt;};&lt;BR /&gt;When I try to call the Crypto_43_HSE_KeyElementSet with the cryptoKeyId=&lt;SPAN&gt;CryptoConf_CryptoKey_CryptoKey_SHE_RAM_KEY and by using the M1M2M3 values that I provided above, I get the result code =0x09 that should mean&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CRYPTO_E_KEY_NOT_VALID, returned upon HSE responding with status code&amp;nbsp;HSE_SRV_RSP_KEY_INVALID.&lt;BR /&gt;What could be the cause of this issue? Is there any configuration step that I have missed?&lt;BR /&gt;Kind regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 10:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RAM-KEY-loading-with-Crypto-43-HSE-RTD-v5-0-0/m-p/2084561#M47991</guid>
      <dc:creator>strofald</dc:creator>
      <dc:date>2025-04-22T10:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: RAM KEY loading with Crypto_43_HSE RTD v5.0.0</title>
      <link>https://community.nxp.com/t5/S32K/RAM-KEY-loading-with-Crypto-43-HSE-RTD-v5-0-0/m-p/2084563#M47992</link>
      <description>&lt;P&gt;Also, I just wanted to add that I performed the HSE KeyCatalog formatting just one time at the HSE installation. At startup I only perform the Crypto_43_HSE_Init.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 10:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RAM-KEY-loading-with-Crypto-43-HSE-RTD-v5-0-0/m-p/2084563#M47992</guid>
      <dc:creator>strofald</dc:creator>
      <dc:date>2025-04-22T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: RAM KEY loading with Crypto_43_HSE RTD v5.0.0</title>
      <link>https://community.nxp.com/t5/S32K/RAM-KEY-loading-with-Crypto-43-HSE-RTD-v5-0-0/m-p/2084570#M47995</link>
      <description>&lt;P&gt;I solved the problem by changing the parameters used to calculate M1M2M3. According to AUTOSAR standard, the RAM Key must have flags and counter set to zero, and it can be updated only by using one of the other KEY_n (KEY1...KEY10) as authentication keys. By doing so, I was able to load the RAM Key correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 10:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RAM-KEY-loading-with-Crypto-43-HSE-RTD-v5-0-0/m-p/2084570#M47995</guid>
      <dc:creator>strofald</dc:creator>
      <dc:date>2025-04-22T10:39:38Z</dc:date>
    </item>
  </channel>
</rss>

