tomcrypt/demos/timing.c

43 lines
579 B
C
Raw Normal View History

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