ref: 23d5a950c92dfbcf26b069059712fa282255a8ac
dir: /sys/src/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; }