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