Mercurial > dropbear
comparison libtomcrypt/demos/timing.c @ 399:a707e6148060
merge of '5fdf69ca60d1683cdd9f4c2595134bed26394834'
and '6b61c50f4cf888bea302ac8fcf5dbb573b443251'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Feb 2007 08:20:34 +0000 |
parents | 0cbe8f6dbf9e |
children | f849a5ca2efc |
comparison
equal
deleted
inserted
replaced
394:17d097fc111c | 399:a707e6148060 |
---|---|
1 #include <tomcrypt_test.h> | |
2 | |
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 $ */ |