tomcrypt/demos/timing.c

37 lines
477 B
C
Raw Normal View History

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();
reg_algs();
2005-08-01 16:36:47 +00:00
#ifdef USE_LTM
ltc_mp = ltm_desc;
#elif defined(USE_TFM)
ltc_mp = tfm_desc;
#else
extern ltc_math_descriptor EXT_MATH_LIB;
ltc_mp = EXT_MATH_LIB;
#endif
2005-04-17 11:37:13 +00:00
time_keysched();
time_cipher();
time_cipher2();
time_cipher3();
time_hash();
time_macs();
time_encmacs();
time_prng();
time_mult();
time_sqr();
time_rsa();
time_ecc();
return EXIT_SUCCESS;
}
2005-06-09 00:08:13 +00:00
/* $Source$ */
/* $Revision$ */
/* $Date$ */