]>
git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/crypto/fsl/jobdesc.h
2 * Copyright 2014 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
15 #define KEY_IDNFR_SZ_BYTES 16
17 #ifdef CONFIG_CMD_DEKBLOB
18 /* inline_cnstr_jobdesc_blob_dek:
19 * Intializes and constructs the job descriptor for DEK encapsulation
20 * using the given parameters.
21 * @desc: reference to the job descriptor
22 * @plain_txt: reference to the DEK
23 * @enc_blob: reference where to store the blob
24 * @in_sz: size in bytes of the DEK
25 * @return: 0 on success, ECONSTRJDESC otherwise
27 int inline_cnstr_jobdesc_blob_dek(uint32_t *desc
, const uint8_t *plain_txt
,
28 uint8_t *enc_blob
, uint32_t in_sz
);
31 void inline_cnstr_jobdesc_hash(uint32_t *desc
,
32 const uint8_t *msg
, uint32_t msgsz
, uint8_t *digest
,
33 u32 alg_type
, uint32_t alg_size
, int sg_tbl
);
35 void inline_cnstr_jobdesc_blob_encap(uint32_t *desc
, uint8_t *key_idnfr
,
36 uint8_t *plain_txt
, uint8_t *enc_blob
,
39 void inline_cnstr_jobdesc_blob_decap(uint32_t *desc
, uint8_t *key_idnfr
,
40 uint8_t *enc_blob
, uint8_t *plain_txt
,
43 void inline_cnstr_jobdesc_rng_instantiation(uint32_t *desc
);
45 void inline_cnstr_jobdesc_pkha_rsaexp(uint32_t *desc
,
46 struct pk_in_params
*pkin
, uint8_t *out
,