imx6ul, u-boot CAAM blob_encap() fails

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6ul, u-boot CAAM blob_encap() fails

Jump to solution
431 Views
angelo_dureghel
Contributor III

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

Labels (1)
1 Solution
313 Views
angelo_dureghel
Contributor III

Hi,

thanks anyway, i solved this, issue was due to some customizations done into the caam driver.

View solution in original post

3 Replies
313 Views
angelo_dureghel
Contributor III

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

0 Kudos
314 Views
angelo_dureghel
Contributor III

Hi,

thanks anyway, i solved this, issue was due to some customizations done into the caam driver.

313 Views
Yuri
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 Kudos