I am currently developing on a LS1021 and I am testing the encryption performance. How can I tell if my OpenSSL code is using S/W or the hardware acceleration?
Thank you.
Solved! Go to Solution.
If SEC is involved, you should see various related statistic counters growing. Check this page for details:
More details on enabling HW crypto offload for OpenSSL can be found here:
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
If SEC is involved, you should see various related statistic counters growing. Check this page for details:
More details on enabling HW crypto offload for OpenSSL can be found here:
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you for the answer it was very helpful. I would just like to clarify one thing. In the first link it says "If the number of interrupts fired increment, then the hardware is being used to do the crypto." Is this always true?
I only ask because I was running two commands to test and both times I saw the interrupts increasing. The commands were:
openssl speed -evp aes-128-cbc
openssl speed -evp aes-128-cbc -engine cryptodev
Perhaps openssl is always using the hardware acceleration when possible which I would like, but I just want to make sure I have a proper understanding.
Thank you