From 2bf5effe95641667a1ed51c04eff7760f6a42ef4 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 3 Oct 2016 13:00:14 +0200 Subject: Initial --- rsa.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rsa.cpp (limited to 'rsa.cpp') diff --git a/rsa.cpp b/rsa.cpp new file mode 100644 index 0000000..11bf0eb --- /dev/null +++ b/rsa.cpp @@ -0,0 +1,12 @@ +#include +#include "numalgo.h" +#include "rsa.h" + +Bigint encrypt(const PublicKey &pubkey,Bigint msg){ + assert(msg>1&&msg