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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user