This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352: cryptodev-module use error

Part Number: AM3352


Hi  TI team

  when use SDK 8.2, linux-5.10.100+gitAUTOINC+7a7a3af903-g7a7a3af903, Enable 

   

--- Cryptographic API
    [*] Hardware crypto devices --->
        --- Hardware crypto devices
            <*> Support for OMAP MD5/SHA1/SHA2 hw accelerator
            <*> Support for OMAP AES hw engine
            <*> Support for OMAP DES3DES hw engine

config setting:
CONFIG_CRYPTO_DEV_OMAP=y
CONFIG_CRYPTO_DEV_OMAP_SHAM=y
CONFIG_CRYPTO_DEV_OMAP_AES=y
CONFIG_CRYPTO_DEV_OMAP_DES=y
build and install cryptodev-module-1.10 to ubuntu 22.04 filesystem, it can insmod cryptodev.ko, but when I use openssl command: openssl speed -evp aes-128-cbc -engine devcrypto
print log:
Invalid engine "devcrypto"
C0CFF8B6:error:12800067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlc:118:filename(/usr/lib/arm-linux-gnueabihf/engines-3/devcrypto.so): /usr/lib/arm-linux-gnueabihf/engines-3/depto.so: cannot open shared object file: No such file or directory
C0CFF8B6:error:12800067:DSO support routines:DSO_load:could not load the shared library:../crypto/dso/dso_lib.2:
C0CFF8B6:error:13000084:engine routines:dynamic_load:dso not found:../crypto/engine/eng_dyn.c:422:
C0CFF8B6:error:13000074:engine routines:ENGINE_by_id:no such engine:../crypto/engine/eng_list.c:430:id=devcryp
C0CFF8B6:error:12800067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlc:118:filename(libdevcrypto.so): libdevcrypto.so: cannot open shared object file: No such file or directory
C0CFF8B6:error:12800067:DSO support routines:DSO_load:could not load the shared library:../crypto/dso/dso_lib.2:
C0CFF8B6:error:13000084:engine routines:dynamic_load:dso not found:../crypto/engine/eng_dyn.c:422:
Doing AES-128-CBC for 3s on 16 size blocks: 3939740 AES-128-CBC's in 2.75s
Doing AES-128-CBC for 3s on 64 size blocks: 1312003 AES-128-CBC's in 2.67s
Doing AES-128-CBC for 3s on 256 size blocks: 359233 AES-128-CBC's in 2.61s
Doing AES-128-CBC for 3s on 1024 size blocks: 96463 AES-128-CBC's in 2.71s
Doing AES-128-CBC for 3s on 8192 size blocks: 12378 AES-128-CBC's in 2.73s
Doing AES-128-CBC for 3s on 16384 size blocks: 5883 AES-128-CBC's in 2.63s
version: 3.0.2
built on: Fri Oct 13 12:02:49 2023 UTC
options: bn(64,32)
compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -ffile-prefix-map=/build/openssl2Kf/openssl-3.0.2=. -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_TLS_SECURITY_LEVEL=2 -NSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64ate-time -D_FORTIFY_SOURCE=2
CPUINFO: OPENSSL_armcap=0x1
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
AES-128-CBC 22922.12k 31448.76k 35235.11k 36449.49k 37143.07k 36649.08k
please help me to solve this problem?
Thanks!
 
  • Hi Mengsheng,

    Thanks for reaching out via TI E2E Support forum.

    Please expect delayed responses due to the holidays.

    Thanks,

    Vaibhav

  • Hello,
    Here is SDK reference on Linux kernel crypto driver
    software-dl.ti.com/.../Crypto.html
    Best,
    -Hong

  • Hi Hong

    Thank for you reply, I follow the Linux kernel cryto driver reference, and insmod the ko, but it can't work, report lib error:

    Invalid engine "devcrypto"
    C0CFF8B6:error:12800067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlc:118:filename(/usr/lib/arm-linux-gnueabihf/engines-3/devcrypto.so): /usr/lib/arm-linux-gnueabihf/engines-3/depto.so: cannot open shared object file: No such file or directory
    C0CFF8B6:error:12800067:DSO support routines:DSO_load:could not load the shared library:../crypto/dso/dso_lib.2:
    C0CFF8B6:error:13000084:engine routines:dynamic_load:dso not found:../crypto/engine/eng_dyn.c:422:
    C0CFF8B6:error:13000074:engine routines:ENGINE_by_id:no such engine:../crypto/engine/eng_list.c:430:id=devcryp
    C0CFF8B6:error:12800067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlc:118:filename(libdevcrypto.so): libdevcrypto.so: cannot open shared object file: No such file or directory
    C0CFF8B6:error:12800067:DSO support routines:DSO_load:could not load the shared library:../crypto/dso/dso_lib.2:
    C0CFF8B6:error:13000084:engine routines:dynamic_load:dso not found:../crypto/engine/eng_dyn.c:422:
    Doing AES-128-CBC for 3s on 16 size blocks: 3939740 AES-128-CBC's in 2.75s
    Doing AES-128-CBC for 3s on 64 size blocks: 1312003 AES-128-CBC's in 2.67s
    Doing AES-128-CBC for 3s on 256 size blocks: 359233 AES-128-CBC's in 2.61s
    Doing AES-128-CBC for 3s on 1024 size blocks: 96463 AES-128-CBC's in 2.71s
    Doing AES-128-CBC for 3s on 8192 size blocks: 12378 AES-128-CBC's in 2.73s
    Doing AES-128-CBC for 3s on 16384 size blocks: 5883 AES-128-CBC's in 2.63s
    version: 3.0.2
    built on: Fri Oct 13 12:02:49 2023 UTC
    options: bn(64,32)
    compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -ffile-prefix-map=/build/openssl2Kf/openssl-3.0.2=. -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_TLS_SECURITY_LEVEL=2 -NSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64ate-time -D_FORTIFY_SOURCE=2
    CPUINFO: OPENSSL_armcap=0x1
    The 'numbers' are in 1000s of bytes per second processed.
    type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
    AES-128-CBC 22922.12k 31448.76k 35235.11k 36449.49k 37143.07k 36649.08k

  • Hello,
    Let me check on it, and get back to you, most likely sometime next week.
    Best,
    -Hong

  • Thanks, we use ubuntu 22.04 filesystem, and installed kernel module in filesystem,need install additional driver libraries?

  • Hello,
    I'll check on it, and get back to you next week.
    Best,
    -Hong