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