<?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: How to Load SHE Master ECU Key using NXP S32K144 and Autosar Crypto MCAL Driver in S32K</title>
    <link>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2124784#M50329</link>
    <description>&lt;P&gt;So in that case calculation and value's of m1, m2, m3 also need to be done. Is their any function available in Crypto MCAL API's for calculation m1, m2 and m3??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like their is computerm1m2m3() avaliale for Non autosar SDK of S32K144:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kual_gettobyte_0-1751026349322.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345094iD9C3C20AAA58EAE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kual_gettobyte_0-1751026349322.png" alt="kual_gettobyte_0-1751026349322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the case of using Autosar Crypto MCAL APIs we have to create function for m1m2m3 by ourselves?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jun 2025 12:13:56 GMT</pubDate>
    <dc:creator>kual_gettobyte</dc:creator>
    <dc:date>2025-06-27T12:13:56Z</dc:date>
    <item>
      <title>How to Load SHE Master ECU Key using NXP S32K144 and Autosar Crypto MCAL Driver</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2122398#M50206</link>
      <description>&lt;P&gt;I am using NXP S32K144 MCU and using Autosar MCAL Crypto Driver.&lt;/P&gt;&lt;P&gt;I want to import AES ECB Key's in Key Slot: KEY_1, but doing so i need to at first load MASTER ECU KEY.&lt;/P&gt;&lt;P&gt;So does in configure Master ECU Key in MCAL Crypto GUI window.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kunal_Gettobyte_1-1750784569047.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344424iEBAB3EF42344EA97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kunal_Gettobyte_1-1750784569047.png" alt="Kunal_Gettobyte_1-1750784569047.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But on using the API()&amp;nbsp;Crypto_KeyElementSet(), i find our that&amp;nbsp;&amp;nbsp;Crypto_Ipw_ImportKey() which is used inside this function for importing the key, have a if else condition :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kunal_Gettobyte_0-1750784426783.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344423i62AF7D90EBAFDA88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kunal_Gettobyte_0-1750784426783.png" alt="Kunal_Gettobyte_0-1750784426783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in the case of MASTER ECU KEY ID, it doesnt fall in this if-else... so my master ecu key doesnt get loaded in CSEc SHE Peripheral IP!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Because of which am not able to import any key data on key slot's 1 to n.&lt;BR /&gt;&lt;BR /&gt;So is the Crypto driver has bug!?? or is it some wrong at my end??&lt;BR /&gt;&lt;BR /&gt;I basically want to import AES ECB and CBC key's at Key Slot 1 to n, but via Autosar MCAL Crypto Driver. How to do that!????&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 17:03:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2122398#M50206</guid>
      <dc:creator>Kunal_Gettobyte</dc:creator>
      <dc:date>2025-06-24T17:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load SHE Master ECU Key using NXP S32K144 and Autosar Crypto MCAL Driver</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2124761#M50324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208947"&gt;@Kunal_Gettobyte&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are supposed to set CryptoKeyElementWriteAccess as CRYPTO_WA_ENCRYPTED.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Per SHE specification, only RAM key can be imported in plain. NVM keys must be imported encrypted via secure memory update protocol defined by SHE spec.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1751022496743.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345086i0CCA79FA0EDAAF2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1751022496743.png" alt="lukaszadrapa_0-1751022496743.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then the "if" condition will pass:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1751022549768.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345087iCB7CFDDC5252083C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1751022549768.png" alt="lukaszadrapa_1-1751022549768.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 11:09:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2124761#M50324</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-06-27T11:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load SHE Master ECU Key using NXP S32K144 and Autosar Crypto MCAL Driver</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2124784#M50329</link>
      <description>&lt;P&gt;So in that case calculation and value's of m1, m2, m3 also need to be done. Is their any function available in Crypto MCAL API's for calculation m1, m2 and m3??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like their is computerm1m2m3() avaliale for Non autosar SDK of S32K144:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kual_gettobyte_0-1751026349322.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345094iD9C3C20AAA58EAE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kual_gettobyte_0-1751026349322.png" alt="kual_gettobyte_0-1751026349322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the case of using Autosar Crypto MCAL APIs we have to create function for m1m2m3 by ourselves?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 12:13:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2124784#M50329</guid>
      <dc:creator>kual_gettobyte</dc:creator>
      <dc:date>2025-06-27T12:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Load SHE Master ECU Key using NXP S32K144 and Autosar Crypto MCAL Driver</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2124788#M50330</link>
      <description>&lt;P&gt;There's no CRYPTO MCAL API because this is not defined in Autosar specification.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In RTD drivers, you can find function&amp;nbsp;App_LoadCsecKey called from&amp;nbsp;App_EraseCsecKeys which shows how to calculate the M1-M3 values using Ip layer. The example can be found at path like this:&lt;/P&gt;
&lt;P&gt;c:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Crypto_TS_T40D2M20I0R0\examples\S32DS\S32K1\Crypto_AesEncDec_S32K144\src\main.c&lt;/P&gt;
&lt;P&gt;But anyway, this is usually not done in application. Keys are never distributed in plain form, the keys are always distributed in encrypted format as M1-M3 values. So, there's no reason to have such function in Crypto driver.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 12:26:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Load-SHE-Master-ECU-Key-using-NXP-S32K144-and-Autosar/m-p/2124788#M50330</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-06-27T12:26:53Z</dc:date>
    </item>
  </channel>
</rss>

