ref: 739bb1a06f2fce522a602c7f1dd61c1d28ffda8b
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;
}