projects
/
crypto_lab3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove useless data from the CRT private key.
[crypto_lab3.git]
/
src
/
RsaCrt.h
diff --git
a/src/RsaCrt.h
b/src/RsaCrt.h
index
2341939
..
373d583
100644
(file)
--- a/
src/RsaCrt.h
+++ b/
src/RsaCrt.h
@@
-11,15
+11,11
@@
class RsaCrt
{
public:
struct KeyPriv {
{
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 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);
};
static std::pair<Rsa::KeyPub, KeyPriv> generateRSAKeys(uint exponent, uint keySizeBits);