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
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
03d1173
..
4cfdb9c
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-20,6
+20,14
@@
const uint RSA_PUBLIC_EXPONENT = 65537;
void printUsage(const string& progName)
{
cout << "Usage: " << progName << " [tests|time-measures]" << endl;
void printUsage(const string& progName)
{
cout << "Usage: " << progName << " [tests|time-measures]" << endl;
+
+// mpz_class n = 10;
+// mpz_class d = 3;
+// mpz_class q;
+// mpz_fdiv_q(q.get_mpz_t(), n.get_mpz_t(), d.get_mpz_t());
+
+// cout << "q: " << q << endl;
+// cout << "q: " << (n / d) << endl;
}
int main(int argc, char** argv)
}
int main(int argc, char** argv)