23 * Generate a pair of keys (public, private).
25 static std::pair
<Rsa::KeyPub
, KeyPriv
> generateRSAKeys(uint exponent
, uint keySizeBits
);
28 * m must not be greater or equal than kPriv.n.
29 * @param m the message to sign. No padding is used.
31 static mpz_class
sign(const mpz_class
& m
, const KeyPriv
& kPriv
);
34 * Sp is altered by flipping its 42nd bit.
35 * @param m the message to sign. No padding is used.
37 static mpz_class
signWithFaultySp(const mpz_class
& m
, const KeyPriv
& kPriv
);
40 static mpz_class
sign(const mpz_class
& m
, const KeyPriv
& kPriv
, bool withError
);