comparison libtomcrypt/demos/timing.c @ 478:d4f32c3443ac dbclient-netcat-alike

propagate from branch 'au.asn.ucc.matt.dropbear' (head f21045c791002d81fc6b8dde6537ea481e513eb2) to branch 'au.asn.ucc.matt.dropbear.dbclient-netcat-alike' (head d1f69334581dc4c35f9ca16aa5355074c9dd315d)
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Sep 2008 06:47:51 +0000
parents 0cbe8f6dbf9e
children f849a5ca2efc
comparison
equal deleted inserted replaced
296:6b41e2cbf071 478:d4f32c3443ac
1 #include <tomcrypt_test.h> 1 #include <tomcrypt_test.h>
2 2
3 int main(void) 3 int main(void)
4 { 4 {
5
5 init_timer(); 6 init_timer();
6 reg_algs(); 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
7 time_keysched(); 20 time_keysched();
8 time_cipher(); 21 time_cipher();
9 time_cipher2(); 22 time_cipher2();
10 time_cipher3(); 23 time_cipher3();
24 time_cipher4();
11 time_hash(); 25 time_hash();
12 time_macs(); 26 time_macs();
13 time_encmacs(); 27 time_encmacs();
14 time_prng(); 28 time_prng();
15 time_mult(); 29 time_mult();
16 time_sqr(); 30 time_sqr();
17 time_rsa(); 31 time_rsa();
18 time_ecc(); 32 time_ecc();
19 time_dh(); 33 #ifdef USE_LTM
34 time_katja();
35 #endif
20 return EXIT_SUCCESS; 36 return EXIT_SUCCESS;
21 37
22 } 38 }
23 39
24 /* $Source: /cvs/libtom/libtomcrypt/demos/timing.c,v $ */ 40 /* $Source: /cvs/libtom/libtomcrypt/demos/timing.c,v $ */
25 /* $Revision: 1.17 $ */ 41 /* $Revision: 1.61 $ */
26 /* $Date: 2005/06/23 02:16:26 $ */ 42 /* $Date: 2006/12/03 03:08:35 $ */