Mercurial > dropbear
comparison libtomcrypt/demos/timing.c @ 382:0cbe8f6dbf9e
propagate from branch 'au.asn.ucc.matt.ltc.dropbear' (head 2af22fb4e878750b88f80f90d439b316d229796f)
to branch 'au.asn.ucc.matt.dropbear' (head 02c413252c90e9de8e03d91e9939dde3029f5c0a)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 11 Jan 2007 02:41:05 +0000 |
parents | 1b9e69c058d2 |
children | f849a5ca2efc |
comparison
equal
deleted
inserted
replaced
379:b66a00272a90 | 382:0cbe8f6dbf9e |
---|---|
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 $ */ |