<?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のトピックRe: CAAM cryptodev speed</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834853#M128199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yiling,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please run the following command to be sure that AES-CBC is supported by your Cryptodev.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;$ openssl engine cryptodev -c&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cryptodev can be added to your board by adding it to the Yocto recipe or in Buildroot menuconfig.&lt;/P&gt;&lt;P&gt;You can also clone it from the &lt;A href="https://github.com/cryptodev-linux/cryptodev-linux"&gt;repository here&lt;/A&gt;&amp;nbsp;and build it manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this reply answers your question, please click the Correct Answer button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2019 17:32:50 GMT</pubDate>
    <dc:creator>marouene_boubakri</dc:creator>
    <dc:date>2019-01-02T17:32:50Z</dc:date>
    <item>
      <title>CAAM cryptodev speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834850#M128196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I run&amp;nbsp;Linux version 4.9.11-1.0.0 on Imx6q, I want to see whether cryptodev can speed up encryption/decryption.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do this test many times, only one time the test result match what&amp;nbsp; "i.mx_Linux_User's_Guide.pdf " suggests I should see(Start cryptodev will accelerate &lt;SPAN&gt;encryption/decryption&lt;/SPAN&gt;).&amp;nbsp; Others show me a different story, It seems cryptodev doesn't work at all. What's wrong?&lt;/P&gt;&lt;P&gt;The test results as follow:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@imx6qsabresd:~# modprobe -r cryptodev&lt;BR /&gt;cryptodev: driver unloaded.&lt;BR /&gt;root@imx6qsabresd:~# sudo openssl speed -evp aes-128-cbc -engine cryptodev&lt;BR /&gt;invalid engine "cryptodev"&lt;BR /&gt;1995609296:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(/usr/lib/engines/libcryptodev.so): /usr/lib/engines/libcryptodev.so: cannot open shared object file: No such file or directory&lt;BR /&gt;1995609296:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:233:&lt;BR /&gt;1995609296:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:467:&lt;BR /&gt;1995609296:error:2606A074:engine routines:ENGINE_by_id:no such engine:eng_list.c:390:id=cryptodev&lt;BR /&gt;1995609296:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(libcryptodev.so): libcryptodev.so: cannot open shared object file: No such file or directory&lt;BR /&gt;1995609296:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:233:&lt;BR /&gt;1995609296:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:467:&lt;BR /&gt;Doing aes-128-cbc for 3s on 16 size blocks: 5529706 aes-128-cbc's in 2.99s&lt;BR /&gt;Doing aes-128-cbc for 3s on 64 size blocks: 1580875 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 256 size blocks: 410234 aes-128-cbc's in 2.99s&lt;BR /&gt;Doing aes-128-cbc for 3s on 1024 size blocks: 103837 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 8192 size blocks: 13062 aes-128-cbc's in 3.00s&lt;BR /&gt;OpenSSL 1.0.2j 26 Sep 2016&lt;BR /&gt;......&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;root@imx6qsabresd:~# modprobe cryptodev&lt;BR /&gt;cryptodev: driver 1.8 loaded.&lt;BR /&gt;root@imx6qsabresd:~# sudo openssl speed -evp aes-128-cbc -engine cryptodev&lt;BR /&gt;engine "cryptodev" set.&lt;BR /&gt;Doing aes-128-cbc for 3s on 16 size blocks: 5536156 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 64 size blocks: 1579256 aes-128-cbc's in 2.99s&lt;BR /&gt;Doing aes-128-cbc for 3s on 256 size blocks: 411891 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 1024 size blocks: 103832 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 8192 size blocks: 13003 aes-128-cbc's in 3.00s&lt;BR /&gt;OpenSSL 1.0.2j 26 Sep 2016&lt;BR /&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx6qsabresd:~# lsmod&lt;BR /&gt;Module Size Used by&lt;BR /&gt;cryptodev 38503 0&lt;BR /&gt;ov5642_camera 78301 0&lt;BR /&gt;mxc_v4l2_capture 25674 0&lt;BR /&gt;ipu_bg_overlay_sdc 6400 1 mxc_v4l2_capture&lt;BR /&gt;ipu_still 2480 1 mxc_v4l2_capture&lt;BR /&gt;ipu_prp_enc 6956 1 mxc_v4l2_capture&lt;BR /&gt;ipu_csi_enc 4143 1 mxc_v4l2_capture&lt;BR /&gt;ipu_fg_overlay_sdc 7062 1 mxc_v4l2_capture&lt;BR /&gt;ov5640_camera_mipi_int 23334 0&lt;BR /&gt;ov5640_camera_int 20623 0&lt;BR /&gt;v4l2_int_device 3121 4 ov5642_camera,ov5640_camera_mipi_int,ov5640_camera_int,mxc_v4l2_capture&lt;BR /&gt;mxc_dcic 6640 0&lt;BR /&gt;galcore 353929 10&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 11:14:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834850#M128196</guid>
      <dc:creator>yilingxu</dc:creator>
      <dc:date>2018-12-27T11:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM cryptodev speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834851#M128197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/yilingxu" rel="nofollow noopener noreferrer" target="_blank"&gt;yilingxu&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After unloading cryptodev module,you should remove&amp;nbsp;&lt;STRONG&gt;-engine cryptodev&lt;/STRONG&gt; in your second command line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# openssl speed -evp aes-128-cbc&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And than you can compare the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 14:27:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834851#M128197</guid>
      <dc:creator>marouene_boubakri</dc:creator>
      <dc:date>2018-12-27T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM cryptodev speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834852#M128198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maro,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do this test again, but the result still not good, it seems 3s is the normal speed, but&amp;nbsp;cryptodev does not speed up.&lt;/P&gt;&lt;P&gt;the test result as follow:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;root@imx6qsabresd:/# modprobe cryptodev&lt;BR /&gt;cryptodev: driver 1.8 loaded.&lt;BR /&gt;root@imx6qsabresd:/# openssl speed -evp aes-128-cbc -engine cryptodev&lt;BR /&gt;engine "cryptodev" set.&lt;BR /&gt;Doing aes-128-cbc for 3s on 16 size blocks: 5509731 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 64 size blocks: 1565265 aes-128-cbc's in 2.97s&lt;BR /&gt;Doing aes-128-cbc for 3s on 256 size blocks: 413766 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 1024 size blocks: 104883 aes-128-cbc's in 2.99s&lt;BR /&gt;Doing aes-128-cbc for 3s on 8192 size blocks: 13130 aes-128-cbc's in 3.00s&lt;BR /&gt;OpenSSL 1.0.2j 26 Sep 2016&lt;BR /&gt;......&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;root@imx6qsabresd:/# modprobe -r cryptodev&lt;BR /&gt;cryptodev: driver unloaded.&lt;BR /&gt;root@imx6qsabresd:/# openssl speed -evp aes-128-cbc&lt;BR /&gt;Doing aes-128-cbc for 3s on 16 size blocks: 5547967 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 64 size blocks: 1585028 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 256 size blocks: 415932 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 1024 size blocks: 105073 aes-128-cbc's in 3.00s&lt;BR /&gt;Doing aes-128-cbc for 3s on 8192 size blocks: 13195 aes-128-cbc's in 3.00s&lt;BR /&gt;OpenSSL 1.0.2j 26 Sep 2016&lt;BR /&gt;......&lt;/BLOCKQUOTE&gt;&lt;P&gt;Besides, I find cryptodev.ko directly in rootfs (/lib/modules/&amp;nbsp;4.9.11-1.0.0+gc27010d/extra), but I can't find &lt;SPAN&gt;cryptodev&amp;nbsp;&lt;/SPAN&gt;source code in linux kernel code download from&amp;nbsp;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tag/?h=imx_4.9.11_1.0.0_ga&amp;amp;id=rel_imx_4.9.x_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/log/?h=imx_4.9.11_1.0.0_ga"&gt;nxp git&lt;/A&gt;&amp;nbsp;. So where can I get cryptodev source code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiling Xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2018 02:21:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834852#M128198</guid>
      <dc:creator>yilingxu</dc:creator>
      <dc:date>2018-12-28T02:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: CAAM cryptodev speed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834853#M128199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yiling,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please run the following command to be sure that AES-CBC is supported by your Cryptodev.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;$ openssl engine cryptodev -c&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cryptodev can be added to your board by adding it to the Yocto recipe or in Buildroot menuconfig.&lt;/P&gt;&lt;P&gt;You can also clone it from the &lt;A href="https://github.com/cryptodev-linux/cryptodev-linux"&gt;repository here&lt;/A&gt;&amp;nbsp;and build it manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this reply answers your question, please click the Correct Answer button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2019 17:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAAM-cryptodev-speed/m-p/834853#M128199</guid>
      <dc:creator>marouene_boubakri</dc:creator>
      <dc:date>2019-01-02T17:32:50Z</dc:date>
    </item>
  </channel>
</rss>

