1#include <tomcrypt_test.h>
2
3int main(void)
4{
5
6init_timer();
7reg_algs();
8
9#ifdef USE_LTM
10   ltc_mp = ltm_desc;
11#elif defined(USE_TFM)
12   ltc_mp = tfm_desc;
13#elif defined(USE_GMP)
14   ltc_mp = gmp_desc;
15#else
16   extern ltc_math_descriptor EXT_MATH_LIB;
17   ltc_mp = EXT_MATH_LIB;
18#endif
19
20time_keysched();
21time_cipher();
22time_cipher2();
23time_cipher3();
24time_cipher4();
25time_hash();
26time_macs();
27time_encmacs();
28time_prng();
29time_mult();
30time_sqr();
31time_rsa();
32time_ecc();
33#ifdef USE_LTM
34time_katja();
35#endif
36return EXIT_SUCCESS;
37
38}
39
40/* $Source: /cvs/libtom/libtomcrypt/demos/timing.c,v $ */
41/* $Revision: 1.61 $ */
42/* $Date: 2006/12/03 03:08:35 $ */
43