This repository was archived by the owner on Apr 24, 2019. It is now read-only.
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
A client example failed when proper entropy collector has not been implemented #39
Closed
Description
In K64F platform, the macro MBEDTLS_ENTROPY_HARDWARE_ALT
is defined in the target.json
and proper implementation has been done in the HAL.
Some platforms do not support RNG hardware and expect to use software solution. e.g. build client example without MBEDTLS_ENTROPY_HARDWARE_ALT
macro.
In that case, I got connection error below if I removed the MBEDTLS_ENTROPY_HARDWARE_ALT
macro in K64F platform (as non RNG support device).
Starting mbed Client example...
Using Ethernet
Connected to Network successfully
IP address 10.128.4.32
SOCKET_MODE : UDP
Connecting to coap://api.connector.mbed.com:5684
[ERROR:] M2MInterface::SecureConnectionFailed
Attached files is mbed-trace log: trace_log_failed.txt
So, my question is:
- Is the
MBEDTLS_ENTROPY_HARDWARE_ALT
macro and entropy collector implementation mandatory feature, or optional?
If this is optional, the nanostack-hal-mbed-cmsis-rtos
should also have software implementation and the client example should not fail.
https://github.com/ARMmbed/nanostack-hal-mbed-cmsis-rtos/blob/master/arm_hal_random.c#L28