Home
last modified time | relevance | path

Searched refs:cid (Results 1 – 6 of 6) sorted by relevance

/trusted-firmware-a-3.7.0/drivers/st/crypto/
Dstm32_pka.c386 static unsigned int get_ecc_op_nbword(enum stm32_pka_ecdsa_curve_id cid) in get_ecc_op_nbword() argument
388 if (cid >= ARRAY_SIZE(curve_def)) { in get_ecc_op_nbword()
389 ERROR("CID %u is out of boundaries\n", cid); in get_ecc_op_nbword()
393 return OP_NBW_FROM_LEN(curve_def[cid].n_len); in get_ecc_op_nbword()
396 static int stm32_pka_ecdsa_verif_configure_curve(uintptr_t base, enum stm32_pka_ecdsa_curve_id cid) in stm32_pka_ecdsa_verif_configure_curve() argument
399 unsigned int eo_nbw = get_ecc_op_nbword(cid); in stm32_pka_ecdsa_verif_configure_curve()
401 mmio_write_64(base + _PKA_RAM_N_LEN, curve_def[cid].n_len); in stm32_pka_ecdsa_verif_configure_curve()
402 mmio_write_64(base + _PKA_RAM_P_LEN, curve_def[cid].p_len); in stm32_pka_ecdsa_verif_configure_curve()
403 mmio_write_64(base + _PKA_RAM_A_SIGN, curve_def[cid].a_sign); in stm32_pka_ecdsa_verif_configure_curve()
405 ret = write_eo_data(base + _PKA_RAM_A, curve_def[cid].a, curve_def[cid].a_size, eo_nbw); in stm32_pka_ecdsa_verif_configure_curve()
[all …]
/trusted-firmware-a-3.7.0/plat/imx/imx8m/
Dimx_hab.c67 void* (*authenticate_image)(uint8_t cid, long ivt_offset, void **start,
70 enum hab_status (*run_csf)(const uint8_t *csf, uint8_t cid, uint32_t srkmask);
76 void* (*authenticate_image_no_dcd)(uint8_t cid, long ivt_offset, void **start,
79 enum hab_status (*authenticate_container)(uint8_t cid, long ivt_offset, void **start,
/trusted-firmware-a-3.7.0/plat/st/common/
Dstm32mp_crypto_lib.c188 enum stm32_pka_ecdsa_curve_id cid; in verify_signature() local
193 cid = PKA_NIST_P256; in verify_signature()
201 cid = PKA_BRAINPOOL_P256T1; in verify_signature()
223 BOOT_API_ECDSA_PUB_KEY_LEN_IN_BYTES / 2U, cid); in verify_signature()
239 uint32_t cid; in crypto_convert_pk() local
246 cid = curve_id; /* we want value of curve_id (1 or 2) in a uint32_t */ in crypto_convert_pk()
248 memcpy(st_pk, &cid, sizeof(cid)); in crypto_convert_pk()
249 memcpy(st_pk + sizeof(cid), plain_pk, len); in crypto_convert_pk()
252 *hashed_pk_len = (unsigned int)(len + sizeof(cid)); in crypto_convert_pk()
/trusted-firmware-a-3.7.0/include/drivers/st/
Dstm32_pka.h31 enum stm32_pka_ecdsa_curve_id cid);
/trusted-firmware-a-3.7.0/drivers/arm/mhu/
Dmhu_v2_x.c77 volatile uint32_t cid[4]; member
127 volatile uint32_t cid[4]; member
/trusted-firmware-a-3.7.0/plat/xilinx/zynqmp/pm_service/
Dpm_api_clock.c2714 const enum clock_id cid; member
2725 .cid = CLK_IOPLL_INT,
2732 .cid = CLK_RPLL_INT,
2739 .cid = CLK_APLL_INT,
2746 .cid = CLK_VPLL_INT,
2753 .cid = CLK_DPLL_INT,
2773 if (pm_plls[i].cid == clock_id) { in pm_clock_get_pll()