aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 2cd31ec..0481f6c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2,6 +2,7 @@
#include <fstream>
#include <sstream>
#include <stdexcept>
+#include <algorithm>
#include <cstdlib>
#include <cctype>
#include <ctime>
@@ -133,7 +134,7 @@ void testisqrt(int argc,char **argv){
void performrsa(){
RSA::PrivateKey privkey;
Bigint p(1000000007),q(3000000019U);
- privkey.pub.mod=3000000040000000133LL;
+ privkey.pub.mod=(int64_t)3000000040000000133LL;
privkey.pub.exp=65537;
{
Bigint x;