make math initializer functions dependant on the xxx_DESC macro instead of the USE_xxx macro, which is only relevant when building tests etc.
@@ -56,8 +56,17 @@ int crypt_list_all_constants(char *names_list, unsigned long *names_list_size);
int crypt_get_size(const char* namein, int *sizeout);
int crypt_list_all_sizes(char *names_list, unsigned long *names_list_size);
+#ifdef LTM_DESC
void init_LTM(void);
+#endif
+#ifdef TFM_DESC
void init_TFM(void);
+/* *** use of GMP is untested ***
+#ifdef GMP_DESC
+void init_GMP(void);
+*/
/* $Source$ */
@@ -12,33 +12,33 @@
/**
@file crypt_inits.c
-
- Provide math library functions for dynamic languages
+
+ Provide math library functions for dynamic languages
like Python - Larry Bugbee, February 2013
*/
-#ifdef USE_LTM
void init_LTM(void) {
ltc_mp = ltm_desc;
}
#endif
-#ifdef USE_TFM
void init_TFM(void) {
ltc_mp = tfm_desc;
/* *** use of GMP is untested ***
- #ifdef USE_GMP
- void init_GMP(void) {
- ltc_mp = gmp_desc;
- }
- #endif
+void init_GMP(void) {
+ ltc_mp = gmp_desc;
+}
-/* $Source: /cvs/libtom/libtomcrypt/src/misc/crypt/crypt_inits.c,v $ */
-/* $Revision: $ */
-/* $Date: $ */
+/* $Source$ */
+/* $Revision$ */
+/* $Date$ */