ref: 48a4cc7cb98050a324ed2d2d4acae901cf072b35
dir: /libsec/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;
}