public:
Tests(uint keySizeBits, uint rsaPublicExponent);
- void runTests();
+ void runTests();
+ void runTestsWithShamirsTrick();
void runTimeMeasures();
+
void doAttack();
+ void doAttackFixed();
private:
bool rsaStandard();
bool rsaCrt();
+ bool rsaCrtWithShamirsTrick();
+ /**
+ * Return the time in [ms] required to sign N times with RSA standard.
+ * One key pair and a message is generated.
+ */
int timeSignRsaStd(int N);
+
+ /**
+ * Return the time in [ms] required to sign N times with RSA CRT.
+ * One key pair and a message is generated.
+ */
int timeSignRsaCRT(int N);
+ int timeSignRsaCRTShamirsTrick(int N);
+
const uint KEY_SIZE_BITS;
const uint RSA_PUBLIC_EXPONENT;
};