Remove useless data from the CRT private key.
[crypto_lab3.git] / src / RsaCrt.h
index 87f9a11..373d583 100644 (file)
@@ -11,19 +11,18 @@ class RsaCrt
 {
 public:
    struct KeyPriv {
-      mpz_class n; // Modulus.
-      uint e; // Exponent.
-
       mpz_class p;
       mpz_class q;
       mpz_class dp;
       mpz_class dq;
       mpz_class qInv;
-      mpz_class d;
    };
 
    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);
 };