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.

Linux/AM5728: Evaluating the performance with and without Crypto Hardware Accelerators

Part Number: AM5728

Tool/software: Linux

According to the answer to the previous question, when we use HTTPS transfer with libcurl, the Cryptodev engine is used.

If it is correct,is there any way to disable the Cryptodev engine?

And, is there any way to know if the application uses crypt engine or not?

  • Hi,

    user5980190 said:
    If it is correct,is there any way to disable the Cryptodev engine?

    One way to do it is to not load the cryptodev driver:
    # modprobe -r cryptodev

    user5980190 said:
    And, is there any way to know if the application uses crypt engine or not?

    The answer depends on the application. For example, if the application uses openssl, openssl has an interface to specify the engine. Please refer the openssl documentation for details.

  • Thank you for the reply.

    Bin Liu said:

    One way to do it is to not load the cryptodev driver:
    # modprobe -r cryptodev

    I tried:
    root@am57xx-evm:~# modprobe -r cryptodev
    modprobe: FATAL: Module cryptodev is in use.

    The method to force unload was successful:

    root@am57xx-evm:~# rmmod -f cryptodev
    [ 1175.691391] Disabling lock debugging due to kernel taint
    [ 1175.697018] cryptodev: driver unloaded.

    And the result of openssl was as desired(using -engine option).