Add measures and tests.
[crypto_lab3.git] / src / Tests.h
diff --git a/src/Tests.h b/src/Tests.h
new file mode 100644 (file)
index 0000000..4f01ac0
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef TESTS_H
+#define TESTS_H
+
+#include "Utils.h"
+
+class Tests
+{
+public:
+   Tests(uint keySizeBits, uint rsaPublicExponent);
+
+   void runTests();
+   void runTimeMeasures();
+
+private:
+   bool rsaStandard();
+   bool rsaCrt();
+
+   int timeSignRsaStd(int N);
+   int timeSignRsaCRT(int N);
+
+   const uint KEY_SIZE_BITS;
+   const uint RSA_PUBLIC_EXPONENT;
+};
+
+#endif