ref: a21c8d0216dc5b89f12975f17c1c5e626aa46eb3
dir: /sys/src/libsec/port/rsaencrypt.c/
#include "os.h"
#include <mp.h>
#include <libsec.h>
mpint*
rsaencrypt(RSApub *rsa, mpint *in, mpint *out)
{
if(out == nil)
out = mpnew(0);
mpexp(in, rsa->ek, rsa->n, out);
return out;
}