2005-04-17 11:37:13 +00:00
|
|
|
#include <tomcrypt_test.h>
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2005-08-01 16:36:47 +00:00
|
|
|
|
2005-04-17 11:37:13 +00:00
|
|
|
init_timer();
|
2017-05-05 11:52:39 +00:00
|
|
|
register_algs();
|
2005-08-01 16:36:47 +00:00
|
|
|
|
|
|
|
#ifdef USE_LTM
|
|
|
|
ltc_mp = ltm_desc;
|
|
|
|
#elif defined(USE_TFM)
|
|
|
|
ltc_mp = tfm_desc;
|
2006-04-06 19:48:32 +00:00
|
|
|
#elif defined(USE_GMP)
|
|
|
|
ltc_mp = gmp_desc;
|
2005-08-01 16:36:47 +00:00
|
|
|
#else
|
|
|
|
extern ltc_math_descriptor EXT_MATH_LIB;
|
|
|
|
ltc_mp = EXT_MATH_LIB;
|
|
|
|
#endif
|
2006-11-17 14:21:24 +00:00
|
|
|
|
2005-04-17 11:37:13 +00:00
|
|
|
time_keysched();
|
|
|
|
time_cipher();
|
|
|
|
time_cipher2();
|
|
|
|
time_cipher3();
|
2006-02-11 08:19:10 +00:00
|
|
|
time_cipher4();
|
2005-04-17 11:37:13 +00:00
|
|
|
time_hash();
|
|
|
|
time_macs();
|
|
|
|
time_encmacs();
|
|
|
|
time_prng();
|
|
|
|
time_mult();
|
|
|
|
time_sqr();
|
|
|
|
time_rsa();
|
|
|
|
time_ecc();
|
2005-11-18 05:15:37 +00:00
|
|
|
#ifdef USE_LTM
|
|
|
|
time_katja();
|
|
|
|
#endif
|
2005-04-17 11:37:13 +00:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
|
|
|
|
}
|
2005-06-09 00:08:13 +00:00
|
|
|
|
|
|
|
/* $Source$ */
|
|
|
|
/* $Revision$ */
|
|
|
|
/* $Date$ */
|