mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-12 01:42:21 +08:00
Add PSA iop export public-key abort API
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
cd189e881b
commit
ada977f4c3
@ -1762,9 +1762,19 @@ psa_status_t psa_export_public_key_iop_complete(psa_export_public_key_iop_t *ope
|
|||||||
|
|
||||||
psa_status_t psa_export_public_key_iop_abort(psa_export_public_key_iop_t *operation)
|
psa_status_t psa_export_public_key_iop_abort(psa_export_public_key_iop_t *operation)
|
||||||
{
|
{
|
||||||
(void) operation;
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
|
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
||||||
|
|
||||||
return PSA_ERROR_NOT_SUPPORTED;
|
status = psa_export_public_key_iop_abort_internal(operation);
|
||||||
|
|
||||||
|
operation->num_ops = 0;
|
||||||
|
operation->error_occurred = 0;
|
||||||
|
|
||||||
|
return status;
|
||||||
|
#else
|
||||||
|
(void) operation;
|
||||||
|
return PSA_SUCCESS;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Validate that a key policy is internally well-formed.
|
/** Validate that a key policy is internally well-formed.
|
||||||
@ -8510,7 +8520,6 @@ psa_status_t psa_generate_key_iop_abort(
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
/* Module setup */
|
/* Module setup */
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user