Not able to use MDEU with talitos

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

Not able to use MDEU with talitos

Jump to solution
617 Views
jlsec
Contributor I

Hi,

I'm using a P1021 (SEC3.3.2) with a Linux Kernel 3.18. I have selected the Talitos option in the menuconfig and compiled the cryptodev 1.8.

During the kernel loading I can see that all algorithms are correctly registered.

To check if there is any performance improvement I use openssl compiled to use cryptodev (openssl speed -evp <algorithm>)

With aes-xxx-cbc I can see a significant improvement so I guess it's using the SEC.

The problem comes with all the hasing algorithms performed by the MDEU. With them there are no improvements and the performance is the same without cryptodev.

Is there any other way to check if talitos is working fine? Do I need to use other version of talitos?

Thanks.

Tags (2)
0 Kudos
1 Solution
484 Views
bpe
NXP Employee
NXP Employee


Both OpenSSL and Cryptodev driver require multiple patches and specific build options to work correctly with SEC. Use the most recent QorIQ SDK that supports your processor (1.9) to build OpenSSL and cryptodev in a known-good
configuration. Refer to SDK 1.9 Manual, Sections 7.4.5, 9.7 for instructions on building and verification.  Visit the link below for SDK download links:

http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-proce...


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

0 Kudos
2 Replies
485 Views
bpe
NXP Employee
NXP Employee


Both OpenSSL and Cryptodev driver require multiple patches and specific build options to work correctly with SEC. Use the most recent QorIQ SDK that supports your processor (1.9) to build OpenSSL and cryptodev in a known-good
configuration. Refer to SDK 1.9 Manual, Sections 7.4.5, 9.7 for instructions on building and verification.  Visit the link below for SDK download links:

http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-proce...


Have a great day,
Platon

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

0 Kudos
484 Views
jlsec
Contributor I

Hi Platon,

As you point the problem was with the OpenSSL. Cryptodev is working fine and using talitos (I have tested it using the hashing sha test that is provided with the source code).

The OpenSSL compiling flag -DUSE_CRYPTODEV_DIGESTS was misspelled and thats the explanation of the problem.

Best regards!

0 Kudos