From 37da2899f40661e3e9631e497da8dc59b971cbd0 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 17:07:39 +0000 Subject: 20060303a --- libsec/port/rsaencrypt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libsec/port/rsaencrypt.c (limited to 'libsec/port/rsaencrypt.c') diff --git a/libsec/port/rsaencrypt.c b/libsec/port/rsaencrypt.c new file mode 100644 index 00000000..ade686dc --- /dev/null +++ b/libsec/port/rsaencrypt.c @@ -0,0 +1,12 @@ +#include "os.h" +#include +#include + +mpint* +rsaencrypt(RSApub *rsa, mpint *in, mpint *out) +{ + if(out == nil) + out = mpnew(0); + mpexp(in, rsa->ek, rsa->n, out); + return out; +} -- cgit v1.2.3