mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-23 07:20:56 +00:00
Add PSA internal iop export public-key abort function
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
14aef98758
commit
3d5ed793e7
@ -1665,6 +1665,23 @@ exit:
|
||||
/* Interruptible ECC Export Public-key */
|
||||
/****************************************************************/
|
||||
|
||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||
static psa_status_t psa_export_public_key_iop_abort_internal(psa_export_public_key_iop_t *operation)
|
||||
{
|
||||
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
||||
|
||||
if (operation->id == 0) {
|
||||
return PSA_SUCCESS;
|
||||
}
|
||||
|
||||
status = mbedtls_psa_ecp_export_public_key_iop_abort(&operation->ctx);
|
||||
|
||||
operation->id = 0;
|
||||
|
||||
return status;
|
||||
}
|
||||
#endif
|
||||
|
||||
uint32_t psa_export_public_key_iop_get_num_ops(psa_export_public_key_iop_t *operation)
|
||||
{
|
||||
(void) operation;
|
||||
|
Loading…
x
Reference in New Issue
Block a user