ref: 5edeca01b0622463a65c126ebcc29314013fd928
dir: /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; }