Home
last modified time | relevance | path

Searched refs:hpka (Results 1 – 7 of 7) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32u5xx/hal/Src/
Dstm32u5xx_hal_pka.c295 uint32_t PKA_GetMode(PKA_HandleTypeDef *hpka);
296 HAL_StatusTypeDef PKA_PollEndOfOperation(PKA_HandleTypeDef *hpka, uint32_t Timeout, uint32_t Tickst…
297 uint32_t PKA_CheckError(PKA_HandleTypeDef *hpka, uint32_t mode);
305 HAL_StatusTypeDef PKA_Process(PKA_HandleTypeDef *hpka, uint32_t mode, uint32_t Timeout);
306 HAL_StatusTypeDef PKA_Process_IT(PKA_HandleTypeDef *hpka, uint32_t mode);
307 void PKA_ModExp_Set(PKA_HandleTypeDef *hpka, PKA_ModExpInTypeDef *in);
308 void PKA_ModExpFastMode_Set(PKA_HandleTypeDef *hpka, PKA_ModExpFastModeInTypeDef *in);
309 void PKA_ModExpProtectMode_Set(PKA_HandleTypeDef *hpka, PKA_ModExpProtectModeInTypeDef *in);
310 void PKA_ECDSASign_Set(PKA_HandleTypeDef *hpka, PKA_ECDSASignInTypeDef *in);
311 void PKA_ECDSAVerif_Set(PKA_HandleTypeDef *hpka, PKA_ECDSAVerifInTypeDef *in);
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32l5xx/hal/Src/
Dstm32l5xx_hal_pka.c280 uint32_t PKA_GetMode(PKA_HandleTypeDef *hpka);
281 HAL_StatusTypeDef PKA_PollEndOfOperation(PKA_HandleTypeDef *hpka, uint32_t Timeout, uint32_t Tickst…
282 uint32_t PKA_CheckError(PKA_HandleTypeDef *hpka, uint32_t mode);
290 HAL_StatusTypeDef PKA_Process(PKA_HandleTypeDef *hpka, uint32_t mode, uint32_t Timeout);
291 HAL_StatusTypeDef PKA_Process_IT(PKA_HandleTypeDef *hpka, uint32_t mode);
292 void PKA_ModExp_Set(PKA_HandleTypeDef *hpka, PKA_ModExpInTypeDef *in);
293 void PKA_ModExpFastMode_Set(PKA_HandleTypeDef *hpka, PKA_ModExpFastModeInTypeDef *in);
294 void PKA_ECDSASign_Set(PKA_HandleTypeDef *hpka, PKA_ECDSASignInTypeDef *in);
295 void PKA_ECDSAVerif_Set(PKA_HandleTypeDef *hpka, PKA_ECDSAVerifInTypeDef *in);
296 void PKA_RSACRTExp_Set(PKA_HandleTypeDef *hpka, PKA_RSACRTExpInTypeDef *in);
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32l5xx/hal/Inc/
Dstm32l5xx_hal_pka.h112 …void (* OperationCpltCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA End of operation callba…
113 …void (* ErrorCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA Error callback …
114 …void (* MspInitCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA Msp Init callback …
115 …void (* MspDeInitCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA Msp DeInit callback …
127 typedef void (*pPKA_CallbackTypeDef)(PKA_HandleTypeDef *hpka); /*!< Pointer to a PKA callback func…
455 HAL_StatusTypeDef HAL_PKA_Init(PKA_HandleTypeDef *hpka);
456 HAL_StatusTypeDef HAL_PKA_DeInit(PKA_HandleTypeDef *hpka);
457 void HAL_PKA_MspInit(PKA_HandleTypeDef *hpka);
458 void HAL_PKA_MspDeInit(PKA_HandleTypeDef *hpka);
462 HAL_StatusTypeDef HAL_PKA_RegisterCallback(PKA_HandleTypeDef *hpka, HAL_PKA_CallbackIDTypeDef Callb…
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32u5xx/hal/Inc/
Dstm32u5xx_hal_pka.h112 …void (* OperationCpltCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA End of operation callba…
113 …void (* ErrorCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA Error callback …
114 …void (* MspInitCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA Msp Init callback …
115 …void (* MspDeInitCallback)(struct __PKA_HandleTypeDef *hpka); /*!< PKA Msp DeInit callback …
127 typedef void (*pPKA_CallbackTypeDef)(PKA_HandleTypeDef *hpka); /*!< Pointer to a PKA callback func…
527 HAL_StatusTypeDef HAL_PKA_Init(PKA_HandleTypeDef *hpka);
528 HAL_StatusTypeDef HAL_PKA_DeInit(PKA_HandleTypeDef *hpka);
529 void HAL_PKA_MspInit(PKA_HandleTypeDef *hpka);
530 void HAL_PKA_MspDeInit(PKA_HandleTypeDef *hpka);
534 HAL_StatusTypeDef HAL_PKA_RegisterCallback(PKA_HandleTypeDef *hpka, HAL_PKA_CallbackIDTypeDef Callb…
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/accelerator/
Decdsa_alt.c65 PKA_HandleTypeDef hpka = {0}; in mbedtls_ecdsa_sign() local
124 hpka.Instance = PKA; in mbedtls_ecdsa_sign()
125 MBEDTLS_MPI_CHK((HAL_PKA_Init(&hpka) != HAL_OK) ? MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED : 0); in mbedtls_ecdsa_sign()
127 HAL_PKA_RAMReset(&hpka); in mbedtls_ecdsa_sign()
130 …MBEDTLS_MPI_CHK((HAL_PKA_ECDSASign(&hpka, &ECDSA_SignIn, ST_ECDSA_TIMEOUT) != HAL_OK) ? MBEDTLS_ER… in mbedtls_ecdsa_sign()
140 HAL_PKA_ECDSASign_GetResult(&hpka, &ECDSA_SignOut, NULL); in mbedtls_ecdsa_sign()
149 HAL_PKA_DeInit(&hpka); in mbedtls_ecdsa_sign()
221 PKA_HandleTypeDef hpka = {0}; in mbedtls_ecdsa_verify() local
279 hpka.Instance = PKA; in mbedtls_ecdsa_verify()
280 MBEDTLS_MPI_CHK((HAL_PKA_Init(&hpka) != HAL_OK) ? MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED : 0); in mbedtls_ecdsa_verify()
[all …]
Drsa_alt.c121 PKA_HandleTypeDef hpka = {0}; in rsa_pka_arithmetic_mul() local
152 hpka.Instance = PKA; in rsa_pka_arithmetic_mul()
153 … MBEDTLS_MPI_CHK( ( HAL_PKA_Init( &hpka ) != HAL_OK ) ? MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED : 0 ); in rsa_pka_arithmetic_mul()
156 HAL_PKA_RAMReset(&hpka); in rsa_pka_arithmetic_mul()
158 …MBEDTLS_MPI_CHK( ( HAL_PKA_Mul(&hpka, &in, ST_PKA_TIMEOUT) != HAL_OK ) ? MBEDTLS_ERR_PLATFORM_HW_A… in rsa_pka_arithmetic_mul()
160 HAL_PKA_Arithmetic_GetResult( &hpka, (uint32_t *)AxB ); in rsa_pka_arithmetic_mul()
164 HAL_PKA_DeInit( &hpka ); in rsa_pka_arithmetic_mul()
320 PKA_HandleTypeDef hpka = {0}; in rsa_pka_modexp() local
400 hpka.Instance = PKA; in rsa_pka_modexp()
401 … MBEDTLS_MPI_CHK( ( HAL_PKA_Init( &hpka ) != HAL_OK ) ? MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED : 0 ); in rsa_pka_modexp()
[all …]
Decp_alt.c1463 PKA_HandleTypeDef hpka = {0}; in ecp_mul_comb() local
1501 hpka.Instance = PKA; in ecp_mul_comb()
1502 MBEDTLS_MPI_CHK((HAL_PKA_Init(&hpka) != HAL_OK) ? MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED : 0); in ecp_mul_comb()
1505 HAL_PKA_RAMReset(&hpka); in ecp_mul_comb()
1508 …MBEDTLS_MPI_CHK((HAL_PKA_ECCMul(&hpka, &ECC_MulIn, ST_ECP_TIMEOUT) != HAL_OK) ? MBEDTLS_ERR_PLATFO… in ecp_mul_comb()
1518 HAL_PKA_ECCMul_GetResult(&hpka, &ECC_MulOut); in ecp_mul_comb()
1526 HAL_PKA_DeInit(&hpka); in ecp_mul_comb()
1849 PKA_HandleTypeDef hpka = {0};
1883 hpka.Instance = PKA;
1884 MBEDTLS_MPI_CHK((HAL_PKA_Init(&hpka) != HAL_OK) ? MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED : 0);
[all …]