<?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のトピックS32K144 CSEc CMAC Verify</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-CMAC-Verify/m-p/2129129#M50611</link>
    <description>&lt;P&gt;Hello, I have encountered some issues here. When I was using CSEc's CMAC verification, I found that the message length I verified was 10500 or 105600. The CSEC_DRV_VerifyMAC function would tell me that there was an ERC_SQUENCE-ERROR, but my size changed to 105601105602 and I succeeded. What is the reason for this?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jul 2025 08:07:14 GMT</pubDate>
    <dc:creator>soulyoung</dc:creator>
    <dc:date>2025-07-07T08:07:14Z</dc:date>
    <item>
      <title>S32K144 CSEc CMAC Verify</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-CMAC-Verify/m-p/2129129#M50611</link>
      <description>&lt;P&gt;Hello, I have encountered some issues here. When I was using CSEc's CMAC verification, I found that the message length I verified was 10500 or 105600. The CSEC_DRV_VerifyMAC function would tell me that there was an ERC_SQUENCE-ERROR, but my size changed to 105601105602 and I succeeded. What is the reason for this?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 08:07:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-CMAC-Verify/m-p/2129129#M50611</guid>
      <dc:creator>soulyoung</dc:creator>
      <dc:date>2025-07-07T08:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 CSEc CMAC Verify</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-CSEc-CMAC-Verify/m-p/2130879#M50724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/222770"&gt;@soulyoung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I confirmed there's a bug in the SDK driver.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It won't work if the message length is:&lt;/P&gt;
&lt;P&gt;from 641 to 768&lt;/P&gt;
&lt;P&gt;from 1537 to 1664&lt;/P&gt;
&lt;P&gt;from 2433 to 2560&lt;/P&gt;
&lt;P&gt;etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's wrong logic when writing MAC to CSEC PRAM memory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SDK is not maintained anymore, so it won't be updated. But you can fix it like this:&lt;/P&gt;
&lt;P&gt;Find&amp;nbsp;CSEC_DRV_StartVerifMACCmd function in csec_driver.c and replace this line:&lt;/P&gt;
&lt;P&gt;if ((macOffset + CSEC_PAGE_SIZE_IN_BYTES) &amp;lt; CSEC_DATA_BYTES_AVAILABLE)&lt;/P&gt;
&lt;P&gt;with this line:&lt;/P&gt;
&lt;P&gt;if ((g_csecStatePtr-&amp;gt;fullSize - g_csecStatePtr-&amp;gt;index) &amp;lt;= (CSEC_DATA_BYTES_AVAILABLE - CSEC_PAGE_SIZE_IN_BYTES))&lt;/P&gt;
&lt;P&gt;Then it should work.&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>Wed, 09 Jul 2025 11:05:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-CSEc-CMAC-Verify/m-p/2130879#M50724</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-07-09T11:05:34Z</dc:date>
    </item>
  </channel>
</rss>

