Rename platform error code and value
Rename the PLATFORM HW error, to avoid ABI breakage with Mbed OS.
The value changed as well, as previous value was not in the range of
Mbed TLS low level error codes.
diff --git a/library/error.c b/library/error.c
index c629217..0a1c794 100644
--- a/library/error.c
+++ b/library/error.c
@@ -826,7 +826,7 @@
#endif /* MBEDTLS_PADLOCK_C */
#if defined(MBEDTLS_PLATFORM_C)
- if( use_ret == -(MBEDTLS_ERR_PLATFORM_HW_FAILED) )
+ if( use_ret == -(MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED) )
mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware failed platform operation" );
#endif /* MBEDTLS_PLATFORM_C */