<?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: Hardware offloading with OpenSSL-3.0.2</title>
    <link>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1500117#M10977</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Since OpenSSL is upgraded to 3.0, the command line for "openssl -xxx xxx -x -engine devcrypto" ; must include the string -engine devcrypto.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to the following.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;root@localhost:~/git# cat /proc/interrupts | grep jr&lt;BR /&gt;78: 75 0 0 0 GICv2 103 Level 1710000.jr&lt;BR /&gt;79: 48 0 0 0 GICv2 104 Level 1720000.jr&lt;BR /&gt;80: 0 0 0 0 GICv2 105 Level fsl-jr0&lt;BR /&gt;root@localhost:~/git# openssl enc -aes-256-cfb -pbkdf2 -engine devcrypto&lt;BR /&gt;Engine "devcrypto" set.&lt;BR /&gt;enter AES-256-CFB encryption password:&lt;BR /&gt;Verifying - enter AES-256-CFB encryption password:&lt;BR /&gt;Error setting cipher AES-256-CFB&lt;BR /&gt;C0A6CE97FFFF0000:error:13000092:engine routines:ENGINE_get_cipher:unimplemented cipher:crypto/engine/tb_cipher.c:78:&lt;BR /&gt;C0A6CE97FFFF0000:error:03000086:digital envelope routines:evp_cipher_init_internal:initialization error:crypto/evp/evp_enc.c:277:&lt;BR /&gt;Segmentation fault&lt;BR /&gt;root@localhost:~/git# cat /proc/interrupts | grep jr&lt;BR /&gt;78: 101 0 0 0 GICv2 103 Level 1710000.jr&lt;BR /&gt;79: 72 0 0 0 GICv2 104 Level 1720000.jr&lt;BR /&gt;80: 0 0 0 0 GICv2 105 Level fsl-jr0&lt;BR /&gt;root@localhost:~/git#&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 08:48:56 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2022-08-03T08:48:56Z</dc:date>
    <item>
      <title>Hardware offloading with OpenSSL-3.0.2</title>
      <link>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1497900#M10958</link>
      <description>&lt;P&gt;I am working with LS1046ARDB Evaluation Board to develop a network based application. I have started my project with Flex-builder(flexbuild_lsdk2108), Flex-installer(version: 1.13.2108) and Codewarrior IDE.&lt;/P&gt;&lt;P&gt;user@localhost:~$ openssl version -a&lt;BR /&gt;openssl: symbol lookup error: openssl: undefined symbol: EVP_mdc2, version OPENSSL_1_1_0&lt;BR /&gt;user@localhost:~$&lt;/P&gt;&lt;P&gt;Then i refer below URL to resolve the openssl version 1.1.1 and openssl working well&lt;BR /&gt;#&lt;A href="https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1494462#M1092" target="_blank"&gt;https://community.nxp.com/t5/Layerscape/Hardware-Offloading-of-NXP-CAAM-using-OpenSSL-in-LS1046A/m-p/1494462#M1092&lt;/A&gt;&lt;/P&gt;&lt;P&gt;user@localhost:~$ openssl version -a&lt;BR /&gt;OpenSSL 1.1.1d 10 Sep 2019&lt;BR /&gt;built on: Fri May 27 07:03:31 2022 UTC&lt;BR /&gt;platform: linux-aarch64&lt;BR /&gt;options: bn(64,64) rc4(char) des(int) idea(int) blowfish(ptr)&lt;BR /&gt;compiler: aarch64-linux-gnu-gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_e&lt;BR /&gt;OPENSSLDIR: "/usr/local/lib/ssl"&lt;BR /&gt;ENGINESDIR: "/usr/local/lib/engines-1.1"&lt;BR /&gt;Seeding source: os-specific&lt;BR /&gt;user@localhost:~$&lt;/P&gt;&lt;P&gt;Now CAAM hardware will offloaded into OpenSSL:&lt;/P&gt;&lt;P&gt;user@localhost:~$ sudo modprobe cryptodev&lt;BR /&gt;[sudo] password for user:&lt;/P&gt;&lt;P&gt;user@localhost:~$ ls /dev/crypto&lt;BR /&gt;/dev/crypto&lt;/P&gt;&lt;P&gt;user@localhost:~$ openssl engine&lt;BR /&gt;(devcrypto) /dev/crypto engine&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;/P&gt;&lt;P&gt;Successfully CAAM hardware was offloanded into Openssl-1.1.1d.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But our project requirement Key-Based key derivation function "SP 800-108 compliant" to achive the function we are using openssl version 3.0&lt;BR /&gt;So i refered "9.1.1.2 Manual Build of OpenSSL with Cryptodev Engine Support" from below URL :#&lt;A href="https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In that manual we taken git repo of openssl version 3.0.2 by below command with tag option:&lt;/P&gt;&lt;P&gt;$ git clone -b openssl-3.0.2 --single-branch &lt;A href="https://source.codeaurora.org/external/qoriq/qoriq-components/openssl" target="_blank"&gt;https://source.codeaurora.org/external/qoriq/qoriq-components/openssl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;after sudo make command we additional tested "sudo make test" end up with error "30-test_afalg.t (Wstat: 256 Tests: 1 Failed: 1)" and i attach the error log also "openssl_make_test_log.txt".after that "$ sudo make install" done and Openssl-3.0.2 installed successfully&lt;/P&gt;&lt;P&gt;user@localhost:~$ openssl version -a&lt;BR /&gt;OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)&lt;BR /&gt;built on: Fri Jul 29 06:49:57 2022 UTC&lt;BR /&gt;platform: linux-aarch64&lt;BR /&gt;options: bn(64,64)&lt;BR /&gt;compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -I./include&lt;BR /&gt;OPENSSLDIR: "/usr/local/lib/ssl"&lt;BR /&gt;ENGINESDIR: "/usr/local/lib/engines-3"&lt;BR /&gt;MODULESDIR: "/usr/local/lib/ossl-modules"&lt;BR /&gt;Seeding source: os-specific&lt;BR /&gt;CPUINFO: OPENSSL_armcap=0xbf&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now CAAM hardware will offloaded into OpenSSL:&lt;BR /&gt;user@localhost:$ sudo modprobe caam&lt;BR /&gt;user@localhost:$ sudo modprobe cryptodev&lt;BR /&gt;user@localhost:$ ls /dev/crypto&lt;BR /&gt;/dev/crypto&lt;BR /&gt;user@localhost:$ openssl engine&lt;BR /&gt;(dynamic) Dynamic engine loading support&lt;BR /&gt;user@localhost:$&lt;/P&gt;&lt;P&gt;"(devcrypto) /dev/crypto engine" log message not display in console .&lt;BR /&gt;OpenSSL Hardware offloading issue is due to following factors,&lt;BR /&gt;1. Configuration or linker path is not did correctly&lt;BR /&gt;2. OpenSSL 3.0.2 is not supporting the NXP CAAM to get offload&lt;/P&gt;&lt;P&gt;Provide us a neccessary solution to overcome the offloading issue in OpenSSL 3.0.2.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 09:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1497900#M10958</guid>
      <dc:creator>sheikfaaruk</dc:creator>
      <dc:date>2022-07-29T09:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware offloading with OpenSSL-3.0.2</title>
      <link>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1500117#M10977</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Since OpenSSL is upgraded to 3.0, the command line for "openssl -xxx xxx -x -engine devcrypto" ; must include the string -engine devcrypto.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to the following.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;root@localhost:~/git# cat /proc/interrupts | grep jr&lt;BR /&gt;78: 75 0 0 0 GICv2 103 Level 1710000.jr&lt;BR /&gt;79: 48 0 0 0 GICv2 104 Level 1720000.jr&lt;BR /&gt;80: 0 0 0 0 GICv2 105 Level fsl-jr0&lt;BR /&gt;root@localhost:~/git# openssl enc -aes-256-cfb -pbkdf2 -engine devcrypto&lt;BR /&gt;Engine "devcrypto" set.&lt;BR /&gt;enter AES-256-CFB encryption password:&lt;BR /&gt;Verifying - enter AES-256-CFB encryption password:&lt;BR /&gt;Error setting cipher AES-256-CFB&lt;BR /&gt;C0A6CE97FFFF0000:error:13000092:engine routines:ENGINE_get_cipher:unimplemented cipher:crypto/engine/tb_cipher.c:78:&lt;BR /&gt;C0A6CE97FFFF0000:error:03000086:digital envelope routines:evp_cipher_init_internal:initialization error:crypto/evp/evp_enc.c:277:&lt;BR /&gt;Segmentation fault&lt;BR /&gt;root@localhost:~/git# cat /proc/interrupts | grep jr&lt;BR /&gt;78: 101 0 0 0 GICv2 103 Level 1710000.jr&lt;BR /&gt;79: 72 0 0 0 GICv2 104 Level 1720000.jr&lt;BR /&gt;80: 0 0 0 0 GICv2 105 Level fsl-jr0&lt;BR /&gt;root@localhost:~/git#&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 08:48:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1500117#M10977</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-08-03T08:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware offloading with OpenSSL-3.0.2</title>
      <link>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1503276#M11004</link>
      <description>&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;I offloaded CAAM hardware with OpenSSL version 3.0.2 .Then I tested the openssl in NXP board&lt;/P&gt;&lt;P&gt;Following List of algorithm are tested in NXP board&lt;/P&gt;&lt;P&gt;genpkey&lt;/P&gt;&lt;P&gt;RSA&lt;/P&gt;&lt;P&gt;AES-256-CBC&lt;/P&gt;&lt;P&gt;AES-256-CFB&lt;/P&gt;&lt;P&gt;rand&lt;/P&gt;&lt;P&gt;enc&lt;/P&gt;&lt;P&gt;ecparam SECP256K1&lt;/P&gt;&lt;P&gt;ecparam SECP384R1&lt;/P&gt;&lt;P&gt;ecparam SECP521R1&lt;/P&gt;&lt;P&gt;while offload and test the openssl I getting "&lt;STRONG&gt;Segmentation fault&lt;/STRONG&gt;" in NXP board And also I atteach the manual which i followed the steps to installation ,configuration and testing the openssl in nxp board&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The think is i have questions about openssl offloading in SEC hardware&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While excuting openssl commands i am getting output in .key formate file but it is showing "Segmentation fault" after excuting ever command&lt;BR /&gt;is this affect my project because openssl 3.0.2 version which i am currently using for project development ?&lt;BR /&gt;what are the crypto algorithm will supported by SEC hardware in openssl 3.0.2 ?&lt;/P&gt;&lt;P&gt;And also guide us for openssl future developemnt&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 12:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1503276#M11004</guid>
      <dc:creator>sheikfaaruk</dc:creator>
      <dc:date>2022-08-09T12:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware offloading with OpenSSL-3.0.2</title>
      <link>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1715803#M13212</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204287"&gt;@sheikfaaruk&lt;/a&gt;&amp;nbsp;For us upgrading to 3.0.8 resolved the issue (&lt;A href="https://github.com/openssl/openssl/issues/17995" target="_blank"&gt;https://github.com/openssl/openssl/issues/17995&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 13:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Hardware-offloading-with-OpenSSL-3-0-2/m-p/1715803#M13212</guid>
      <dc:creator>jgelinske</dc:creator>
      <dc:date>2023-09-01T13:26:54Z</dc:date>
    </item>
  </channel>
</rss>

