From a27cd4c62e7c9aea2104cd2d42702abb06fec150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 2 Apr 2014 13:46:29 +0200 Subject: [PATCH] Fix ENTROPY_LEN check --- include/polarssl/config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/polarssl/config.h b/include/polarssl/config.h index 1681e1b4b..83aa9a306 100644 --- a/include/polarssl/config.h +++ b/include/polarssl/config.h @@ -2119,8 +2119,9 @@ defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 64) #error "CTR_DRBG_ENTROPY_LEN value too high" #endif -#if defined(POLARSSL_ENTROPY_C) && !defined(POLARSSL_SHA512_C) && \ - defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 32) +#if defined(POLARSSL_ENTROPY_C) && \ + ( !defined(POLARSSL_SHA512_C) || defined(POLARSSL_ENTROPY_FORCE_SHA256) ) \ + && defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 32) #error "CTR_DRBG_ENTROPY_LEN value too high" #endif #if defined(POLARSSL_ENTROPY_C) && \