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/x509_crt.c b/library/x509_crt.c
index b7eb617..b0c2d48 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -2464,7 +2464,7 @@
                                &hash_len );
     if( status != PSA_SUCCESS )
     {
-        return MBEDTLS_ERR_ERROR_GENERIC_ERROR;
+        return( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
     }
 
 #endif /* MBEDTLS_USE_PSA_CRYPTO */