From 47fab18f96290a40be8ce4e5c5423489f49a2aa3 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Thu, 16 Feb 2023 23:41:43 +0100 Subject: [PATCH] Enabling entropy and ctr_drbg for emulation mode. Signed-off-by: Pol Henarejos --- config/mbedtls_config.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/mbedtls_config.h b/config/mbedtls_config.h index 57c6272..6e109fd 100644 --- a/config/mbedtls_config.h +++ b/config/mbedtls_config.h @@ -2212,7 +2212,9 @@ * * This module provides the CTR_DRBG AES random number generator. */ -//#define MBEDTLS_CTR_DRBG_C +#ifdef ENABLE_EMULATION +#define MBEDTLS_CTR_DRBG_C +#endif /** * \def MBEDTLS_DEBUG_C @@ -2347,7 +2349,9 @@ * * This module provides a generic entropy pool */ -//#define MBEDTLS_ENTROPY_C +#ifdef ENABLE_EMULATION +#define MBEDTLS_ENTROPY_C +#endif /** * \def MBEDTLS_ERROR_C