timing.c 512 B

1234567891011121314151617181920212223242526272829303132333435363738
  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_hash();
  19. time_macs();
  20. time_encmacs();
  21. time_prng();
  22. time_mult();
  23. time_sqr();
  24. time_rsa();
  25. time_ecc();
  26. #ifdef USE_LTM
  27. time_katja();
  28. #endif
  29. return EXIT_SUCCESS;
  30. }
  31. /* $Source$ */
  32. /* $Revision$ */
  33. /* $Date$ */