tomcrypt_test.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* LibTomCrypt, modular cryptographic library -- Tom St Denis
  2. *
  3. * LibTomCrypt is a library that provides various cryptographic
  4. * algorithms in a highly modular and flexible manner.
  5. *
  6. * The library is free for all purposes without any express
  7. * guarantee it works.
  8. */
  9. #ifndef __TEST_H_
  10. #define __TEST_H_
  11. #include <tomcrypt.h>
  12. #include "common.h"
  13. typedef struct {
  14. char *name, *prov, *req;
  15. int (*entry)(void);
  16. } test_entry;
  17. /* TESTS */
  18. int cipher_hash_test(void);
  19. int modes_test(void);
  20. int mac_test(void);
  21. int pkcs_1_test(void);
  22. int pkcs_1_pss_test(void);
  23. int pkcs_1_oaep_test(void);
  24. int pkcs_1_emsa_test(void);
  25. int pkcs_1_eme_test(void);
  26. int store_test(void);
  27. int rotate_test(void);
  28. int rsa_test(void);
  29. int dh_test(void);
  30. int katja_test(void);
  31. int ecc_tests(void);
  32. int dsa_test(void);
  33. int der_test(void);
  34. int misc_test(void);
  35. int base64_test(void);
  36. int base32_test(void);
  37. int file_test(void);
  38. int multi_test(void);
  39. int prng_test(void);
  40. int mpi_test(void);
  41. #ifdef LTC_PKCS_1
  42. struct ltc_prng_descriptor* no_prng_desc_get(void);
  43. void no_prng_desc_free(struct ltc_prng_descriptor*);
  44. #endif
  45. #endif
  46. /* ref: $Format:%D$ */
  47. /* git commit: $Format:%H$ */
  48. /* commit time: $Format:%ai$ */