First part: RSA CRT versus RSA std.
[crypto_lab3.git] / src / Rsa.h
1 #ifndef RSA_H
2 #define RSA_H
3
4 #include <gmpxx.h>
5
6 class Rsa
7 {
8 public:
9 struct KeyPub {
10 mpz_class n; // Modulus.
11 mpz_class e; // Exponent.
12 };
13
14 static bool verifySignature(const mpz_class& m, const mpz_class& sig, const KeyPub& kPub);
15 };
16
17 #endif