<?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: Perform AES-GCM encryption and decryption of plaintext using the CAAM hardware on the LS1028A bo in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Perform-AES-GCM-encryption-and-decryption-of-plaintext-using-the/m-p/2144152#M29492</link>
    <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199933"&gt;@Oswalag&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a good reference for the &lt;STRONG&gt;black key&lt;/STRONG&gt; at &lt;A href="https://gitlab.navisincontrol.com/varigit/linux-imx/-/blob/lf-5.15.y_var01/drivers/crypto/caam/caamkeyblob.c" target="_blank"&gt;https://gitlab.navisincontrol.com/varigit/linux-imx/-/blob/lf-5.15.y_var01/drivers/crypto/caam/caamkeyblob.c&lt;/A&gt; , and for &lt;STRONG&gt;AES-GCM&lt;/STRONG&gt; at &lt;A href="https://github.com/nxp-mcuxpresso/mcux-sdk/blob/main/drivers/caam/fsl_caam.c" target="_blank"&gt;https://github.com/nxp-mcuxpresso/mcux-sdk/blob/main/drivers/caam/fsl_caam.c&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 05:12:48 GMT</pubDate>
    <dc:creator>Sweet</dc:creator>
    <dc:date>2025-07-31T05:12:48Z</dc:date>
    <item>
      <title>Perform AES-GCM encryption and decryption of plaintext using the CAAM hardware on the LS1028A board</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Perform-AES-GCM-encryption-and-decryption-of-plaintext-using-the/m-p/2137506#M29384</link>
      <description>&lt;DIV&gt;I am developing a Security Engine (CAAM) driver for a Layerscape board. I’m currently looking for guidance or source code references for the following operation:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want to create a black key and use it for AES-GCM encryption/decryption of plaintext.&lt;/DIV&gt;&lt;DIV&gt;I am already able to generate a black key successfully using AES-CCM. However, I need to encrypt and decrypt the plaintext using the AES-GCM algorithm, and I'm unable to find any example code or clear steps to build the required job descriptor.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;While the Linux kernel source includes code to construct shared descriptors, I need to create a non-shared (simple) descriptor for this operation.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Additionally, could someone please explain how the black key is properly used to encrypt and decrypt data using AES-GCM? Specifically:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- How to load the black key and key modifier in the descriptor.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- How the CAAM uses this key internally for GCM encryption/decryption.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any reference links or working examples would be greatly appreciated.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 14:06:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Perform-AES-GCM-encryption-and-decryption-of-plaintext-using-the/m-p/2137506#M29384</guid>
      <dc:creator>Sweet</dc:creator>
      <dc:date>2025-07-21T14:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Perform AES-GCM encryption and decryption of plaintext using the CAAM hardware on the LS1028A bo</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Perform-AES-GCM-encryption-and-decryption-of-plaintext-using-the/m-p/2138480#M29395</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can find a reference of how to generate a black key.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/keyctl_caam" target="_blank"&gt;GitHub - nxp-imx/keyctl_caam: Keyctl CAAM Security&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DPDK default supports AES_GCM in dpaa sec driver. You can refer to DPDK source code on descriptor building in DPAA_SEC_AEAD case.&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;DPDK/drivers/crypto/dpaa_sec/dpaa_sec.c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also find more information in the &lt;A href="https://www.nxp.com/webapp/Download?colCode=LS1028ASECRM" target="_self"&gt;LS1028ASECRM&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 14:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Perform-AES-GCM-encryption-and-decryption-of-plaintext-using-the/m-p/2138480#M29395</guid>
      <dc:creator>Oswalag</dc:creator>
      <dc:date>2025-07-22T14:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perform AES-GCM encryption and decryption of plaintext using the CAAM hardware on the LS1028A bo</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Perform-AES-GCM-encryption-and-decryption-of-plaintext-using-the/m-p/2144152#M29492</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199933"&gt;@Oswalag&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a good reference for the &lt;STRONG&gt;black key&lt;/STRONG&gt; at &lt;A href="https://gitlab.navisincontrol.com/varigit/linux-imx/-/blob/lf-5.15.y_var01/drivers/crypto/caam/caamkeyblob.c" target="_blank"&gt;https://gitlab.navisincontrol.com/varigit/linux-imx/-/blob/lf-5.15.y_var01/drivers/crypto/caam/caamkeyblob.c&lt;/A&gt; , and for &lt;STRONG&gt;AES-GCM&lt;/STRONG&gt; at &lt;A href="https://github.com/nxp-mcuxpresso/mcux-sdk/blob/main/drivers/caam/fsl_caam.c" target="_blank"&gt;https://github.com/nxp-mcuxpresso/mcux-sdk/blob/main/drivers/caam/fsl_caam.c&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 05:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Perform-AES-GCM-encryption-and-decryption-of-plaintext-using-the/m-p/2144152#M29492</guid>
      <dc:creator>Sweet</dc:creator>
      <dc:date>2025-07-31T05:12:48Z</dc:date>
    </item>
  </channel>
</rss>

