update math inititializers
make math initializer functions dependant on the xxx_DESC macro instead of the USE_xxx macro, which is only relevant when building tests etc.
This commit is contained in:
parent
746fd583c9
commit
542ba9995c
@ -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_get_size(const char* namein, int *sizeout);
|
||||||
int crypt_list_all_sizes(char *names_list, unsigned long *names_list_size);
|
int crypt_list_all_sizes(char *names_list, unsigned long *names_list_size);
|
||||||
|
|
||||||
|
#ifdef LTM_DESC
|
||||||
void init_LTM(void);
|
void init_LTM(void);
|
||||||
|
#endif
|
||||||
|
#ifdef TFM_DESC
|
||||||
void init_TFM(void);
|
void init_TFM(void);
|
||||||
|
#endif
|
||||||
|
/* *** use of GMP is untested ***
|
||||||
|
#ifdef GMP_DESC
|
||||||
|
void init_GMP(void);
|
||||||
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* $Source$ */
|
/* $Source$ */
|
||||||
|
@ -18,20 +18,20 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_LTM
|
#ifdef LTM_DESC
|
||||||
void init_LTM(void) {
|
void init_LTM(void) {
|
||||||
ltc_mp = ltm_desc;
|
ltc_mp = ltm_desc;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_TFM
|
#ifdef TFM_DESC
|
||||||
void init_TFM(void) {
|
void init_TFM(void) {
|
||||||
ltc_mp = tfm_desc;
|
ltc_mp = tfm_desc;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* *** use of GMP is untested ***
|
/* *** use of GMP is untested ***
|
||||||
#ifdef USE_GMP
|
#ifdef GMP_DESC
|
||||||
void init_GMP(void) {
|
void init_GMP(void) {
|
||||||
ltc_mp = gmp_desc;
|
ltc_mp = gmp_desc;
|
||||||
}
|
}
|
||||||
@ -39,6 +39,6 @@ void init_TFM(void) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* $Source: /cvs/libtom/libtomcrypt/src/misc/crypt/crypt_inits.c,v $ */
|
/* $Source$ */
|
||||||
/* $Revision: $ */
|
/* $Revision$ */
|
||||||
/* $Date: $ */
|
/* $Date$ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user