Hi all,
porting some imx6sx crypto-related code to imx6ul, but the blob encapsulation function (blob_encap(), drivers/crypto/fsl/fsl_blob.c) seems not working.
As function parameters, i am passing the buffer with a key to encapsulate, but the blob output buffer remains untouched, all 0. Like the CAAM module is not performing any action. Hope someone can provide some help on this.
Thanks
Regards,
angelo
已解决! 转到解答。
Hi,
thanks anyway, i solved this, issue was due to some customizations done into the caam driver.
Hi Yuri,
thanks for your support,
i am using U-Boot 2016.03-F1-0.9.2.10032 but patched with more recent enc_blob fixes.
I tried to disable dcache, nothing changed.
/* Encapsulate it
*/
rval = blob_encap ( caam_keymod, buf1, buf2, keylen, &caam_bloblen );
if ( rval )
goto errexit;
blob encap result (buf2: 8df4c800) :
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Hello,
What is U-boot release, used in the case?
Please try to disable caches.
Have a great day,
Yuri
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------