diff options
Diffstat (limited to 'libs/libaxolotl/src/curve25519/ed25519/tests/tests.h')
-rw-r--r-- | libs/libaxolotl/src/curve25519/ed25519/tests/tests.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/libaxolotl/src/curve25519/ed25519/tests/tests.h b/libs/libaxolotl/src/curve25519/ed25519/tests/tests.h new file mode 100644 index 0000000000..1623268bde --- /dev/null +++ b/libs/libaxolotl/src/curve25519/ed25519/tests/tests.h @@ -0,0 +1,22 @@ +#ifndef __TESTS_H__ +#define __TESTS_H__ + +/* silent = 0 : prints info+error messages to stdout, abort() on test failure + * silent = 1 : returns 0 for success, anything else for failure + * iterations : hardcoded known-good values are at 10000, so run at least this many + */ + +int sha512_fast_test(int silent); +int elligator_fast_test(int silent); +int curvesigs_fast_test(int silent); +int xeddsa_fast_test(int silent); +int vxeddsa_fast_test(int silent); + +int curvesigs_slow_test(int silent, int iterations); +int xeddsa_slow_test(int silent, int iterations); +int xeddsa_to_curvesigs_slow_test(int silent, int iterations); +int vxeddsa_slow_test(int silent, int iterations); + +int all_fast_tests(int silent); + +#endif |