Attack implementation.
[crypto_lab3.git] / src / RsaCrt.h
index 373d583..b680e31 100644 (file)
@@ -18,12 +18,17 @@ public:
       mpz_class qInv;
    };
 
+   /**
+    * Generate a pair of keys (public, private).
+    */
    static std::pair<Rsa::KeyPub, KeyPriv> generateRSAKeys(uint exponent, uint keySizeBits);
 
    /**
     * m must not be greater or equal than kPriv.n.
     */
    static mpz_class sign(const mpz_class& m, const KeyPriv& kPriv);
+
+   static mpz_class signWithFaultySp(const mpz_class& m, const KeyPriv& kPriv);
 };
 
 #endif