X-Git-Url: http://git.euphorik.ch/?p=crypto_lab3.git;a=blobdiff_plain;f=src%2FTests.h;fp=src%2FTests.h;h=4f01ac0593e04042136982a3e6346a0a5c8fd5d8;hp=0000000000000000000000000000000000000000;hb=fb173a9728e915fc7b3f99bc41f55034757105df;hpb=91989c2627abc2cdf511f17169e4f862dc55e838 diff --git a/src/Tests.h b/src/Tests.h new file mode 100644 index 0000000..4f01ac0 --- /dev/null +++ b/src/Tests.h @@ -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