<?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: HSE S32K358 Demo - Update Key Handle Problem</title>
    <link>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1787409#M30552</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226044"&gt;@Yetkin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you show me value of used key handle and how the key catalogs are defined? You can take a look at Table 45 in the HSE-B Firmware Reference Manual v2.2. It shows some examples of valid and invalid key handle value based on catalogs defined on previous page. This could help to find the root cause.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 17:38:09 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2024-01-11T17:38:09Z</dc:date>
    <item>
      <title>HSE S32K358 Demo - Update Key Handle Problem</title>
      <link>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1784460#M30381</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I installed HSE firmware and demo app software on S32K358. However, when I try to load a AES key that has different key handle value, HSE responses as invalid param (0x55A5A399). I also formatted key catalogs after changing key handle value. What is the reason of it? How can I solve this?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 13:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1784460#M30381</guid>
      <dc:creator>Yetkin</dc:creator>
      <dc:date>2024-01-08T13:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: HSE S32K358 Demo - Update Key Handle Problem</title>
      <link>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1787409#M30552</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226044"&gt;@Yetkin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you show me value of used key handle and how the key catalogs are defined? You can take a look at Table 45 in the HSE-B Firmware Reference Manual v2.2. It shows some examples of valid and invalid key handle value based on catalogs defined on previous page. This could help to find the root cause.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1787409#M30552</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-01-11T17:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: HSE S32K358 Demo - Update Key Handle Problem</title>
      <link>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1789241#M30687</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;I do not have the reference manual that you mentioned. Could you share Table 45 with me if it won't be a problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the codes from the HSE demo software. I only changed the group indexes of related key handle values as you can see.&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Points to an ECC key pair NVM slot */&lt;BR /&gt;/* #define HSE_DEMO_SHE_RAM_KEY_HANDLE GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_RAM, 0, 0) Original key handle*/&lt;BR /&gt;#define HSE_DEMO_SHE_RAM_KEY_HANDLE GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_RAM, 1, 0)&lt;/P&gt;&lt;P&gt;/* #define HSE_DEMO_RAM_AES128_KEY0 GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_RAM, 1, 0) Original key handle */&lt;BR /&gt;#define HSE_DEMO_RAM_AES128_KEY0 GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_RAM, 0, 0)&lt;BR /&gt;#define HSE_DEMO_RAM_AES128_KEY1 GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_RAM, 1, 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/** @brief HSE RAM key catalog configuration*/&lt;BR /&gt;#define HSE_DEMO_RAM_KEY_CATALOG_CFG \&lt;BR /&gt;/* keyType numOfKeySlots maxKeyBitLen*/ \&lt;BR /&gt;/* Symmetric key */ \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_SHE, 1U, HSE_KEY128_BITS}, /* KEY_RAM */ \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_AES, 10U, HSE_KEY128_BITS}, \&lt;BR /&gt;{HSE_MU0_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_AES, 10U, HSE_KEY256_BITS}, /* HMAC key */ \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_HMAC, 6U, HSE_KEY1024_BITS}, /* RSA key */ \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_RSA_PUB, 2U, HSE_KEY2048_BITS}, \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_RSA_PUB_EXT, 1U, HSE_KEY1024_BITS}, \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, WRP_KEY_TYPE_ECC_PAIR, 2U, WRP_ECC_KEY_SIZE}, \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, WRP_KEY_TYPE_ECC_PUB, 5U, WRP_ECC_KEY_SIZE}, \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_SHARED_SECRET, 2U, HSE_KEY638_BITS}, \&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_SHARED_SECRET, 1U, HSE_KEY2048_BITS}, \&lt;BR /&gt;{ \&lt;BR /&gt;0U, 0U, 0U, 0U, 0U \&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Yetkin&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 07:47:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1789241#M30687</guid>
      <dc:creator>Yetkin</dc:creator>
      <dc:date>2024-01-16T07:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: HSE S32K358 Demo - Update Key Handle Problem</title>
      <link>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1790058#M30742</link>
      <description>&lt;P&gt;The HSE FW reference manual can be downloaded in this page:&lt;BR /&gt;&lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/s32-automotive-platform/s32k-auto-general-purpose-mcus/s32k3-microcontrollers-for-automotive-general-purpose:S32K3" target="_blank"&gt;https://www.nxp.com/products/processors-and-microcontrollers/s32-automotive-platform/s32k-auto-general-purpose-mcus/s32k3-microcontrollers-for-automotive-general-purpose:S32K3&lt;/A&gt;&lt;BR /&gt;Go to the Documentation -&amp;gt; Secure Files. Here you should find "HSE-B Firmware Reference Manual - V2.2", document number RM758222.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In case of:&lt;BR /&gt;#define HSE_DEMO_SHE_RAM_KEY_HANDLE GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_RAM, 1, 0)&lt;BR /&gt;... you are trying to put SHE key to group HSE_KEY_TYPE_AES:&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_AES, 10U, HSE_KEY128_BITS}&lt;BR /&gt;You need to make sure that the key type matches the group type.&lt;/P&gt;
&lt;P&gt;In case of:&lt;BR /&gt;#define HSE_DEMO_RAM_AES128_KEY0 GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_RAM, 0, 0)&lt;BR /&gt;... you are trying to put AES key to group HSE_KEY_TYPE_SHE:&lt;BR /&gt;{HSE_ALL_MU_MASK, HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_SHE, 1U, HSE_KEY128_BITS}&lt;/P&gt;
&lt;P&gt;And in case of:&lt;BR /&gt;#define HSE_DEMO_RAM_AES128_KEY1 GET_KEY_HANDLE(HSE_KEY_CATALOG_ID_RAM, 1, 1)&lt;BR /&gt;... this one should work.&lt;/P&gt;
&lt;P&gt;Please take a look at the manual as I wrote earlier.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 07:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-S32K358-Demo-Update-Key-Handle-Problem/m-p/1790058#M30742</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-01-17T07:25:43Z</dc:date>
    </item>
  </channel>
</rss>

