Implementation of Shamir's trick (working in progress).
[crypto_lab3.git] / src / Tests.h
index fe75c6d..75f0bdb 100644 (file)
@@ -8,17 +8,32 @@ class Tests
 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;
 };