X-Git-Url: http://git.euphorik.ch/?p=crypto_lab3.git;a=blobdiff_plain;f=src%2FRsaCrt.h;h=adf6c72f4193478812289a5936a7833309eb2cb4;hp=b680e3101c205998149923c3acf3f4900d712dd3;hb=22aac262156e81085b22bdfcd0cc38950768be9b;hpb=2745bc6570ac32789650336b8c84a52d1883c62a diff --git a/src/RsaCrt.h b/src/RsaCrt.h index b680e31..adf6c72 100644 --- a/src/RsaCrt.h +++ b/src/RsaCrt.h @@ -2,6 +2,7 @@ #define RSACRT_H #include +#include #include @@ -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); };