ref: 1fab76acb861c5dd27ad13399c574fc8771dc0f3
dir: /libsec/port/rsaencrypt.c/
#include "os.h" #include "../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; }