<?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: Issue with the decapsulation of data using CAAM in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1485664#M192255</link>
    <description>&lt;P&gt;I see the same problem with the same kernel/patches I just did today. Is anybody at NXP going to respond (it has been almost a year after all...)&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 19:03:11 GMT</pubDate>
    <dc:creator>flobro</dc:creator>
    <dc:date>2022-07-06T19:03:11Z</dc:date>
    <item>
      <title>Issue with the decapsulation of data using CAAM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1302205#M176388</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am working on i.MX 8QM custom development board. I was trying to encrypt and decrypt the data using CAAM.&lt;BR /&gt;Referred the AN12554.pdf document and the following URL:&lt;BR /&gt;&lt;U&gt;&lt;A href="https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs/README.txt" target="_blank"&gt;https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs/README.txt&lt;/A&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Encapsulation of data is working. But decapsulation of the data failed with below error:&lt;BR /&gt;&lt;STRONG&gt;caam_jr 31430000.jr: Decapsulation job failed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Encryption of data also failed with the same error. Can anybody help me out?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 05:32:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1302205#M176388</guid>
      <dc:creator>joyal</dc:creator>
      <dc:date>2021-07-05T05:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the decapsulation of data using CAAM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1306330#M176773</link>
      <description>&lt;P&gt;Can you please provide which BSP are you using, and some test logs, to see the error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 18:40:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1306330#M176773</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2021-07-12T18:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the decapsulation of data using CAAM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1308802#M177033</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Sorry for the late reply.&lt;BR /&gt;I am using L5.4.24 BSP, the caam driver for 5.4.47 kernel with the patch applied to generate red/black blobs using CAAM and to encrypt/decrypt data.&lt;/P&gt;&lt;P&gt;Referring the following URL:&lt;BR /&gt;&lt;A href="https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs/README.txt" target="_blank"&gt;https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs/README.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Below are the system log:&lt;/P&gt;&lt;P&gt;Jul 13 05:09:20 iWave-G27M login[1037]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)&lt;BR /&gt;Jul 13 05:09:21 iWave-G27M login[1095]: ROOT LOGIN on '/dev/ttyLP4'&lt;BR /&gt;Jul 13 05:12:18 iWave-G27M kernel: [ 190.050817] caam_jr 31430000.jr: Decapsulation job failed&lt;/P&gt;&lt;P&gt;The test log is attached for reference.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 05:03:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1308802#M177033</guid>
      <dc:creator>joyal</dc:creator>
      <dc:date>2021-07-16T05:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the decapsulation of data using CAAM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1485664#M192255</link>
      <description>&lt;P&gt;I see the same problem with the same kernel/patches I just did today. Is anybody at NXP going to respond (it has been almost a year after all...)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 19:03:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1485664#M192255</guid>
      <dc:creator>flobro</dc:creator>
      <dc:date>2022-07-06T19:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the decapsulation of data using CAAM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1486959#M192340</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(note that I am using the demo referred to in the link _ same kernel listed above and applied the patches from the same link)&lt;BR /&gt;&lt;A href="https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs/README.txt" target="_blank"&gt;https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs/README.txt&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;In further testing I have realized that even though I am seeing a bunch of:&lt;BR /&gt;"caam_jr 30902000.jr: Decapsulation job failed" messages, the encap, encrypt and decrypt functions appear to be working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the "decap"&amp;nbsp; produces a file with all zeros which is not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo desiredsecretkey &amp;gt; keyfile&lt;BR /&gt;dd if=/dev/urandom of=src bs=1 count=1000&lt;BR /&gt;./kb_test encap black keyfile blobfile&lt;BR /&gt;./kb_test encr black blobfile src srcenc&lt;BR /&gt;./kb_test decr black blobfile srcenc srcdec&lt;BR /&gt;diff src srcdec&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;./kb_test decap black blobfile blackkey&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;hexdump blobfile&lt;BR /&gt;0000000 0000 0000 0000 0000 dc80 03b1 fe00 ffff&lt;BR /&gt;0000010 8ac0 03c6 fe00 ffff 0000 0000 0000 0000&lt;BR /&gt;0000020 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;*&lt;BR /&gt;0000050&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hexdump blackkey&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;0000000 0000 0000 0000 0000 0000 0000 0000 0000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;0000020&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 17:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-the-decapsulation-of-data-using-CAAM/m-p/1486959#M192340</guid>
      <dc:creator>flobro</dc:creator>
      <dc:date>2022-07-08T17:38:55Z</dc:date>
    </item>
  </channel>
</rss>

