tomcrypt_test.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_private.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 ecc_tests(void);
  31. int dsa_test(void);
  32. int der_test(void);
  33. int misc_test(void);
  34. int base64_test(void);
  35. int base32_test(void);
  36. int base16_test(void);
  37. int file_test(void);
  38. int multi_test(void);
  39. int prng_test(void);
  40. int mpi_test(void);
  41. int padding_test(void);
  42. #ifdef LTC_SSH
  43. int ssh_test(void);
  44. #endif
  45. #ifdef LTC_PKCS_1
  46. struct ltc_prng_descriptor* no_prng_desc_get(void);
  47. void no_prng_desc_free(struct ltc_prng_descriptor*);
  48. #endif
  49. #endif
  50. /* ref: $Format:%D$ */
  51. /* git commit: $Format:%H$ */
  52. /* commit time: $Format:%ai$ */