diff options
author | Ruchika Gupta <ruchika.gupta@freescale.com> | 2015-01-23 16:01:55 +0530 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-29 17:09:58 -0700 |
commit | 34276478f7b7a0fea9c76e365a477962910ef770 (patch) | |
tree | 45021bad9d49780795816921ea05c1e94e5ba454 /drivers/crypto/fsl/jobdesc.h | |
parent | c937ff6dc2ee3fcd8f97087427fe8ba5086852c4 (diff) | |
download | u-boot-imx-34276478f7b7a0fea9c76e365a477962910ef770.zip u-boot-imx-34276478f7b7a0fea9c76e365a477962910ef770.tar.gz u-boot-imx-34276478f7b7a0fea9c76e365a477962910ef770.tar.bz2 |
DM: crypto/fsl - Add Freescale rsa DM driver
Driver added for RSA Modular Exponentiation using Freescale Hardware
Accelerator CAAM. The driver uses UCLASS_MOD_EXP
Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
CC: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/crypto/fsl/jobdesc.h')
-rw-r--r-- | drivers/crypto/fsl/jobdesc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/crypto/fsl/jobdesc.h b/drivers/crypto/fsl/jobdesc.h index 3cf7226..84b3edd 100644 --- a/drivers/crypto/fsl/jobdesc.h +++ b/drivers/crypto/fsl/jobdesc.h @@ -10,6 +10,7 @@ #include <common.h> #include <asm/io.h> +#include "rsa_caam.h" #define KEY_IDNFR_SZ_BYTES 16 @@ -26,4 +27,8 @@ void inline_cnstr_jobdesc_blob_decap(uint32_t *desc, uint8_t *key_idnfr, uint32_t out_sz); void inline_cnstr_jobdesc_rng_instantiation(uint32_t *desc); + +void inline_cnstr_jobdesc_pkha_rsaexp(uint32_t *desc, + struct pk_in_params *pkin, uint8_t *out, + uint32_t out_siz); #endif |