Hardware Acceleration with OpenSSL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hardware Acceleration with OpenSSL

Jump to solution
3,519 Views
nickbaker
Contributor I

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.

0 Kudos
Reply
1 Solution
2,268 Views
bpe
NXP Employee
NXP Employee

If SEC is involved, you should see various related statistic counters growing. Check this page for details:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-70AB1917-E7BD-45DB-924C-7...

More details on enabling HW crypto offload for OpenSSL can be found here:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-FD8EAB86-C554-4D24-9B50-F...


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
2,269 Views
bpe
NXP Employee
NXP Employee

If SEC is involved, you should see various related statistic counters growing. Check this page for details:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-70AB1917-E7BD-45DB-924C-7...

More details on enabling HW crypto offload for OpenSSL can be found here:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-FD8EAB86-C554-4D24-9B50-F...


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,268 Views
nickbaker
Contributor I

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

0 Kudos
Reply