Changing error codes.
Change from MBEDTLS_ERR_ERROR_GENERIC_ERROR
to MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED
where PSA crypto is used.
Signed-off-by: pespacek <peter.spacek@silabs.com>
diff --git a/library/x509write_csr.c b/library/x509write_csr.c
index a9fc8ba..a58374f 100644
--- a/library/x509write_csr.c
+++ b/library/x509write_csr.c
@@ -225,7 +225,7 @@
PSA_HASH_MAX_SIZE,
&hash_len ) != PSA_SUCCESS )
{
- return ( MBEDTLS_ERR_X509_FATAL_ERROR );
+ return ( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
}
#else /* MBEDTLS_USE_PSA_CRYPTO */
ret = mbedtls_md( mbedtls_md_info_from_type( ctx->md_alg ), c, len, hash );