Make mbedtls_sa_ecp_load_public_part return psa_status_t

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2023-02-15 17:32:42 +00:00
parent efebad0d67
commit 2c9843f2a4
3 changed files with 28 additions and 20 deletions

View file

@ -3787,10 +3787,10 @@ psa_status_t mbedtls_psa_verify_hash_start(
return status;
}
int ret = mbedtls_psa_ecp_load_public_part(operation->ctx);
status = mbedtls_psa_ecp_load_public_part(operation->ctx);
if (ret != 0) {
return mbedtls_to_psa_error(ret);
if (status != PSA_SUCCESS) {
return status;
}
/* We only need to store the same length of hash as the private key size