Mercurial > dropbear
comparison libtomcrypt/demos/timing.c @ 389:5ff8218bcee9
propagate from branch 'au.asn.ucc.matt.ltm.dropbear' (head 2af95f00ebd5bb7a28b3817db1218442c935388e)
to branch 'au.asn.ucc.matt.dropbear' (head ecd779509ef23a8cdf64888904fc9b31d78aa933)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 11 Jan 2007 03:14:55 +0000 |
parents | 0cbe8f6dbf9e |
children | f849a5ca2efc |
comparison
equal
deleted
inserted
replaced
388:fb54020f78e1 | 389:5ff8218bcee9 |
---|---|
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 $ */ |