Skip to content

Commit 1b95c67

Browse files
committed
mbedtls trng - remove MBEDTLS_ENTROPY_HARDWARE_ALT
MBEDTLS_ENTROPY_HARDWARE_ALT will be defined via config in mbedtls, the mbed wrapper should use DEVICE_TRNG.
1 parent ef58562 commit 1b95c67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/mbedtls/platform/src/mbed_trng.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "hal/trng_api.h"
17+
#if defined(DEVICE_TRNG)
1818

19-
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && defined(DEVICE_TRNG)
19+
#include "hal/trng_api.h"
2020

2121
int mbedtls_hardware_poll( void *data, unsigned char *output, size_t len, size_t *olen ) {
2222
trng_t trng_obj;

0 commit comments

Comments
 (0)