X-Git-Url: http://git.euphorik.ch/?p=crypto_lab3.git;a=blobdiff_plain;f=src%2FRsaCrt.h;h=b680e3101c205998149923c3acf3f4900d712dd3;hp=373d58325c4fad2efd50abc391ddecab96f8f8a7;hb=2745bc6570ac32789650336b8c84a52d1883c62a;hpb=d061bc06b7e5681e9da4c2c0b7642f50d126ff76 diff --git a/src/RsaCrt.h b/src/RsaCrt.h index 373d583..b680e31 100644 --- a/src/RsaCrt.h +++ b/src/RsaCrt.h @@ -18,12 +18,17 @@ public: mpz_class qInv; }; + /** + * Generate a pair of keys (public, private). + */ static std::pair 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