<?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>i.MX ProcessorsのトピックRe: imx8qxp secure boot AHAB_BAD_KEY_HASH_IND</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-secure-boot-AHAB-BAD-KEY-HASH-IND/m-p/2151569#M240077</link>
    <description>&lt;P&gt;The event tells that the key hash verification does not match OTP.&lt;/P&gt;
&lt;P&gt;There may be problem with your SRK TABLE hash calculation. Have a try to compare SRK TABLE and Fuse hash values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
    <pubDate>Wed, 13 Aug 2025 09:49:10 GMT</pubDate>
    <dc:creator>Harvey021</dc:creator>
    <dc:date>2025-08-13T09:49:10Z</dc:date>
    <item>
      <title>imx8qxp secure boot AHAB_BAD_KEY_HASH_IND</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-secure-boot-AHAB-BAD-KEY-HASH-IND/m-p/2149283#M239991</link>
      <description>&lt;P&gt;We are signing imx-boot and linux-imx using a HSM, cst_signer, CST 3.4.0.&lt;/P&gt;&lt;P&gt;Before issuing a ahab_close, verifying SECO events with ahab_status, we see the following in u-boot:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;=&amp;gt; ahab_status&lt;BR /&gt;Lifecycle: 0x0020, NXP closed&lt;/P&gt;&lt;P&gt;SECO Event[0] = 0x0087FA00&lt;BR /&gt;CMD = AHAB_AUTH_CONTAINER_REQ (0x87)&lt;BR /&gt;IND = AHAB_BAD_KEY_HASH_IND (0xFA)&lt;/P&gt;&lt;P&gt;sc_seco_get_event: idx: 1, res:3&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Reading the SRK OTP values from u-boot, using fuse read 0 730 16 results in the values we have in our uuu script.&lt;/P&gt;&lt;P&gt;We cannot understand where that mismatch is coming from. Any help what we could verify that or guidance in how to debug it would be appreciated.&lt;/P&gt;&lt;P&gt;If any additional info is required to help us to solve this issue, we can provide it.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;Summary of the commands we are running, our build is yocto-based.&lt;/P&gt;&lt;P&gt;We export from the HSM 4 certificates, let's call them cert{1,2,3,4}.pem.&lt;/P&gt;&lt;P&gt;create table.bin and fuse.bin&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;.../cst-3.4.0/linux64/bin/srktool -a -s sha384 -t table.bin \&lt;BR /&gt;-e fuse.bin -f 1 \&lt;BR /&gt;-c cert1.pem,cert2.pem,cert3.pem,cert4.pem&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;linux-imx:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;.../cst_signer -d -i flash_os.bin -c csf.cfg --pkcs11&lt;BR /&gt;mv signed-flash_os.bin os_cntr_signed.bin&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;imx-boot:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;cst_signer -d -i imx-boot-imx8qxp-d7-sd.bin-flash -c csf.cfg --pkcs11&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Note: the --pkcs11 flag on cst_signer is a patch we've added. It just adds the -b pkcs11 to the call to cst.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;csf.cfg looks like this&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;#Header&lt;BR /&gt;header_version=1.0&lt;BR /&gt;#Install SRK&lt;BR /&gt;srktable_file=SRK_1_2_3_4_table.bin&lt;BR /&gt;srk_source=pkcs11:model=YubiHSM;token=YubiHSM;object=./SRK1_sha384_p384_v3_usr;type=cert;pin-value=xxyyxxyyxxyyxxyy&lt;BR /&gt;srk_source_index=0&lt;BR /&gt;srk_source_set=OEM&lt;BR /&gt;srk_revocations=0x0&lt;BR /&gt;#Install Certificate&lt;BR /&gt;sgk_file=&lt;BR /&gt;sgk_permissions=&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;PKI tree in the HSM params:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Existing CA: N&lt;BR /&gt;Use ECC: Y&lt;BR /&gt;Key Length: p384&lt;BR /&gt;Digest Algorithm: sha384&lt;BR /&gt;Duration: 5 years&lt;BR /&gt;SRK CA: N&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 08 Aug 2025 14:47:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-secure-boot-AHAB-BAD-KEY-HASH-IND/m-p/2149283#M239991</guid>
      <dc:creator>eduardo3</dc:creator>
      <dc:date>2025-08-08T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp secure boot AHAB_BAD_KEY_HASH_IND</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-secure-boot-AHAB-BAD-KEY-HASH-IND/m-p/2151569#M240077</link>
      <description>&lt;P&gt;The event tells that the key hash verification does not match OTP.&lt;/P&gt;
&lt;P&gt;There may be problem with your SRK TABLE hash calculation. Have a try to compare SRK TABLE and Fuse hash values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 09:49:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-secure-boot-AHAB-BAD-KEY-HASH-IND/m-p/2151569#M240077</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-08-13T09:49:10Z</dc:date>
    </item>
  </channel>
</rss>

