Document dependency of ECDSA_DETERMINISTIC on MD_C

This commit is contained in:
Manuel Pégourié-Gonnard 2014-01-07 16:46:17 +01:00
parent 65ad3e4daf
commit 5b1a573751

View file

@ -286,6 +286,8 @@
* may result in a compromise of the long-term signing key. This is avoided by * may result in a compromise of the long-term signing key. This is avoided by
* the deterministic variant. * the deterministic variant.
* *
* Requires: POLARSSL_MD_C
*
* Comment this macro to disable deterministic ECDSA. * Comment this macro to disable deterministic ECDSA.
*/ */
#define POLARSSL_ECDSA_DETERMINISTIC #define POLARSSL_ECDSA_DETERMINISTIC
@ -1945,6 +1947,10 @@
#error "POLARSSL_ECDSA_C defined, but not all prerequisites" #error "POLARSSL_ECDSA_C defined, but not all prerequisites"
#endif #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) || ( \ #if defined(POLARSSL_ECP_C) && ( !defined(POLARSSL_BIGNUM_C) || ( \
!defined(POLARSSL_ECP_DP_SECP192R1_ENABLED) && \ !defined(POLARSSL_ECP_DP_SECP192R1_ENABLED) && \
!defined(POLARSSL_ECP_DP_SECP224R1_ENABLED) && \ !defined(POLARSSL_ECP_DP_SECP224R1_ENABLED) && \