Add #ifdef to make it easier to embed libtomcrypt with LTC_NOTHING
Restore LTC_NO_MATH and make rand_prime.c depend on LTC_NO_MATH & LTC_NO_PRNGS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
#endif /* LTC_NO_MATH */
|
||||
|
||||
|
||||
/* $Source$ */
|
||||
|
||||
Reference in New Issue
Block a user