• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <tomcrypt_test.h>
2 
main(void)3 int main(void)
4 {
5 
6 init_timer();
7 reg_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 
20 time_keysched();
21 time_cipher();
22 time_cipher2();
23 time_cipher3();
24 time_cipher4();
25 time_hash();
26 time_macs();
27 time_encmacs();
28 time_prng();
29 time_mult();
30 time_sqr();
31 time_rsa();
32 time_ecc();
33 #ifdef USE_LTM
34 time_katja();
35 #endif
36 return 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