Mercurial > dropbear
comparison libtomcrypt/demos/timing.c @ 391:00fcf5045160
propagate from branch 'au.asn.ucc.matt.ltc.dropbear' (head c1db4398d56c56c6d06ae1e20c1e0d04dbb598ed)
to branch 'au.asn.ucc.matt.dropbear' (head d26d5eb2837f46b56a33fb0e7573aa0201abd4d5)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 11 Jan 2007 04:29:08 +0000 |
parents | 0cbe8f6dbf9e |
children | f849a5ca2efc |
comparison
equal
deleted
inserted
replaced
390:d8e44bef7917 | 391:00fcf5045160 |
---|---|
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 $ */ |