<?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のトピックHow to test openssl DES RSA speed with afalg engine when CAAM enable</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1689935#M209459</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Follow&amp;nbsp;i.MX Linux User's Guide&amp;nbsp;Rev. LF6.1.22_2.0.0 — 30 June 2023 chapter&amp;nbsp;10.4.6 Running OpenSSL benchmarking tests with AF_ALG engine.&lt;/P&gt;&lt;P&gt;I have verfied the test result of AES is same as document, however when I test DES or RSA it seems CAAM not work, CPU loading still high and /proc/interrupt of job ring doesn't increase.&lt;/P&gt;&lt;P&gt;Do you have any idea to this test case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 03:19:46 GMT</pubDate>
    <dc:creator>JasonCS</dc:creator>
    <dc:date>2023-07-21T03:19:46Z</dc:date>
    <item>
      <title>How to test openssl DES RSA speed with afalg engine when CAAM enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1689935#M209459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Follow&amp;nbsp;i.MX Linux User's Guide&amp;nbsp;Rev. LF6.1.22_2.0.0 — 30 June 2023 chapter&amp;nbsp;10.4.6 Running OpenSSL benchmarking tests with AF_ALG engine.&lt;/P&gt;&lt;P&gt;I have verfied the test result of AES is same as document, however when I test DES or RSA it seems CAAM not work, CPU loading still high and /proc/interrupt of job ring doesn't increase.&lt;/P&gt;&lt;P&gt;Do you have any idea to this test case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 03:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1689935#M209459</guid>
      <dc:creator>JasonCS</dc:creator>
      <dc:date>2023-07-21T03:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to test openssl DES RSA speed with afalg engine when CAAM enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1691828#M209622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products,&lt;/P&gt;
&lt;P&gt;What ciphers did you tried with? &lt;A href="https://www.openssl.org/docs/man1.0.2/man1/enc.html" target="_self"&gt;Here&lt;/A&gt; are described AES and DES as RSA is asymmetric is not listed.&lt;/P&gt;
&lt;P&gt;Trying three key EDE DED, I successfully get positive results, please see below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;joseph@imx8mpevk:~$ openssl speed -engine afalg -evp des-ede3-cbc
Engine "afalg" set.
Doing DES-EDE3-CBC for 3s on 16 size blocks: 2001533 DES-EDE3-CBC's in 2.99s
Doing DES-EDE3-CBC for 3s on 64 size blocks: 534471 DES-EDE3-CBC's in 3.00s
Doing DES-EDE3-CBC for 3s on 256 size blocks: 135999 DES-EDE3-CBC's in 2.99s
Doing DES-EDE3-CBC for 3s on 1024 size blocks: 34153 DES-EDE3-CBC's in 3.00s
Doing DES-EDE3-CBC for 3s on 8192 size blocks: 4274 DES-EDE3-CBC's in 3.00s
Doing DES-EDE3-CBC for 3s on 16384 size blocks: 2137 DES-EDE3-CBC's in 2.99s
version: 3.0.2
built on: Wed May 24 17:12:55 2023 UTC
options: bn(64,64)
compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -ffile-prefix-map=/build/openssl-7eq86f/openssl-3.0.2=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_TLS_SECURITY_LEVEL=2 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2
CPUINFO: OPENSSL_armcap=0xbf
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
DES-EDE3-CBC     10710.54k    11402.05k    11644.06k    11657.56k    11670.87k    11709.90k

joseph@imx8mpevk:~$ openssl speed -engine afalg -evp des-ede3
Engine "afalg" set.
Doing DES-EDE3-ECB for 3s on 16 size blocks: 2037078 DES-EDE3-ECB's in 3.00s
Doing DES-EDE3-ECB for 3s on 64 size blocks: 533639 DES-EDE3-ECB's in 2.99s
Doing DES-EDE3-ECB for 3s on 256 size blocks: 135134 DES-EDE3-ECB's in 3.00s
Doing DES-EDE3-ECB for 3s on 1024 size blocks: 33893 DES-EDE3-ECB's in 2.99s
Doing DES-EDE3-ECB for 3s on 8192 size blocks: 4241 DES-EDE3-ECB's in 3.00s
Doing DES-EDE3-ECB for 3s on 16384 size blocks: 2120 DES-EDE3-ECB's in 3.00s
version: 3.0.2
built on: Wed May 24 17:12:55 2023 UTC
options: bn(64,64)
compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -ffile-prefix-map=/build/openssl-7eq86f/openssl-3.0.2=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_TLS_SECURITY_LEVEL=2 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2
CPUINFO: OPENSSL_armcap=0xbf
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
DES-EDE3-ECB     10864.42k    11422.37k    11531.43k    11607.50k    11580.76k    11578.03&lt;/LI-CODE&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 04:14:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1691828#M209622</guid>
      <dc:creator>JosephAtNXP</dc:creator>
      <dc:date>2023-07-25T04:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to test openssl DES RSA speed with afalg engine when CAAM enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1691858#M209626</link>
      <description>&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;Below is what I try, please check the job ring change difference between des-ede3-cbc and aes-128-cbc, to make sure CAAM work I check job ring , I know can run des-ede3-cbc success with openssl but job ring seems not change, is there other method to make sure CAAM is work when we test des-ede3-cbc with openssl?&lt;/P&gt;&lt;P&gt;cat /proc/interrupts | grep jr&lt;BR /&gt;56: 164948 0 0 0 GICv3 137 Level 30901000.jr&lt;BR /&gt;57: 2670903 0 0 0 GICv3 138 Level 30902000.jr&lt;BR /&gt;58: 156888 0 0 0 GICv3 146 Level 30903000.jr&lt;/P&gt;&lt;P&gt;openssl speed -engine afalg -evp des-ede3-cbc&lt;BR /&gt;engine "afalg" set.&lt;BR /&gt;Doing des-ede3-cbc for 3s on 16 size blocks: 1743322 des-ede3-cbc's in 3.00s&lt;BR /&gt;Doing des-ede3-cbc for 3s on 64 size blocks: 469911 des-ede3-cbc's in 2.99s&lt;BR /&gt;Doing des-ede3-cbc for 3s on 256 size blocks: 119956 des-ede3-cbc's in 2.99s&lt;BR /&gt;Doing des-ede3-cbc for 3s on 1024 size blocks: 30149 des-ede3-cbc's in 3.00s&lt;BR /&gt;Doing des-ede3-cbc for 3s on 8192 size blocks: 3774 des-ede3-cbc's in 2.99s&lt;BR /&gt;Doing des-ede3-cbc for 3s on 16384 size blocks: 1887 des-ede3-cbc's in 3.00s&lt;BR /&gt;OpenSSL 1.1.1n 15 Mar 2022&lt;BR /&gt;built on: Fri May 26 21:30:44 2023 UTC&lt;BR /&gt;options:bn(64,64) rc4(char) des(int) aes(partial) blowfish(ptr)&lt;BR /&gt;compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -ffile-prefix-map=/build/openssl-DLe6s5/openssl-1.1.1n=. -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2&lt;BR /&gt;The 'numbers' are in 1000s of bytes per second processed.&lt;BR /&gt;type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes&lt;BR /&gt;des-ede3-cbc 9297.72k 10058.30k 10270.48k 10290.86k 10340.00k 10305.54k&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cat /proc/interrupts | grep jr&lt;BR /&gt;56: 164948 0 0 0 GICv3 137 Level 30901000.jr&lt;BR /&gt;57: 2670903 0 0 0 GICv3 138 Level 30902000.jr&lt;BR /&gt;58: 156888 0 0 0 GICv3 146 Level 30903000.jr&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;openssl speed -engine afalg -evp aes-128-cbc&lt;BR /&gt;engine "afalg" set.&lt;BR /&gt;Doing aes-128-cbc for 3s on 16 size blocks: 55569 aes-128-cbc's in 0.13s&lt;BR /&gt;Doing aes-128-cbc for 3s on 64 size blocks: 56190 aes-128-cbc's in 0.11s&lt;BR /&gt;Doing aes-128-cbc for 3s on 256 size blocks: 53179 aes-128-cbc's in 0.10s&lt;BR /&gt;Doing aes-128-cbc for 3s on 1024 size blocks: 38486 aes-128-cbc's in 0.05s&lt;BR /&gt;Doing aes-128-cbc for 3s on 8192 size blocks: 8031 aes-128-cbc's in 0.05s&lt;BR /&gt;Doing aes-128-cbc for 3s on 16384 size blocks: 4362 aes-128-cbc's in 0.03s&lt;BR /&gt;OpenSSL 1.1.1n 15 Mar 2022&lt;BR /&gt;built on: Fri May 26 21:30:44 2023 UTC&lt;BR /&gt;options:bn(64,64) rc4(char) des(int) aes(partial) blowfish(ptr)&lt;BR /&gt;compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -ffile-prefix-map=/build/openssl-DLe6s5/openssl-1.1.1n=. -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2&lt;BR /&gt;The 'numbers' are in 1000s of bytes per second processed.&lt;BR /&gt;type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes&lt;BR /&gt;aes-128-cbc 6839.26k 32692.36k 136138.24k 788193.28k 1315799.04k 2382233.60k&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;cat /proc/interrupts | grep jr&lt;BR /&gt;56: 164951 0 0 0 GICv3 137 Level 30901000.jr&lt;BR /&gt;57: 2886720 0 0 0 GICv3 138 Level 30902000.jr&lt;BR /&gt;58: 156888 0 0 0 GICv3 146 Level 30903000.jr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 05:12:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1691858#M209626</guid>
      <dc:creator>JasonCS</dc:creator>
      <dc:date>2023-07-25T05:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to test openssl DES RSA speed with afalg engine when CAAM enable</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1693585#M209734</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am reviewing it with a colleague,&lt;/P&gt;
&lt;P&gt;Thank you for your patience.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 23:12:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-test-openssl-DES-RSA-speed-with-afalg-engine-when-CAAM/m-p/1693585#M209734</guid>
      <dc:creator>JosephAtNXP</dc:creator>
      <dc:date>2023-07-26T23:12:14Z</dc:date>
    </item>
  </channel>
</rss>

