From 5d4de3582e2d70a86aab2e76293ea9119fe1746d Mon Sep 17 00:00:00 2001 From: Waleed Elmelegy Date: Mon, 21 Oct 2024 17:43:24 +0100 Subject: [PATCH] rename mbedtls_psa_generate_key_complete() to mbedtls_psa_generate_key_iop_complete() Signed-off-by: Waleed Elmelegy --- tf-psa-crypto/core/psa_crypto.c | 4 ++-- tf-psa-crypto/core/psa_crypto_core.h | 4 ++-- tf-psa-crypto/drivers/builtin/src/psa_crypto_ecp.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tf-psa-crypto/core/psa_crypto.c b/tf-psa-crypto/core/psa_crypto.c index d41a232ed..40617b4cd 100644 --- a/tf-psa-crypto/core/psa_crypto.c +++ b/tf-psa-crypto/core/psa_crypto.c @@ -8191,8 +8191,8 @@ psa_status_t psa_generate_key_iop_complete( return PSA_ERROR_BAD_STATE; } - status = mbedtls_psa_generate_key_complete(&operation->ctx, key_data, - MBEDTLS_ECP_MAX_BYTES, &key_len); + status = mbedtls_psa_generate_key_iop_complete(&operation->ctx, key_data, + MBEDTLS_ECP_MAX_BYTES, &key_len); if (status != PSA_SUCCESS) { goto exit; } diff --git a/tf-psa-crypto/core/psa_crypto_core.h b/tf-psa-crypto/core/psa_crypto_core.h index cc9a78dc9..14c74dc01 100644 --- a/tf-psa-crypto/core/psa_crypto_core.h +++ b/tf-psa-crypto/core/psa_crypto_core.h @@ -443,7 +443,7 @@ psa_status_t psa_generate_key_internal(const psa_key_attributes_t *attributes, * \param[in] attributes The desired attributes of the generated key. * * \retval #PSA_SUCCESS - * The operation started successfully - call \c mbedtls_psa_generate_key_complete() + * The operation started successfully - call \c mbedtls_psa_generate_key_iop_complete() * with the same operation to complete the operation. * * \retval #PSA_ERROR_NOT_SUPPORTED * Either no internal interruptible operations are @@ -479,7 +479,7 @@ psa_status_t mbedtls_psa_generate_key_iop_setup( * \retval #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription * */ -psa_status_t mbedtls_psa_generate_key_complete( +psa_status_t mbedtls_psa_generate_key_iop_complete( mbedtls_psa_generate_key_iop_t *operation, uint8_t *key_output, size_t key_output_size, diff --git a/tf-psa-crypto/drivers/builtin/src/psa_crypto_ecp.c b/tf-psa-crypto/drivers/builtin/src/psa_crypto_ecp.c index 57131d341..cce993cf6 100644 --- a/tf-psa-crypto/drivers/builtin/src/psa_crypto_ecp.c +++ b/tf-psa-crypto/drivers/builtin/src/psa_crypto_ecp.c @@ -617,7 +617,7 @@ psa_status_t mbedtls_psa_generate_key_iop_setup( return mbedtls_to_psa_error(status); } -psa_status_t mbedtls_psa_generate_key_complete( +psa_status_t mbedtls_psa_generate_key_iop_complete( mbedtls_psa_generate_key_iop_t *operation, uint8_t *key_output, size_t key_output_size,