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