cmd: blob: Instantiate RNG before running CMD_BLOB
U-Boot can instantiate CAAM RNG if needed by crypto operations. Call sec_init() prior running a blob operation to ensure RNG is correctly instantiated. Make sure CAAM clock is enabled and check if a job ring is available for that operation. Signed-off-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:

committed by
Stefano Babic

parent
4e682d555d
commit
81d5605a86
@@ -344,6 +344,9 @@ struct sg_entry {
|
||||
#define FSL_CAAM_MP_PRVK_BYTES 32
|
||||
#define FSL_CAAM_MP_MES_DGST_BYTES 32
|
||||
|
||||
#define FSL_CAAM_ORSR_JRa_OFFSET 0x102c
|
||||
#define FSL_CAAM_MAX_JR_SIZE 4
|
||||
|
||||
/* blob_dek:
|
||||
* Encapsulates the src in a secure blob and stores it dst
|
||||
* @src: reference to the plaintext
|
||||
|
Reference in New Issue
Block a user