From 5b1a57375148901a1a8b83e0ad395e7e701a38ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 7 Jan 2014 16:46:17 +0100 Subject: [PATCH] Document dependency of ECDSA_DETERMINISTIC on MD_C --- include/polarssl/config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/polarssl/config.h b/include/polarssl/config.h index f4f5f777d..cf7edf0c9 100644 --- a/include/polarssl/config.h +++ b/include/polarssl/config.h @@ -286,6 +286,8 @@ * may result in a compromise of the long-term signing key. This is avoided by * the deterministic variant. * + * Requires: POLARSSL_MD_C + * * Comment this macro to disable deterministic ECDSA. */ #define POLARSSL_ECDSA_DETERMINISTIC @@ -1945,6 +1947,10 @@ #error "POLARSSL_ECDSA_C defined, but not all prerequisites" #endif +#if defined(POLARSSL_ECDSA_DETERMINISTIC) && !defined(POLARSSL_MD_C) +#error "POLARSSL_ECDSA_DETERMINISTIC defined, but not all prerequisites" +#endif + #if defined(POLARSSL_ECP_C) && ( !defined(POLARSSL_BIGNUM_C) || ( \ !defined(POLARSSL_ECP_DP_SECP192R1_ENABLED) && \ !defined(POLARSSL_ECP_DP_SECP224R1_ENABLED) && \