Re: CAAM job Descriptors sample code

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

Re: CAAM job Descriptors sample code

600 Views
yilingxu
Contributor III

Yuri‌, are there any tutorial I can reference to construct a job descriptor? In other worlds, are there any tutorial explain the meaning of each bit in a job descriptor?

I have read sm_test.c in "drivers/crypto/caam/sm_test.c". but I still not know, for example, why desc[0] should be set as CMD_DESC_HDR | HDR_ONE | (idx & HDR_DESCLEN_MASK) rather than as 0x010001 for blacken_key_jobdesc.

Thanks,

Yiling Xu

0 Kudos
1 Reply

510 Views
Yuri
NXP Employee
NXP Employee

Hello,

 

   I am afraid, we do not have a CAAM tutorial for customers. The i.MX6 Security RM

is the main documentation about the CAAM.

https://www.nxp.com/webapp/sps/download/mod_download.jsp?colCode=IMX6DQ6SDLSRM&appType=moderatedWith... 

 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer

button. Thank you!

0 Kudos