mirror of
https://github.com/0intro/conterm
synced 2024-11-22 13:51:34 +03:00
13 lines
192 B
C
13 lines
192 B
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;
|
|
}
|