Implementation of Shamir's trick (working in progress).
[crypto_lab3.git] / src / RsaCrt.h
index b680e31..adf6c72 100644 (file)
@@ -2,6 +2,7 @@
 #define RSACRT_H
 
 #include <utility>
+#include <exception>
 
 #include <gmpxx.h>
 
@@ -25,9 +26,14 @@ public:
 
    /**
     * m must not be greater or equal than kPriv.n.
+    * @param m the message to sign. No padding is used.
     */
    static mpz_class sign(const mpz_class& m, const KeyPriv& kPriv);
 
+   /**
+    * Sp is altered by flipping its 42nd bit.
+    * @param m the message to sign. No padding is used.
+    */
    static mpz_class signWithFaultySp(const mpz_class& m, const KeyPriv& kPriv);
 };