timing.c 528 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include <tomcrypt_test.h>
  2. int main(void)
  3. {
  4. init_timer();
  5. reg_algs();
  6. #ifdef USE_LTM
  7. ltc_mp = ltm_desc;
  8. #elif defined(USE_TFM)
  9. ltc_mp = tfm_desc;
  10. #else
  11. extern ltc_math_descriptor EXT_MATH_LIB;
  12. ltc_mp = EXT_MATH_LIB;
  13. #endif
  14. time_keysched();
  15. time_cipher();
  16. time_cipher2();
  17. time_cipher3();
  18. time_cipher4();
  19. time_hash();
  20. time_macs();
  21. time_encmacs();
  22. time_prng();
  23. time_mult();
  24. time_sqr();
  25. time_rsa();
  26. time_ecc();
  27. #ifdef USE_LTM
  28. time_katja();
  29. #endif
  30. return EXIT_SUCCESS;
  31. }
  32. /* $Source$ */
  33. /* $Revision$ */
  34. /* $Date$ */