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_crt.c b/library/x509write_crt.c
index 44a9729..b0589cc 100644
--- a/library/x509write_crt.c
+++ b/library/x509write_crt.c
@@ -243,7 +243,7 @@
                                &hash_length );
     if( status != PSA_SUCCESS )
     {
-        return( MBEDTLS_ERR_ERROR_GENERIC_ERROR );
+        return( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
     }
 #else
     ret = mbedtls_sha1( buf + sizeof( buf ) - len, len,
@@ -527,7 +527,7 @@
                                &hash_length );
     if( status != PSA_SUCCESS )
     {
-        return MBEDTLS_ERR_ERROR_GENERIC_ERROR;
+        return( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
     }
 #else
     if( ( ret = mbedtls_md( mbedtls_md_info_from_type( ctx->md_alg ), c,