Skip to content

Commit

Permalink
rename mbedtls_psa_generate_key_complete() to mbedtls_psa_generate_ke…
Browse files Browse the repository at this point in the history
…y_iop_complete()

Signed-off-by: Waleed Elmelegy <[email protected]>
  • Loading branch information
waleed-elmelegy-arm committed Oct 22, 2024
1 parent 0c8ac2d commit 72f3178
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tf-psa-crypto/core/psa_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -8179,8 +8179,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;
}
Expand Down
4 changes: 2 additions & 2 deletions tf-psa-crypto/core/psa_crypto_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,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
Expand Down Expand Up @@ -480,7 +480,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,
Expand Down
2 changes: 1 addition & 1 deletion tf-psa-crypto/drivers/builtin/src/psa_crypto_ecp.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,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,
Expand Down

0 comments on commit 72f3178

Please sign in to comment.