AnsweredAssumed Answered

Re: CAAM job Descriptors sample code

Question asked by Yiling Xu on Feb 22, 2019
Latest reply on Feb 25, 2019 by Yuri Muhin
Branched from an earlier discussion

Yuri Muhin, 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

Outcomes