<?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>LayerscapeのトピックRe: Enabling CAAM RSA Hardware Offload via User-Space (AF_ALG) on LS1046ARDB</title>
    <link>https://community.nxp.com/t5/Layerscape/Enabling-CAAM-RSA-Hardware-Offload-via-User-Space-AF-ALG-on/m-p/2356253#M16652</link>
    <description>&lt;P&gt;Thanks for the confirmation regarding AF_ALG. Since the kernel's akcipher interface is currently restricted, I am looking for the officially recommended alternative to offload RSA to the rsa-caam driver.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;cryptodev-linux:&lt;/STRONG&gt; Is the /dev/crypto interface via cryptodev-linux still the standard path for RSA offloading in LSDK 25.06?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;OpenSSL Provider/Engine:&lt;/STRONG&gt; Does NXP provide a native OpenSSL 3.x Provider for LS1046A that communicates with the CAAM Job Rings directly (bypassing AF_ALG)?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Performance:&lt;/STRONG&gt; If using cryptodev, are there known bottlenecks compared to a direct engine implementation?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My goal is to achieve RSA-2048/4096 offloading from user-space OpenSSL by any supported means.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2026 03:58:13 GMT</pubDate>
    <dc:creator>figure-it-out</dc:creator>
    <dc:date>2026-04-27T03:58:13Z</dc:date>
    <item>
      <title>Enabling CAAM RSA Hardware Offload via User-Space (AF_ALG) on LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Enabling-CAAM-RSA-Hardware-Offload-via-User-Space-AF-ALG-on/m-p/2348381#M16614</link>
      <description>&lt;P&gt;Overview&lt;/P&gt;&lt;P&gt;I am attempting to offload RSA operations to the integrated CAAM (Security Engine 5.4) on an LS1046ARDB platform. While symmetric hardware acceleration is functional, I am unable to access asymmetric (RSA) capabilities from user-space via OpenSSL.&lt;BR /&gt;System Environment&lt;/P&gt;&lt;P&gt;Hardware: LS1046ARDB (LS1046A Quad-core ARM Cortex-A72).&lt;/P&gt;&lt;P&gt;Software: Custom Linux based on LSDK 25.06 (Kernel 5.x/6.x).&lt;/P&gt;&lt;P&gt;Interface Goal: OpenSSL 3.x using the AF_ALG interface (avoiding DPDK and legacy cryptodev-linux).&lt;/P&gt;&lt;P&gt;Current Progress &amp;amp; Verification&lt;/P&gt;&lt;P&gt;The kernel appears to recognize the PKC (Public Key Cryptography) unit, as shown in dmesg:&lt;/P&gt;&lt;P&gt;caam 1700000.crypto: caam pkc algorithms registered in /proc/crypto driver : rsa-caam is present in /proc/crypto&lt;/P&gt;&lt;P&gt;The Roadblocks&lt;BR /&gt;1. Kernel Configuration (Kconfig) Issues&lt;/P&gt;&lt;P&gt;I am unable to enable CONFIG_CRYPTO_USER_API_AKCIPHER=y.&lt;/P&gt;&lt;P&gt;It does not appear in menuconfig.&lt;/P&gt;&lt;P&gt;Manual entry in .config is overwritten during the build process.&lt;/P&gt;&lt;P&gt;Requirement: What are the exact hidden dependencies (selects/depends on) required to expose the Asymmetric Key Cipher User API?&lt;/P&gt;&lt;P&gt;2. Driver &amp;amp; Hardware Specifics&lt;/P&gt;&lt;P&gt;Is CONFIG_CRYPTO_DEV_FSL_CAAM_PKC the definitive driver for LS1046A RSA offloading, and are there known regressions in recent LSDK versions for this SoC?&lt;/P&gt;&lt;P&gt;Are there mandatory Device Tree (DTS) nodes or properties required for the PKC unit specifically, beyond the standard CAAM and Job Ring nodes?&lt;/P&gt;&lt;P&gt;3. OpenSSL 3.x Integration&lt;/P&gt;&lt;P&gt;How should OpenSSL 3.x be configured to utilize rsa-caam via AF_ALG?&lt;/P&gt;&lt;P&gt;I am looking for a working openssl.conf snippet or initialization steps that bridge the OpenSSL Provider/Engine to the CAAM asymmetric backend without relying on the DPDK stack.&lt;/P&gt;&lt;P&gt;Summary of Questions&lt;/P&gt;&lt;P&gt;Which Kconfig symbols must be enabled to make CONFIG_CRYPTO_USER_API_AKCIPHER selectable?&lt;/P&gt;&lt;P&gt;Are there specific DTS requirements for the CAAM PKC module on the LS1046A?&lt;/P&gt;&lt;P&gt;What is the recommended path for OpenSSL 3.x to consume rsa-caam (AF_ALG vs. a specific NXP Provider)?&lt;/P&gt;&lt;P&gt;LSDK version 25.06&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 11:29:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Enabling-CAAM-RSA-Hardware-Offload-via-User-Space-AF-ALG-on/m-p/2348381#M16614</guid>
      <dc:creator>figure-it-out</dc:creator>
      <dc:date>2026-04-09T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CAAM RSA Hardware Offload via User-Space (AF_ALG) on LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Enabling-CAAM-RSA-Hardware-Offload-via-User-Space-AF-ALG-on/m-p/2356232#M16651</link>
      <description>&lt;P&gt;I just got confirmation from the AE team.&lt;/P&gt;
&lt;P&gt;Currently Linux kennel doesn't support asymmetric API via AF_ALG.&lt;/P&gt;
&lt;P&gt;&lt;A class="external-link" href="https://www.kernel.org/doc/html/latest/crypto/userspace-if.html" rel="nofollow noopener" target="_blank"&gt;https://www.kernel.org/doc/html/latest/crypto/userspace-if.html&lt;/A&gt;&lt;/P&gt;
&lt;DIV class="code panel"&gt;
&lt;DIV class="codeContent panelContent"&gt;
&lt;PRE class="code-java"&gt;The kernel crypto API is accessible from user space. Currently, the following ciphers are accessible:
Message digest including keyed message digest (HMAC, CMAC)
Symmetric ciphers
AEAD ciphers
Random &lt;SPAN class="code-object"&gt;Number&lt;/SPAN&gt; Generators&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Apr 2026 02:56:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Enabling-CAAM-RSA-Hardware-Offload-via-User-Space-AF-ALG-on/m-p/2356232#M16651</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2026-04-27T02:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CAAM RSA Hardware Offload via User-Space (AF_ALG) on LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Enabling-CAAM-RSA-Hardware-Offload-via-User-Space-AF-ALG-on/m-p/2356253#M16652</link>
      <description>&lt;P&gt;Thanks for the confirmation regarding AF_ALG. Since the kernel's akcipher interface is currently restricted, I am looking for the officially recommended alternative to offload RSA to the rsa-caam driver.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;cryptodev-linux:&lt;/STRONG&gt; Is the /dev/crypto interface via cryptodev-linux still the standard path for RSA offloading in LSDK 25.06?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;OpenSSL Provider/Engine:&lt;/STRONG&gt; Does NXP provide a native OpenSSL 3.x Provider for LS1046A that communicates with the CAAM Job Rings directly (bypassing AF_ALG)?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Performance:&lt;/STRONG&gt; If using cryptodev, are there known bottlenecks compared to a direct engine implementation?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My goal is to achieve RSA-2048/4096 offloading from user-space OpenSSL by any supported means.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 03:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Enabling-CAAM-RSA-Hardware-Offload-via-User-Space-AF-ALG-on/m-p/2356253#M16652</guid>
      <dc:creator>figure-it-out</dc:creator>
      <dc:date>2026-04-27T03:58:13Z</dc:date>
    </item>
  </channel>
</rss>

