From aa5365666bb17299035a3d857bcce962004bda1e Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 6 Oct 2016 20:21:16 +0200 Subject: Base64 and import/export keys --- main.cpp | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 491e67b..f818c48 100644 --- a/main.cpp +++ b/main.cpp @@ -6,9 +6,11 @@ #include #include #include +#include "base64.h" #include "bigint.h" #include "numalgo.h" #include "primes.h" +#include "rng.h" #include "rsa.h" using namespace std; @@ -128,7 +130,7 @@ void testisqrt(int argc,char **argv){ } void performrsa(){ - PrivateKey privkey; + RSA::PrivateKey privkey; Bigint p(1000000007),q(3000000019U); privkey.pub.mod=3000000040000000133LL; privkey.pub.exp=65537; @@ -139,9 +141,9 @@ void performrsa(){ cout<<"d = "<