You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

52 lines
796 B

  1. #ifndef __GOLDILOCKS_TEST_H__
  2. #define __GOLDILOCKS_TEST_H__ 1
  3. #include "word.h"
  4. #include "field.h"
  5. int
  6. hexdecode (
  7. unsigned char *bytes,
  8. const char *hex,
  9. unsigned int nbytes
  10. );
  11. void
  12. hexprint (
  13. const char *descr,
  14. const unsigned char *bytes,
  15. unsigned int nbytes
  16. );
  17. void field_print (
  18. const char *descr,
  19. const field_a_t a
  20. );
  21. void scalar_print (
  22. const char *descr,
  23. const word_t *scalar,
  24. int nwords
  25. );
  26. void youfail(void);
  27. int test_sha512_monte_carlo(void);
  28. int test_linear_combo (void);
  29. int test_scalarmul_compatibility (void);
  30. int test_scalarmul_commutativity (void);
  31. int test_arithmetic (void);
  32. int test_goldilocks (void);
  33. int test_pointops (void);
  34. int test_decaf (void);
  35. int test_decaf_evil (void);
  36. #endif // __GOLDILOCKS_TEST_H__