comparison libtomcrypt/demos/timing.c @ 511:582cb38e4eb5 insecure-nocrypto

propagate from branch 'au.asn.ucc.matt.dropbear' (head cdcc3c729e29544e8b98a408e2dc60e4483dfd2a) to branch 'au.asn.ucc.matt.dropbear.insecure-nocrypto' (head 0ca38a1cf349f7426ac9de34ebe4c3e3735effab)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 06 Nov 2008 13:16:55 +0000
parents 0cbe8f6dbf9e
children f849a5ca2efc
comparison
equal deleted inserted replaced
361:461c4b1fb35f 511:582cb38e4eb5
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 $ */