Change internal iop generate key error variable to int

Change internal iop generate key error variable to int
instead of psa_status_t since the error variable get
passed to mbedtls_to_psa_error() when being returned

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
Waleed Elmelegy 2024-11-25 16:50:06 +00:00
parent c57f6fcd05
commit 1630603ef1
2 changed files with 2 additions and 3 deletions

View File

@ -600,7 +600,7 @@ psa_status_t mbedtls_psa_ecp_generate_key_iop_setup(
mbedtls_psa_generate_key_iop_t *operation,
const psa_key_attributes_t *attributes)
{
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
int status = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
mbedtls_ecp_keypair_init(&operation->ecp);
@ -624,7 +624,7 @@ psa_status_t mbedtls_psa_ecp_generate_key_iop_complete(
size_t *key_len)
{
*key_len = 0;
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
int status = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
*key_len = PSA_BITS_TO_BYTES(operation->ecp.grp.nbits);

View File

@ -236,7 +236,6 @@ psa_status_t mbedtls_psa_ecp_generate_key_iop_abort(
* \retval #PSA_ERROR_CORRUPTION_DETECTED \emptydescription
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY \emptydescription
*/
psa_status_t mbedtls_psa_ecdsa_sign_hash(
const psa_key_attributes_t *attributes,
const uint8_t *key_buffer, size_t key_buffer_size,