Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_tlsv12/sys/src/libsec/port/rsaencrypt.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include "os.h"
2
#include <mp.h>
3
#include <libsec.h>
4
 
5
mpint*
6
rsaencrypt(RSApub *rsa, mpint *in, mpint *out)
7
{
8
	if(out == nil)
9
		out = mpnew(0);
10
	mpexp(in, rsa->ek, rsa->n, out);
11
	return out;
12
}