Mercurial > dropbear
comparison libtomcrypt/demos/timing.c @ 398:59c7938af2bd
merge of '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c'
and '7f8670ac3bb975f40967f3979d09d2199b7e90c8'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Feb 2007 08:20:30 +0000 |
parents | 0cbe8f6dbf9e |
children | f849a5ca2efc |
comparison
equal
deleted
inserted
replaced
396:e7c1a77d2921 | 398:59c7938af2bd |
---|---|
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 $ */ |