@@ -68,6 +68,7 @@
/* shortcut to disable automatic inclusion */
#if defined LTC_NOTHING && !defined LTC_EASY
+ #define LTC_NO_MATH
#define LTC_NO_CIPHERS
#define LTC_NO_MODES
#define LTC_NO_HASHES
@@ -143,12 +144,16 @@
/* #define LTC_NO_BSWAP */
/* ---> math provider? <--- */
+#ifndef LTC_NO_MATH
+
/* LibTomMath */
/* #define LTM_DESC */
/* TomsFastMath */
/* #define TFM_DESC */
+#endif /* LTC_NO_MATH */
/* GNU Multiple Precision Arithmetic Library */
/* #define GMP_DESC */
@@ -10,6 +10,8 @@
*/
#include "tomcrypt.h"
+#if !defined LTC_NO_MATH && !defined LTC_NO_PRNGS
/**
@file rand_prime.c
Generate a random prime, Tom St Denis
@@ -80,6 +82,7 @@ int rand_prime(void *N, long len, prng_state *prng, int wprng)
return CRYPT_OK;
}
/* $Source$ */