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