<?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: Request for PC-side GMAC example for S32K344 Basic Secure Boot in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/m-p/2161638#M52309</link>
    <description>it's work! thanks</description>
    <pubDate>Tue, 02 Sep 2025 00:43:18 GMT</pubDate>
    <dc:creator>mws</dc:creator>
    <dc:date>2025-09-02T00:43:18Z</dc:date>
    <item>
      <title>Request for PC-side GMAC example for S32K344 Basic Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/m-p/2156856#M52094</link>
      <description>&lt;P&gt;Hello NXP Team,&lt;/P&gt;&lt;P&gt;I’m testing &lt;STRONG&gt;Basic Secure Boot&lt;/STRONG&gt; on &lt;STRONG&gt;S32K344&lt;/STRONG&gt;. I have extended the sample image &lt;STRONG&gt;S32K344_SecureBootBlinky.bin&lt;/STRONG&gt; (AppBootHeader + App) to &lt;STRONG&gt;0x40 + 0x1000&lt;/STRONG&gt; bytes. I’m trying to write a &lt;STRONG&gt;PC-side GMAC calculation tool&lt;/STRONG&gt; so that the tag I compute matches what HSE produces, but so far I cannot obtain the same GMAC tag as HSE.&lt;/P&gt;&lt;P&gt;Could you please provide a &lt;STRONG&gt;PC-side reference implementation&lt;/STRONG&gt; (any language is fine; C or Python would be ideal) that reproduces the HSE GMAC for Basic Secure Boot?&lt;/P&gt;&lt;P&gt;Because I cannot share my actual IV and ADKP, please feel free to &lt;STRONG&gt;choose arbitrary test values&lt;/STRONG&gt;. A minimal package with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Short test payload (binary),&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Example &lt;STRONG&gt;ADKP&lt;/STRONG&gt; (16 bytes) and the exact &lt;STRONG&gt;key derivation&lt;/STRONG&gt; used by Basic Secure Boot,&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;IV&lt;/STRONG&gt; (12 bytes),&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Expected &lt;STRONG&gt;GMAC tag&lt;/STRONG&gt; (16 bytes),&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;And the &lt;STRONG&gt;required image layout&lt;/STRONG&gt; (including where/how to place IV and tag at the end)&lt;BR /&gt;would be perfect.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Attachment:&lt;/STRONG&gt; my extended S32K344_SecureBootBlinky binary (AppBootHeader + App = 0x40 + 0x1000).&lt;/P&gt;&lt;P&gt;If there is already an official PC-side example or a validated test vector for S32K344 Basic Secure Boot, a link or zip would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you for your support!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 16:26:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/m-p/2156856#M52094</guid>
      <dc:creator>mws</dc:creator>
      <dc:date>2025-08-22T16:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Request for PC-side GMAC example for S32K344 Basic Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/m-p/2157544#M52133</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/254028"&gt;@mws&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not something what we should provide but I spent some time on this because it's useful for me too. See attached python script. It contains ADKP (it's the same as in HSE_DemoExamples because I have already programmed this on my board). Then it expects file&amp;nbsp;image.bin (pure binary format). It should contain the header+image+IV. The result can be found in generated gmac_tag.txt.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works on my side, I got the same GMAC as generated by HSE using service hseBootDataImageSignSrv_t. I reused example&amp;nbsp;S32K344_Basic_SecureBoot which uses&amp;nbsp;hseBootDataImageSignSrv_t to generate IV and GMAC. And it also programs it behind the image. Then I just exported header+image+IV to binary file and use that to develop the script. When calculating GMAC externally, user needs to provide the IV. You can either provide IV in the bin file as I did or you can change the script as necessary.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 11:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/m-p/2157544#M52133</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-08-25T11:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Request for PC-side GMAC example for S32K344 Basic Secure Boot</title>
      <link>https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/m-p/2161638#M52309</link>
      <description>it's work! thanks</description>
      <pubDate>Tue, 02 Sep 2025 00:43:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Request-for-PC-side-GMAC-example-for-S32K344-Basic-Secure-Boot/m-p/2161638#M52309</guid>
      <dc:creator>mws</dc:creator>
      <dc:date>2025-09-02T00:43:18Z</dc:date>
    </item>
  </channel>
</rss>

