comparison demos/timing.c @ 380:d5faf4814ddb libtomcrypt-orig libtomcrypt-1.16

Update to LibTomCrypt 1.16
author Matt Johnston <matt@ucc.asn.au>
date Thu, 11 Jan 2007 02:22:00 +0000
parents 59400faa4b44
children
comparison
equal deleted inserted replaced
280:59400faa4b44 380:d5faf4814ddb
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 $ */