Hardware Acceleration with OpenSSL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Hardware Acceleration with OpenSSL

跳至解决方案
4,578 次查看
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.

标记 (3)
0 项奖励
回复
1 解答
3,327 次查看
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 回复数
3,328 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

3,327 次查看
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 项奖励
回复