From 1153c31bbbbc6aa8ad90b7d7941d9c2f9572d8b8 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 9 Dec 2015 09:53:59 -0800 Subject: [PATCH] Added compile time check for ALT_ECC_SIZE requiring USE_FAST_MATH. --- wolfssl/wolfcrypt/ecc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfssl/wolfcrypt/ecc.h b/wolfssl/wolfcrypt/ecc.h index 880b36237..a23fa71f2 100644 --- a/wolfssl/wolfcrypt/ecc.h +++ b/wolfssl/wolfcrypt/ecc.h @@ -85,6 +85,10 @@ typedef struct { * Do not enable ALT_ECC_SIZE and disable fast math in the configuration. */ +#ifndef USE_FAST_MATH + #error USE_FAST_MATH must be defined to use ALT_ECC_SIZE +#endif + #ifndef FP_MAX_BITS_ECC #define FP_MAX_BITS_ECC 528 #endif